Empty contours vector tiles???

63 views
Skip to first unread message

Carlos

unread,
Sep 13, 2018, 9:18:50 AM9/13/18
to MapTiler Community
Hi,

I'm checking your Contour vector tiles and found this vector tiles URL to be used:


The URL format seams to be the correct one, as it looks identical to the one from hillshades (which is working, although they are raster and not vector tiles):


I'm just getting the tiles with empty data. Is that URL format the correct one? Have you applied any changes lately that are not reflected on the Contour dataset URL https://cloud.maptiler.com/data/contours/ ???

Thank you in advance!

MapTiler

unread,
Sep 13, 2018, 9:37:37 AM9/13/18
to MapTiler User Group
Hi Carlos,

could you please give us an example of Z/X/Y URL where you get empty data for Contour?
Please keep in mind that Contours dataset has tiles only from the zoom level 9 and lower (10, 11, 12, 13, 14).


Best regards,
Martin
--
MapTiler Team
Twitter: @klokantech


--
You received this message because you are subscribed to the Google Groups "MapTiler Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maptiler+u...@googlegroups.com.
To post to this group, send email to mapt...@googlegroups.com.
Visit this group at https://groups.google.com/group/maptiler.
For more options, visit https://groups.google.com/d/optout.

Carlos

unread,
Sep 13, 2018, 10:45:46 AM9/13/18
to MapTiler Community
Somehow now they are being downloaded fine. Apparently the zoom level 9 file I checked was empty. Perhaps it was a tile with no contour data in it.

However, now they are not empty (the one I check was 4,4KB.

Anyway, since you got to reply me, I'd like to ask you about how to load the contour PBFs using CartoDB. If you have any knowledge about it. I've tried to load them as a VectorTileLayer, as I successfully do now with your normal Vector data ( https://maps.tilehosting.com/data/v3/{z}/{x}/{y}.pbf?key=my_api_key ).

Perhaps, the style that's being loaded is not drawing the contour lines? I'm using the same code that is written here (the first chunk, I even use the same style, CARTO_BASEMAP_STYLE_VOYAGER): in https://cloud.maptiler.com/data/v3/carto-mobile-sdk

Thanks again

Carlos

unread,
Sep 14, 2018, 6:03:22 AM9/14/18
to MapTiler Community
I've just found a way to load a CSS to style the contour layer, and I got something working. I can see the contour lines, although I'd like to display as well the elevation/height data.

I was following this base style https://github.com/cyberang3l/osm-maps/tree/master/osm-bright-contours/osm-bright , concretely the contours.mss and contour-labels.mss files.

The contours.mss looks like it's being loaded properly, after changing the id #contour_lines in favor of #contour. Although, the contour-labels.mss doesn't seem to do anything. I tried replacing the [ele] field with [height], as I understood it should be, as I can see in https://maps.tilehosting.com/data/contours.json?key=my_api_key

What am I doing wrong here?
Reply all
Reply to author
Forward
0 new messages