Last active
July 26, 2022 02:08
-
-
Save letswritetw/1cfe23f63e1e248bd4888b8aed3da6be 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 customIcon = L.icon({ | |
iconUrl: '圖片的 URL', | |
iconSize: [42, 42], | |
}); | |
const marker = L.marker(center, { | |
icon: customIcon, | |
title: '跟 <a> 的 title 一樣', // 跟 <a> 的 title 一樣 | |
opacity: 1.0 | |
}).addTo(map); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment