Dr Ishmael.9685:

In map_floors.json, some maps are returning as 2 separate entries under “maps”. E.g., under the “Shiverpeak Mountains” region, the first maps are:


"maps":{
    "26":{
        "name":"Dredgehaunt Cliffs",
        "min_level":40,
        ...
    },
    "26":{
        "name":"Dredgehaunt Cliffs",
        "min_level":40,
        ...
    },
},
...

The problem is that these two maps entries are not identical in terms of the PoIs, Tasks, Sectors, etc. that they list. The first one lists everything (I think), but the second one doesn’t (the only landmark is Falooaloo, the only sector is Wyrmblood Lake, etc.).

Since these two entries have identical keys (“26”), when the JSON is parsed, the second entry will overwrite the first one. This is happening for multiple maps, not just Dredgehaunt – I noticed yesterday that Blazeridge Steppes and Harathi Hinterlands were not displaying any PoIs on my pan-Tyria map.

This is definitely a problem for anyone trying to show all objectives in a zone, like I’m trying to do on the wiki.

smiley.1438:

I hope we’ll get some more information on how the floors work. If you take floor 2 instead, everything seems to be fine. Floor 1 has all the instance data included and takes forever to load, too.

https://api.guildwars2.com/v1/map_floor.json?continent_id=1&floor=2

http://gw2.chillerlan.net/examples/gw2maps-test.html

Dr Ishmael.9685:

Right, I forgot to mention that I was looking at floor=1.

smiley.1438:

Actually floor 2 seems to be the better choice to draw a full world map. Floor 1 is missing (or overwrites) sector names for Dredgehaunt Cliffs, Lornar Pass, Bloodtide Coast and Harathi Hinterlands. (You can see the holes on the map on low zoom levels with the sector name layer enabled. I’ve updated the demo on my server, not yet on GitHub – i’m using floor 2 now and dropped the workaround.

http://gw2.chillerlan.net/examples/gw2maps.html

btw. it’s interesting how leaflet manages the zoom levels depending on the viewport, yet annoying sometimes…

Dr Ishmael, i’d like to encourage you to use my example and help making it perfect for wiki use – i made these examples for the german wiki – i hope i’ll get some widget rights there soon to test it

Dr Ishmael.9685:

I’ve already created a widget on GW2W.EN: http://wiki.guildwars2.com/wiki/Widget:Zone_map

And while floor 2 does seem to not have this issue, the problem is that in maps.json, the explorable zones specify default_floor = 1. So if you’re building a map dynamically based on a map name, you’re going to use the default_floor value, and floor 1 is screwed up currently.

smiley.1438:

I’ve already seen your approaches on the wiki, but you seem to have problems with bounding boxes aka. pan restrictions – thats why i posted my example on your talk page earlier. It has also a minimum of inline JS which allows easier maintenance and it already supports multiple maps as you can see.

Cliff Spradlin.3512:

In map_floors.json, some maps are returning as 2 separate entries under “maps”.

I believe this problem is fixed, can you verify?

Primal Zed.9714:

In map_floors.json, some maps are returning as 2 separate entries under “maps”.

I believe this problem is fixed, can you verify?

Blazedridge Steppes and Lornar’s Pass are each still showing up twice in https://api.guildwars2.com/v1/map_floor.json?continent_id=1&floor=1

Possibly other maps as well.

Dr Ishmael.9685:

In map_floors.json, some maps are returning as 2 separate entries under “maps”.

I believe this problem is fixed, can you verify?

Blazedridge Steppes and Lornar’s Pass are each still showing up twice in https://api.guildwars2.com/v1/map_floor.json?continent_id=1&floor=1

Possibly other maps as well.

Yep, Harathi Hinterlands is still there twice. The first has all POIs and all sectors, the second has all waypoints and vistas but no landmarks and only 1 sector (tasks and skill challenges are all present in both).

Cliff Spradlin.3512:

In map_floors.json, some maps are returning as 2 separate entries under “maps”.

I believe this problem is fixed, can you verify?

Blazedridge Steppes and Lornar’s Pass are each still showing up twice in https://api.guildwars2.com/v1/map_floor.json?continent_id=1&floor=1

Possibly other maps as well.

Yep, Harathi Hinterlands is still there twice. The first has all POIs and all sectors, the second has all waypoints and vistas but no landmarks and only 1 sector (tasks and skill challenges are all present in both).

You’re right. OK, still looking into the bug.

Cliff Spradlin.3512:

OK, so we found the cause of this bug. The underlying map floor content sometimes points to the incorrect map_id for a few map instances.

Since it’s a bug in the underlying content, it’ll take a little while for it to be fixed in a live patch.

At least you found a good workaround in the meantime, which is to read floor 2’s data instead.

Primal Zed.9714:

Thanks Spradlin.

das moran fool.1072:

Any rough idea as to when this will be addressed? A month? Six months?

Thanks.

ElGreenGo.6734:

I spent the last week going crazy because of this bug. I thought it had already been fixed, so I thought it was a problem with my code.

I built this tool to find duplicate maps:
http://jsfiddle.net/UselessCode/uuMB7/

The following maps are currently still affected.

  • Dredgehaunt Cliffs
  • Lornar’s Pass
  • Blazeridge Steppes
  • Harathi Hinterlands
  • Bloodtide Coast

Dr Ishmael.9685:

Time to practice my thread necromancy… ABRACADABRA! puff of smoke coughcough blink Hey, it worked!

Guess what guys? Floor 1 is fixed! I ran ElGreenGo’s fiddle, and all maps show 1 instance in the output JSON. I specifically searched for the 5 last known bugged map names, and all of them appear only once.