Jump to content
Ajax

Multiple custom tiles URL in one map

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!

Share this post


Link to post
Share on other sites

What country are you from? This is the first request we have had like this. And, while we always take user suggestions and evaluate them, I am not sure if this feature would benefit many other Cachly users.

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×