2

I am using Mapbox Studio and trying to symbolize my Tileset which has about 200 unique values.

I am able to create individual 'stops' and manually assign a unique color, but looking for a more efficient way to symbolize each of these 200 values without having to touch each value manually.

What I've tried

  • I can easily create unique symbology in ArcGIS and QGIS, but Mapbox does not appear to accept such formats.
  • Searching Mapbox's documentation to see if I can apply a unique default color symbology for each unique value, but haven't found such a process.
  • Searched GIS Stack Exchange and StackOverflow, but haven't found such a question.

2 Answers 2

3

In QGIS you would do this by choosing a color ramp (or random) and hitting Classify, Mapbox Studio doesn't yet offer this feature but in the meantime if you choose the "Edit property as JSON" at the bottom (after choosing Set value by data):

enter image description here

enter image description here

Here you can insert a large list of stops.

You could write a program to build that small JSON either using random colours, random colours with a check to ensure it's not too close to a colour already selected, using color brewer colours

1
  • Thanks Andrew, using 'Edit Property as JSON' did the trick! I actually went to the following site and indicated the number of random colors - tools.medialab.sciences-po.fr/iwanthue/index.php. Then I inserted the list of stops as you recommended and it worked perfectly. Thanks again!
    – pac_co
    Commented Apr 10, 2018 at 13:18
2

There is nothing bad with Mapbox Studio, but I would go in another direction: I would install QGIS 2.18(free open source), which can manage the 200 unique values style easily.

https://www.youtube.com/watch?v=BHcq15Ytqj8

and then to put it in the web use some of the plugins like:

qgiscloud

qgis2web

Than other servers could do the same but is more difficult

www.mapserver.org

geoserver.org

2
  • Totally agree and a huge QGIS fan, but limited to Mapbox as the platform and looking for anyway to import something from ESRI, QGIS, etc into Mapbox with predefined styling.
    – pac_co
    Commented Apr 9, 2018 at 18:11
  • @pac_co have you tried github.com/boundlessgeo/lib-mapboxgl-qgis ? Commented Apr 10, 2018 at 1:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.