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

Upgrade Example for v8

Open chriswhong opened this issue 9 years ago • 5 comments

I was trying to follow along with this example using mapboxgl v0.22.0 and it throws console errors due to the style being version: 7. Are there any examples of using Mapzen Vector Tile Service with Mapbox GL v8 style definition? Thanks!

chriswhong avatar Aug 15 '16 20:08 chriswhong

The current example uses an invalid json file. If you clean that file up using

gl-style-validate

then run it through the

gl-style-migrate

as shown here https://github.com/mapbox/mapbox-gl-style-spec it will work with the newest mapbox-gl-js. However it seems that the Mapzen tiles do not adhere do the v2 tile spec. There are some rendering issues with the tiles. Also, constants are gone from the v8 style spec, which makes direct inline styling a bit more difficult.

I will add a link to a live example when I get a chance.

reyemtm avatar Nov 01 '16 15:11 reyemtm

Hello, one year later.. i have similiar issue and i cant get to work mapzen tiles with recent mapboxgl.

Is possible to render mapzen vector tiles with maxpbox gl version 0.40.x?

I tried migration and validation tools mentioned above and still getting lot of "Vector tile source ... does not use vector tile spec v2 and therefore may have some rendering errors" and some important layers are missing (eg. street names).

My example: https://github.com/sommcz/mapboxgl-vector-tiles

Thanks for any advice.

sommcz avatar Oct 08 '17 13:10 sommcz

Related issue for v2: https://github.com/tilezen/mapbox-vector-tile/issues/42

rmglennon avatar Oct 12 '17 14:10 rmglennon

Hello, I am currently using mapbox gl js v0.4. I was trying to work with the example provided at the mapzen site. There are a lot of issues with the style since they are using a different version of mapbox gl js. Please help.

amcepl avatar Dec 14 '17 06:12 amcepl

Hello we wrote a few much more complete mapbox styles that work correctly with Mapzen's vector tiles and use v8 style spec and work with latest the mapbox GL version (v0.44.1). They can be found here https://github.com/apollomapping/ap-tilezen-mapbox-styles

m-abboud avatar Apr 19 '18 03:04 m-abboud