Jump to content

Multiple custom tiles URL in one map


Ajax

Recommended Posts

Hello! 

Maps in my country has multiple tile layers for one map, for example map data are one png layer and labels are in other png layer. In applications like leaflet I can add multiple tile url under one map. Can I do the same in cachly?

Thanks for answer, have a nice day!

Link to comment
Share on other sites

Hello and thanks for answer.

I'm from Czech Republic, here is example:

aerial tile:

https://mapserver.mapy.cz/bing/11-1120-705

label tile:

https://mapserver.mapy.cz/hybrid-sparse-m/11-1120-705

In leaflet:

map = L.map(canvas, options)
layers = [
	L.tileLayer('//mapserver.mapy.cz/bing/{z}-{x}-{y}', mapySatMapOptions),
	L.tileLayer('//mapserver.mapy.cz/hybrid-sparse-m/{z}-{x}-{y}', mapySatMapOptions).bringToFront()
];

for(i = 0; i < layers.length; i++) {
	map.addLayer(layers[i]);
}

I'm surprised that I'm alone with this request. Please, consider implementing. Thanks :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...