mapboxgl-vector-tiles icon indicating copy to clipboard operation
mapboxgl-vector-tiles copied to clipboard

State and country boundary lines missing

Open nvkelso opened this issue 9 years ago • 2 comments

eg:

"source-layer": "boundaries",
"filter": ["==", "type", "country"],

See related issue for more information.

nvkelso avatar Feb 08 '16 19:02 nvkelso

I'm working on updating demo/test-driving MapZen to MapBox-gl v0.16.0. Following https://github.com/mapzen/vector-datasource/issues/517 I was able to render boundaries using "boundaries" rather than "places" from existing demo. Quite a few low-hanging fruit syntax changes, ex: constants have been deprecated as of v8, filter array for operator "==" must have 3 elements, text-size no longer paint property, etc...

I can't get any labels to render. I was wondering if it was a "kind" issue in the filter or is there a bigger "places" issue on the source-layer. I do get a 403 Forbidden error from mapbox/fonts at smaller scales, using my default token, then with fonts read scope checked token... Here is my fork: https://github.com/Ccantey/mapboxgl-vector-tiles/blob/master/index.html

And live: http://gis.leg.mn/iMaps/mapboxgl-vector-tiles/index.html

Ccantey avatar Apr 06 '16 14:04 Ccantey

Some labels working now after changing glyphs to:

"glyphs":"mapbox://fonts/:username/{fontstack}/{range}.pbf"

The format for mapbox:// style and glyphs URLs has changed. For style URLs, you should now use the format mapbox://styles/:username/:style. The :style portion of the URL no longer contains a username. For font URLs, you should now use the format mapbox://fonts/:username/{fontstack}/{range}.pbf

https://github.com/mapbox/mapbox-gl-js/blob/master/CHANGELOG.md

Country and labels working, still need to work out the rest.

Ccantey avatar Apr 06 '16 19:04 Ccantey