map/leaflet question

map/leaflet question

in API Development

Posted by: Nabrok.9023

Nabrok.9023

Q:

I’m trying to modify the example script to show the WvW map.

First thing I did was change the tileLayer URL to https://tiles.guildwars2.com/2/3/{z}/{x}/{y}.jpg

I changed the southWest and northEast co-ordinates…

southWest = unproject([5118, 16382]);
northEast = unproject([16382, 6922]);

I changed the continent_id and floor to 2 and 3 respectively in the JSON call.

The waypoint markers seem to show up in the correct places for for the bounding box defined, but the map itself is way off.

What am I missing?

“I’m not a PvE, WvW, or PvP player – I am a Guild Wars 2 player”
Tarnished Coast – Dissentient [DIS]
All classes

map/leaflet question

in API Development

Posted by: Nabrok.9023

Nabrok.9023

A:

I found it … maxZoom needed to be changed from 7 to 6.

“I’m not a PvE, WvW, or PvP player – I am a Guild Wars 2 player”
Tarnished Coast – Dissentient [DIS]
All classes

map/leaflet question

in API Development

Posted by: zeeZ.5713

zeeZ.5713

I found it … maxZoom needed to be changed from 7 to 6.

Hint: https://api.guildwars2.com/v1/continents.json lists max_zoom as 6, for anyone pondering why.