From 22435f693d5d88e70667d5b54b71590f99876036 Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Fri, 31 Aug 2012 14:50:22 +0100 Subject: [PATCH] convenience method for changing marker tooltips --- WebContent/base/leaflet/L.LabelMarker.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/WebContent/base/leaflet/L.LabelMarker.js b/WebContent/base/leaflet/L.LabelMarker.js index c32445fa9..eb3e89a26 100644 --- a/WebContent/base/leaflet/L.LabelMarker.js +++ b/WebContent/base/leaflet/L.LabelMarker.js @@ -38,6 +38,12 @@ L.LabelMarker = L.Marker.extend({ } }, + // add/change marker tooltip + setTitle: function ( title ) { + this.options.title = title; + this._icon.title = title; + }, + // actual icon changing routine _changeIcon: function () { var options = this.options,