Move OverlappingMarkerSpiderfier from player-tracker to core. Implement for bookmarks and draw tools
(Markers added to OMS shouldn't use the "click" event but "spiderfiedclick")
This commit is contained in:
@ -1018,7 +1018,9 @@
|
||||
iconSize: [30,40]
|
||||
})
|
||||
});
|
||||
star.on('click', function() { renderPortalDetails(guid); });
|
||||
window.oms.addMarker(star);
|
||||
star.on('remove', function() { window.oms.removeMarker(star); });
|
||||
star.on('spiderfiedclick', function() { renderPortalDetails(guid); });
|
||||
|
||||
window.plugin.bookmarks.starLayers[guid] = star;
|
||||
star.addTo(window.plugin.bookmarks.starLayerGroup);
|
||||
@ -1182,4 +1184,4 @@
|
||||
|
||||
// PLUGIN END //////////////////////////////////////////////////////////
|
||||
|
||||
@@PLUGINEND@@
|
||||
@@PLUGINEND@@
|
||||
|
Reference in New Issue
Block a user