Custom map settings and export

Hi,

I’m trying to use the new map setting allowing the use of a tile server.
Do you guys have any public server I can use to test this ?
I deployed a tile server, but couldn’t get the map working inside openremote. No log or anything showing me any error. But considering I’m not used to work with maps, there’s a good chance I was not doing the proper thing.
Also tried to use a public url such as OSM OpenMapTiles - TileServer GL; that also doesn’t work;

Am I doing something wrong ? Is there any way to get some logs when we try to use the Tile Server setting ?

Also, do you know if there’s a way to export the map from openremote showing all the assets so we could display it on a internal website ?

Hey @apa18,

You can use the tile server in the following way https://openmaptiles.data.gouv.fr/data/planet-vector/{z}/{x}/{y}.pbf. This should allow you to expand the map using the tile server, though the same styling won’t be applied.

1 Like

Hi,
Thanks for the reply but it doesn’t seem to work;
For example if I try https://openmaptiles.data.gouv.fr/data/planet-vector/15.59/48.051827/0.648052.pbf (random coordinates); that doesn’t work. I tried other coordinates with different zoom values but no luck there.

Hey @apa18 ,

If you want to directly request a tile you must use integers for the template values {z}, {x}, {y} (see tilejson-spec/3.0.0/README.md at master · mapbox/tilejson-spec · GitHub). It could also be that you’re requesting tiles out of bounds.

➜  ~ curl https://openmaptiles.data.gouv.fr/data/planet-vector/15/48/4.pbf
Out of bounds%                                                                          
➜  ~ curl https://openmaptiles.data.gouv.fr/data/planet-vector/14/48/4.pbf
Warning: Binary output can mess up your terminal. Use "--output -" to tell curl to
Warning: output it to your terminal anyway, or consider "--output <FILE>" to save to a
Warning: file.

Here’s an example of the OpenRemote map extended with this tile server.