mapbox / mapbox.js

Mapbox JavaScript API, a Leaflet Plugin
mapbox.com/mapbox.js/
Other
1.92k stars 386 forks source link

Can't change the title of L.Marker. #1301

Closed jim-king-2000 closed 3 years ago

jim-king-2000 commented 4 years ago

There is no API in the doc to change the title of L.Marker. Suggest to add one.

riastrad commented 4 years ago

@jim-king-2000 can you give a little bit more context on why you would want to change the title of L.Marker? Is there something specific you're trying to do that this blocks?

jim-king-2000 commented 4 years ago

We intend to display the position of the marker in the title property. Since the position keeps change, we have to set the title every time when it changes. By the way, almost all map APIs (such as Bing Maps, Google Maps, etc...) support the change of the title of the marker.