Skip to content

Instantly share code, notes, and snippets.

@letswritetw
Created September 30, 2020 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letswritetw/cdd34af8e4f02dc963638cc5b52ae063 to your computer and use it in GitHub Desktop.
Save letswritetw/cdd34af8e4f02dc963638cc5b52ae063 to your computer and use it in GitHub Desktop.
leaflet-osm-basic
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