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:
fkloft
2014-06-09 21:08:06 +02:00
parent 7f26f8b6a8
commit d3fca8612c
5 changed files with 66 additions and 23 deletions

View File

@ -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@@