Page MenuHomePhabricator

Map with GeometryCollection not rendering
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

It seems that something is causing Data:Interstate_74_in_North_Carolina.map to crash and leave the text "Map" on Interstate 74 in North Carolina and the map on List of Interstate Highways in North Carolina which uses the same data file as well.

What happens?:
The rendered image version of the map does not show a map. Approaching the url directly returns:. "Cannot read property '1' of undefined"

Opening the map DOES show it.

Suspect this is due to recent changes. This map has one special thing, which is that it uses a geometries collection. I noticed that this makes it throw an error when opening the map.

[Warning] jQuery.Deferred exception: shape.getElement is not a function. (In 'shape.getElement()', 'shape.getElement' is undefined)

This error is definetly due to recent changes, specifically due to change-id: I1c3047026268311fc7e0b09bb18409e528d57db8 from T320701
A feature of geometriescollection is not a shape that has getElement.

This is all I was able to figure out, the two might be related or not, but I don't have more time to reduce right now.

Event Timeline

I moved the data of the geometry collection into the primary feature collection in this version of the map: https://commons.wikimedia.org/wiki/Data:Interstate_74_in_North_Carolina_v3.map

And that makes it work, confirming that it definitely has to do with the usage of geometry collection. Its the 3rd map on this page: https://en.wikipedia.org/wiki/User:TheDJ/mapTest

Maybe @awight has some idea about the cause of the problem

TheDJ renamed this task from specific map not rendering to Map with GeometryCollection not rendering.Apr 19 2023, 11:31 AM
TheDJ added a subscriber: thiemowmde.