added tooltip to user location marker

This commit is contained in:
Philipp Schaefer 2013-04-29 09:15:46 +02:00
parent 08ab525b7f
commit a7b04a7a72

View File

@ -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 doesnt automatically notice the new markers
window.setupTooltips($(marker._icon));
};
window.plugin.userLocation.updateLocation = function(lat, lng) {