View Single Post
05/24/14, 03:53 PM   #10
SinusPi
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 18
Also, the code depending on ZO_WorldMapContainer:GetDimensions() is oddly red-herringed, too - that function simply returns a map's size in pixels, according to the current zoom level, NOT the map's ranges in meters or any other reasonable distance unit.

The solution to all this map-distance trouble is getting each map's (each map texture's, to be exact) dimensions in meters. One can try to gauge that by standing at exactly the range of some known distanced spell, and checking the sqrt((x1-x2)^2+(y1-y2)^2) against that. From there it's possible to approximate the zone's sizes. Or, if you zoom to the world - the world sizes, since GetTargetPosition() still works fine there.

(EDIT) Ah-ha, I see you've found the Zygor distances. They're not perfect, mind you, but work more-or-less. They were found exactly using the above method.
  Reply With Quote