Quantcast
Channel: maps for developers - Medium
Viewing all articles
Browse latest Browse all 2230

Dynamically change disputed national borders

$
0
0

Worldviews launches for all users

By: Jaime Chen

We just launched Worldviews allowing disputed borders to dynamically change based on users’ locales.

Today’s launch, part of an update to our vector tiles and map styles, gives you three Worldviews — use either US, CN, or IN to show the US’s, China’s, or India’s opinions of global and disputed borders, respectively. For example, using CN will show a map of mainland China’s opinion of geopolitical borders including a larger area of Arunachal Pradesh which in China is recognized as South Tibet. IN shows Arunachal Pradesh in India, as well as larger areas of Kashmir than the CN or US worldview.

The borders in the Kashmir and Arunachal Pradesh regions between China, Pakistan, and India changing based on Worldviews.

We’ve previously had the Worldviews feature available in our Enterprise Boundaries product, but are now bringing this functionality directly to all users.

Filter administrative boundaries by worldview at runtime using Mapbox GL JS. The value of the worldview variable could be determined by user input or device location:

var adminLayers = ['admin-0-boundary', 'admin-1-boundary', 'admin-0-boundary-disputed', 'admin-1-boundary-bg', 'admin-0-boundary-bg'];
adminLayers.forEach(function(adminLayer) {
map.setFilter(adminLayer, ["match", ["get", "worldview"], ["all", worldview], true, false]);
});

See the full example in the Mapbox GL JS documentation.

This feature is critical for companies with international user bases, such as MicroStrategy, a major provider of integrated software services to the public sector.

“Worldviews is a great feature and something that has been highly requested by our international users, particularly in countries that have disputed regions”
- Suchita Verma, Product Manager MicroStrategy

Need a different country’s Worldview? Just reach out and let us know. Go to Mapbox Studio to create a map using Worldviews today.

Jaime Chen - Senior Product and Engineering Lead - Map Design - Mapbox | LinkedIn


Dynamically change disputed national borders was originally published in Points of interest on Medium, where people are continuing the conversation by highlighting and responding to this story.


Viewing all articles
Browse latest Browse all 2230

Trending Articles