From a7b04a7a7261103073522401b1ad0aeedead7466 Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Mon, 29 Apr 2013 09:15:46 +0200 Subject: [PATCH] added tooltip to user location marker --- mobile/user-location.user.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mobile/user-location.user.js b/mobile/user-location.user.js index fe118b7f..9658212e 100644 --- a/mobile/user-location.user.js +++ b/mobile/user-location.user.js @@ -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) {