@operato/scene-openlayers 1.2.90 → 1.2.91
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -0
- package/dist/ol-marker.js +1 -1
- package/dist/ol-marker.js.map +1 -1
- package/dist/openlayers.d.ts +2 -2
- package/dist/openlayers.js.map +1 -1
- package/package.json +2 -2
- package/schema.gql +3702 -0
- package/src/ol-marker.ts +2 -2
- package/src/openlayers.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/src/ol-marker.ts
CHANGED
@@ -12,7 +12,7 @@ import { Tile as TileLayer, Vector as VectorLayer } from 'ol/layer'
|
|
12
12
|
import { OSM, Vector as VectorSource } from 'ol/source'
|
13
13
|
import { Icon, Style } from 'ol/style'
|
14
14
|
import { Feature } from 'ol'
|
15
|
-
import Point from 'ol/geom
|
15
|
+
import { Geometry, Point } from 'ol/geom'
|
16
16
|
|
17
17
|
const NATURE = {
|
18
18
|
mutable: false,
|
@@ -201,7 +201,7 @@ export default class OpenLayersMarker extends RectPath(Shape) {
|
|
201
201
|
lineWidth: strokeWeight
|
202
202
|
} = this.state
|
203
203
|
|
204
|
-
const marker = new Feature({
|
204
|
+
const marker = new Feature<Geometry>({
|
205
205
|
type: style,
|
206
206
|
geometry: new Point(fromLonLat([lng || 0, lat || 0]))
|
207
207
|
})
|
package/src/openlayers.ts
CHANGED
@@ -85,7 +85,7 @@ export default class Openlayers extends HTMLOverlayContainer {
|
|
85
85
|
_map: Map | null = null
|
86
86
|
_listenTo?: Component
|
87
87
|
_listener?: Function
|
88
|
-
_vectorSource?: VectorSource<
|
88
|
+
_vectorSource?: VectorSource<Feature>
|
89
89
|
_marker: Feature | null = null
|
90
90
|
|
91
91
|
get eventMap() {
|