Add a basic marker:
makeMarker(latitude, longitude, "Label")
Add a styled marker:
makeMarker(latitude, longitude, "Label", { ... })
Style options:
| color | "rgb(240,50,123)" | fill color |
| size | 16 | diameter in px |
| shape | "circle" | "circle", "square", "diamond", "triangle" |
| borderColor | "rgb(255,255,255)" | border color |
| borderWidth | 0 | border thickness in px |
| opacity | 1 | 0 to 1 |
| image | "https://..." | PNG url, overrides shape |
Edit map position:
myMap.map.setView([latitude, longitude], zoom)
Change tile style:
Replace the tile URL with one of the options listed in the comments
Zoom levels: 1 = world | 10 = city | 15 = street