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

Latest commit

 

History

History
24 lines (17 loc) · 986 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 986 Bytes

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.