Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. Weighing just about 37 KB of gzipped JS code, it has all the mapping features most developers ever need.
Leaflet is designed with simplicity, performance and usability in mind. It works efficiently across all major desktop and mobile platforms out of the box, taking advantage of HTML5 and CSS3 on modern browsers while being accessible on older ones too. It can be extended with a huge amount of plugins, has a beautiful, easy to use and well-documented API and a simple, readable source code that is a joy to contribute to.
https://github.com/Leaflet/Leaflet
marker
http://leafletjs.com/reference-1.0.2.html#marker- http://leafletjs.com/reference-1.0.2.html#icon
- popup methods like bindPopup()
http://leafletjs.com/reference-1.0.2.html#popup
If you want to just bind a popup to marker click and then open it, it's really easy:
marker.bindPopup(popupContent).openPopup(); - Tooltip
Used to display small texts on top of map layers.
marker.bindTooltip("my tooltip text").openTooltip();
No comments:
Post a Comment