Nabrok.9023:

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?

Nabrok.9023:

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

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.