At dawiki it was reported that the page https://da.wikipedia.org/w/index.php?title=Oldtidsstien&oldid=9924117 doesn't show the Kartographer map in mobile view.
It seems that it is caused by code like in the example below with an image link in the description of a feature:
{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [10.22919, 56.08545] }, "properties": { "title": "Stenkister", "description": "[[File:Stenkiste.jpg|200px]]", "marker-symbol": "star", "marker-size": "small", "marker-color": "0050d0" } },
If the description is changed to a text without the image link, the map be shown correct in mobile view.
The same can be seen in an example in the help page for Kartographer. The code:
<mapframe text="San Francisco museums" width="350" height="350" zoom="13" latitude="37.81032643553478" longitude="-122.39953994750977"> { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] }, "properties": { "title": "[[wikipedia:Exploratorium|Exploratorium]]", "description": "[[File:Giant_Mirror_at_the_Exploratorium.jpeg|200px]]", "marker-symbol": "museum", "marker-size": "large", "marker-color": "0050d0" } } </mapframe>
is shown in normal view at https://www.mediawiki.org/wiki/Help:Extension:Kartographer#<mapframe>_usage
but it is not shown in mobile view at https://m.mediawiki.org/wiki/Help:Extension:Kartographer#<mapframe>_usage
Developer notes
- Ensure MobileFrontend is registered BEFORE Kartographer
- Use following config
wfLoadExtension('Kartographer'); $wgKartographerStaticMapframe = true;