WvW Maps - Linkage between POI and objectives
I also wanted to add, I tried using map_floor.json with floor=1 instead:
https://api.guildwars2.com/v1/map_floor.json?continent_id=2&floor=1
And that returns additional coordinates for sectors, that are very close to the points_of_interest. But when plotted on the map, the actual coords are pretty far off from where they should be. For example, the “Shadaran/Askalion/Etheron Hills” coord for the eastern keep on each borderlands is way off. But the sectors elements actually have the proper names for the keeps/towers/camps, where the points_of_interest don’t.
Which map_floor.json should we be using? And why are the coords so far off for the sectors?
The objectives don’t have coordinates yet (requested here), so you have to add them yourself – best way would be to store the JSON local and add the coordinates. The sector names are of course in floor 2/3, have you even looked at it? ;D (btw. when you’re using the data from a different floor, e.g. floor 1, you need to respect the map_rectangle/clamped_view of the wvw map)
hre’s how to find them: https://github.com/codemasher/gw2api-tools/blob/master/js/gw2maps-jquery.js#L191
and here what it looks like: http://wiki-de.guildwars2.com/wiki/Benutzer:Smiley/GW2Maps (you need to zoom in on the 2nd map, no objectives, but sector names using floor 2/3)
Yeah I realized after I posted that the sectors were also in floor 2/3…whoops.
But the situation remains. I didn’t realize the issue was already stated in the WvW suggestion thread (since the search function doesn’t work on these forums). I thought maybe I was overlooking something…but seems like there just isn’t any linkage between the objectives and the floor entities.
All it really needs is to add an objective_id to the floor entities (in addition to poi_id or sector_id), and the rest is just sorting.