Make user location appear in layer chooser

This commit is contained in:
fkloft 2013-12-11 00:00:04 +01:00
parent f0a5339479
commit 63f4abb3ef

View File

@ -48,8 +48,11 @@ window.plugin.userLocation.setup = function() {
clickable: false clickable: false
}); });
marker.addTo(window.map); marker.addTo(window.plugin.userLocation.locationLayer);
circle.addTo(window.map); circle.addTo(window.plugin.userLocation.locationLayer);
window.plugin.userLocation.locationLayer.addTo(window.map);
window.addLayerGroup('User location', window.plugin.userLocation.locationLayer, true);
var container = $(".container", marker._icon); var container = $(".container", marker._icon);
window.plugin.userLocation.marker = marker; window.plugin.userLocation.marker = marker;