added tooltip to user location marker
This commit is contained in:
parent
08ab525b7f
commit
a7b04a7a72
@ -34,9 +34,14 @@ window.plugin.userLocation.setup = function() {
|
||||
iconRetinaUrl: iconRetImage
|
||||
}});
|
||||
|
||||
var marker = L.marker(window.map.getCenter(), {icon: new plugin.userLocation.icon()});
|
||||
var marker = L.marker(window.map.getCenter(), {
|
||||
title: "User Location",
|
||||
icon: new plugin.userLocation.icon()
|
||||
});
|
||||
plugin.userLocation.marker = marker;
|
||||
marker.addTo(window.map);
|
||||
// jQueryUI doesn’t automatically notice the new markers
|
||||
window.setupTooltips($(marker._icon));
|
||||
};
|
||||
|
||||
window.plugin.userLocation.updateLocation = function(lat, lng) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user