adt-js-components 1.9.1 → 1.9.2
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/package.json +1 -1
- package/src/Map/index.js +17 -0
package/package.json
CHANGED
package/src/Map/index.js
CHANGED
|
@@ -356,9 +356,26 @@ function createMarker(marker, options, selectedOptions, cluster = null, selectab
|
|
|
356
356
|
mapMarker._selectedIcon = selectedOptions.icon;
|
|
357
357
|
mapMarker._markerData = marker;
|
|
358
358
|
|
|
359
|
+
const markerElement = mapMarker.getElement();
|
|
360
|
+
if (markerElement && markerElement.parentElement) {
|
|
361
|
+
markerElement.parentElement.style.pointerEvents = 'visible';
|
|
362
|
+
}
|
|
363
|
+
|
|
359
364
|
if (map) {
|
|
360
365
|
const markers = markerInstances.get(map);
|
|
361
366
|
markers.set(marker.id, mapMarker);
|
|
367
|
+
|
|
368
|
+
mapMarker.on('add', function() {
|
|
369
|
+
const el = mapMarker.getElement();
|
|
370
|
+
if (el) {
|
|
371
|
+
el.style.cursor = 'pointer';
|
|
372
|
+
|
|
373
|
+
const parent = el.parentElement;
|
|
374
|
+
if (parent) {
|
|
375
|
+
parent.style.pointerEvents = 'all';
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
});
|
|
362
379
|
}
|
|
363
380
|
|
|
364
381
|
const originalCallback = marker.callback;
|