Page MenuHomePhabricator

Geojson map color styling ignored when displaying map on the page, for the data file on Commons is in a subdirectory
Closed, DuplicatePublicBUG REPORT

Description

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

What happens?:
The color styling present in geojson is ignored and the features display in a gray color when the map file is in subdirectory

What should have happened instead?:

Geojson data file in subdirectory should be rendered properly like that in root directory

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Firefox 123.0(64bit), Ubuntu 22.04
Screenshot of discussion comment on Module talk page enclosed.

Geojson rendering issue 2024-03-09 11-14-14.png (753×1 px, 386 KB)

Event Timeline

Arjunaraoc renamed this task from Geojson map styling ignored when displaying map on the page the file is in sudirectory to Geojson map styling ignored when displaying map on the page, when the data file on Commons is in a sudirectory.Mar 9 2024, 5:47 AM
Arjunaraoc renamed this task from Geojson map styling ignored when displaying map on the page, when the data file on Commons is in a sudirectory to Geojson map color styling ignored when displaying map on the page, for the data file on Commons is in a sudirectory.Mar 10 2024, 3:53 AM

Today, I find the static image in both cases is rendered in proper colour.

Arjunaraoc renamed this task from Geojson map color styling ignored when displaying map on the page, for the data file on Commons is in a sudirectory to Geojson map color styling ignored when displaying map on the page, for the data file on Commons is in a subdirectory.Mar 11 2024, 8:06 AM

I added another example Data:Andhra Pradesh/Veligonda Project.map to discussion comment, where the rendering worked fine first time itself on talk page, but did not for the actual article page even after two days of adding map.

I think this sometimes happens when you changed the color after you made a preview. The image gets cached for a day with the old state, and it takes a day or so before you see the new static image.