arenanet / api-cdi

Collaborative Development Initiative for Public APIs
258 stars 41 forks source link

Dry top continent_rect coordinates in v2/maps #478

Open ChieftainAlex opened 7 years ago

ChieftainAlex commented 7 years ago

The continent_rect listed in https://api.guildwars2.com/v2/maps?ids=988 is still incorrect and results in the zone marker being drawn in the wrong place.

API result [[3840,14592], [5888, 17152]]

The first x coordinate is far too high.

Hardcoded workaround // Dry Top rectangle bug fix if (mapInfo['id'] === 988) { metadata[index]['continent_rect'][0][1] = 15744; }

Old forum post referencing same issue: https://forum-en.guildwars2.com/forum/community/api/Dry-Top-and-Silverwastes-overlapping/first#post5253288

dragonofmercy commented 7 years ago

I have do more correction on my project

// Southsun
807: { continent_rect: [[,5000],[25342,5706]] },
// Dry
988: { continent_rect: [[,15744],[]] },
// raid_spirit
1062: { continent_rect: [[3638,12168],[4330,14208]] },
// raid_redemption
1149: { continent_rect: [[2826,12168],[3638,13954]] },
// raid_fortress
1156: { continent_rect: [[1992,12168],[2826,13954]] },
// raid_penitent
1188: { continent_rect: [[12272],[13912]] },
// ember
1175: { continent_rect: [[,28304],[]] },
// draconis
1195: { continent_rect: [[2448, 23912],[5448]] },