Negative Latitude in custom map Get Tile URL Function

  • Sigmund
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 9 months ago #11758 by Sigmund
Hi.
I have a custom map where i through the "Get Tile URL Function" gets tiles in the format of /zoom/coord.x_coord.y/. This is working very well except for an issue where all tiles with a negative latitude (coord.x) aint showing up. Negative longitude (coord.y) works as intended so i wonder if the "Get Tile URL Function" cant handle the negative tiles or if there is something else that is preventing the tiles from showing.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #11759 by Dima
Hi.
I think all will be OK with negative coordinates.
But for map tiles - if you create with some program - it creates your Get Tile Function, check what it create and what you enter into function.
If it doesn't work - give direct link to your page and I'll check what you have and what you get from this function.
I think step by step we'll fix your problem.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • Sigmund
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 9 months ago #11760 by Sigmund
Hi again. I am just fetching the tiles form a differnt source, so can indeed be my fuction that is the issue. But i am unfortunatly not able to find any issue with it myself.
The get tile function is:
function(coord, zoom) {
return "www.odditown.com/haven/map/tiles/" + zoom + "/" + coord.x + "_" + coord.y + '.png';
}
My map is at sigmar.eskeland.net/hnh/
And the full map can be found at odditown.com/haven/map
Any help is apriciated.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #11761 by Dima
Hi.
If you compare maps - you'll see
- your map have simple GetTile function without using projection
- main map - use it

If I find a few free minutes, I can try to reate map type and tell you what you need to do

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #11762 by Dima
Hi.
Finally I got it.
I did it as simple, and as with projection.

You just set in component options API version to 3.23

I don't know what the difference, but if you use current stable version (value set to 3 or empty), it shows only right part of map.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • Sigmund
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 9 months ago #11763 by Sigmund
Thanks alot!
That was a fix i would not have managed to find myself.

Please Log in or Create an account to join the conversation.

Time to create page: 0.146 seconds

Donate


Go to top