When loading the Leaflet library with Resource Loader, the default marker icon does not show properly.
The issue vanishes when putting resource loader in debug mode or when making this modification (based on MW 1.34): https://github.com/JeroenDeDauw/MediaWiki/commit/1713ccde9de7d59634b1a134c58ee3c84ba01642
The issue has been present for at least 2 years. (Up till MW 1.34 the Maps extension used a hack to avoid the problem: stuffing an Html::linkedStyle() into the header on top of using the Resouce Loader. This no longer works as of 1.34, though is likely not related to the root cause of the problem.)
Using https://github.com/ghybs/leaflet-defaulticon-compatibility does not resolve the issue. (Wider context: https://github.com/Leaflet/Leaflet/issues/4968)
Related:
- Wikitech mail: https://lists.wikimedia.org/pipermail/wikitech-l/2020-March/093257.html
- Wikitech replies: https://lists.wikimedia.org/pipermail/wikitech-l/2020-April/thread.html
- Maps issue: https://github.com/JeroenDeDauw/Maps/issues/607
Some relevant code: