Skip to content

Instantly share code, notes, and snippets.

@veltman
Created August 28, 2013 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save veltman/6369472 to your computer and use it in GitHub Desktop.
Save veltman/6369472 to your computer and use it in GitHub Desktop.
-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