Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
-Step 1: basic HTML skeleton for a full-screen map
-Step 2: initialize a map
-Step 3: add a tile layer
-Step 4: Add a marker
-Step 5: Add a line
-Step 6: Add a polygon
-Step 7: Styling: add a polygon with different styling
-Step 8: Click/hover
-On click, re-center map
-On hover, change styling of polygon
-Step 9: Layer groups
-Add things to a group
-Hide whole group
-Change styling for whole group
Step 10: Change map state
-Pan the map
-Set the map view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment