Custom marker
Customize marker icon image
The list of available icons can be found here.
Uncomment the following line to install leafmap if needed.
1 | |
1 2 | |
To run this notebook, you will need an API key from MapTiler. Once you have the API key, you can uncomment the following code block and replace YOUR_API_KEY with your actual API key. Then, run the code block code to set the API key as an environment variable.
1 2 | |
1 2 3 4 | |
The icon name i set to airplane-15 in the code block below. You can change it to any other icon name from the list of available icons. For example, you can use car-15, bus-15, bicycle-15, etc. The icon name should be in the format <icon_name>-<zoom_level>. The zoom level is optional and can be omitted if not needed. For more icons, please refer to https://labs.mapbox.com/maki-icons.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
