- Posts: 7
- Thank you received: 0
Custom Map Type don't work
- IvanDC
- Topic Author
- Offline
- New Member
Less
More
9 years 4 months ago - 9 years 4 months ago #6784
by IvanDC
Custom Map Type don't work was created by IvanDC
I've added three custom map type using these function:
Then I setted the layer type to Map for all three maps;
Then I enabled them setting: Allow custom map types to on, and added this list 1;2;3 on Custom Map Types List.
But when i go to the page ( www.capracottatracking.com/index.php/fr/ ) appear this immage www.capracottatracking.com/administrator...ts/utils/loading.gif
Wha i can do to solve this problem?
Code:
function(ll, z) {
var X = ll.x % (1 << z); /* wrap */
return "http://tile.thunderforest.com/landscape/" + z + "/" + X + "/" + ll.y + ".png";
}
Code:
function(ll, z) {
var X = ll.x % (1 << z); /* wrap */
return "http://tile.thunderforest.com/cycle/" + z + "/" + X + "/" + ll.y + ".png";
}
Code:
function(ll, z) {
var X = ll.x % (1 << z); /* wrap */
return "http://tile.thunderforest.com/outdoors/" + z + "/" + X + "/" + ll.y + ".png";
}
Then I setted the layer type to Map for all three maps;
Then I enabled them setting: Allow custom map types to on, and added this list 1;2;3 on Custom Map Types List.
But when i go to the page ( www.capracottatracking.com/index.php/fr/ ) appear this immage www.capracottatracking.com/administrator...ts/utils/loading.gif
Wha i can do to solve this problem?
Last edit: 9 years 4 months ago by IvanDC. Reason: I've updated the map's URL
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
9 years 4 months ago #6815
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Custom Map Type don't work
Hi.
Try to set max zoom value to fixed value (not value - max available). For example, set to 17
Try to set max zoom value to fixed value (not value - max available). For example, set to 17
Don't forget support my developments: post review in JED , donate , help with translation
The following user(s) said Thank You: IvanDC
Please Log in or Create an account to join the conversation.
- IvanDC
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
9 years 4 months ago #6817
by IvanDC
Replied by IvanDC on topic Custom Map Type don't work
Thanks a lot, it now works
Please Log in or Create an account to join the conversation.
Time to create page: 0.175 seconds