Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

mapbox/mapbox-gl-boundaries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mapbox-gl-boundaries

switch boundaries A Mapbox GL JS plugin that modifies the disputed boundaries in your map.

Features

  • Add claimed boundaries to a country with disputed territories for a local representation of the borders.

Usage

Download the files from dist/ and include it in your map html <head> with:

<script src='mapbox-gl-boundaries.js'></script>

In your <script> add this line after initializing your map:

mapboxgl.addClaimedBoundaries(map, 'IN'); // Add the claimed boundaries to the map of India

Note Currently only India is supported. For Mapbox Studio Classic styles, see instructions for fixing the India border.

Developing and Testing Mapbox GL JS plugins

Check the instructions on the mapbox-gl-compare plugin.

About

Switch the disputed boundaries of a Mapbox map using OpenStreetMap data

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published