@abi-software/flatmap-viewer 2.4.1-b.3 → 2.4.1-b.4

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/README.rst CHANGED
@@ -38,7 +38,7 @@ The map server endpoint is specified as ``MAP_ENDPOINT`` in ``src/main.js``. It
38
38
  Package Installation
39
39
  ====================
40
40
 
41
- * ``npm install @abi-software/flatmap-viewer@2.4.1-b.3``
41
+ * ``npm install @abi-software/flatmap-viewer@2.4.1-b.4``
42
42
 
43
43
  Documentation
44
44
  -------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmap-viewer",
3
- "version": "2.4.1-b.3",
3
+ "version": "2.4.1-b.4",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": "https://github.com/AnatomicMaps/flatmap-viewer.git",
6
6
  "main": "src/main.js",
@@ -1226,7 +1226,7 @@ export class UserInteractions
1226
1226
  markerElement.appendChild(markerIcon);
1227
1227
 
1228
1228
  const markerPosition = this.__markerPosition(featureId, annotation);
1229
- const marker = new maplibregl.Marker(markerElement)
1229
+ const marker = new maplibregl.Marker({marker: markerElement})
1230
1230
  .setLngLat(markerPosition)
1231
1231
  .addTo(this._map);
1232
1232
  markerElement.addEventListener('mouseenter',