@operato/scene-openlayers 1.2.90 → 1.2.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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/Point'
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<Geometry>
88
+ _vectorSource?: VectorSource<Feature>
89
89
  _marker: Feature | null = null
90
90
 
91
91
  get eventMap() {