@geospatial-sdk/openlayers 0.0.5-dev.18 → 0.0.5-dev.19

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.
@@ -101,7 +101,7 @@ export function listen(map, eventType, callback) {
101
101
  break;
102
102
  case MapClickEventType:
103
103
  map.on("click", (event) => {
104
- const coordinate = toLonLat(event.pixel, map.getView().getProjection());
104
+ const coordinate = toLonLat(event.coordinate, map.getView().getProjection());
105
105
  callback({
106
106
  type: "map-click",
107
107
  coordinate,
@@ -191,7 +191,7 @@ describe("event registration", () => {
191
191
  });
192
192
  it("registers the event on the map", () => {
193
193
  expect(callback).toHaveBeenCalledWith({
194
- coordinate: toLonLat([10, 10]),
194
+ coordinate: toLonLat([123, 123]),
195
195
  type: "map-click",
196
196
  });
197
197
  });
@@ -143,7 +143,7 @@ export function listen<T extends keyof MapEventsByType>(
143
143
  case MapClickEventType:
144
144
  map.on("click", (event) => {
145
145
  const coordinate = toLonLat(
146
- event.pixel,
146
+ event.coordinate,
147
147
  map.getView().getProjection(),
148
148
  ) as [number, number];
149
149
  (callback as (event: unknown) => void)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geospatial-sdk/openlayers",
3
- "version": "0.0.5-dev.18+6f12b0b",
3
+ "version": "0.0.5-dev.19+45eafe3",
4
4
  "description": "OpenLayers-related utilities",
5
5
  "keywords": [
6
6
  "ol",
@@ -37,9 +37,9 @@
37
37
  "ol": ">6.x"
38
38
  },
39
39
  "dependencies": {
40
- "@geospatial-sdk/core": "^0.0.5-dev.18+6f12b0b",
40
+ "@geospatial-sdk/core": "^0.0.5-dev.19+45eafe3",
41
41
  "chroma-js": "^2.4.2",
42
42
  "lodash.throttle": "^4.1.1"
43
43
  },
44
- "gitHead": "6f12b0b59e2794a24b27940c9c62dd279e2120e8"
44
+ "gitHead": "45eafe3503dc41b6326708fdb2e84a8340f28c4f"
45
45
  }