Created
September 30, 2020 15:09
-
-
Save letswritetw/cdd34af8e4f02dc963638cc5b52ae063 to your computer and use it in GitHub Desktop.
leaflet-osm-basic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const center = [xxx, xxx]; | |
const marker = L.marker(center, { | |
title: '跟 <a> 的 title 一樣', // 跟 <a> 的 title 一樣 | |
opacity: 1.0 | |
}).addTo(map); | |
// 加上 Popup | |
marker.bindPopup("<b>Hello world!</b><br>I am a popup.").openPopup(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment