This is because you have not initialized the imagePath of leaflet markers.
Because of that it falls back to detectIconPath(), which isn't smart enough to handle
the myriad of forms of background image css that are possible with post processing systems
This issue is also known in Leaflet:
On 1 Apr 2020, at 01:08, Jeroen De Dauw
When using the Maps extension together with MediaWiki 1.34 or later the
markers on Leaflet maps do not show correctly.
Issue tread: https://github.com/JeroenDeDauw/Maps/issues/607
They show fine on older versions of MediaWiki. Though only if Maps loads
the leaflet.css file by stuffing an Html::linkedStyle() into the header on
top of using the Resouce Loader. Without that hack the bug also shows up on
older MediaWiki versions.
As you can deduce from that hack working, Resouce Loader is somehow
involved. This can be confirmed by setting $wgResourceLoaderDebug to true,
which causes the bug to disappear. I tracked this down a bit and found that
this modification "fixes" the bug as well:
Without knowing how the Leaflet library is being broken or knowing Resource
Loader internals, this is rather hard to track down further. Any help is
Some relevant code:
* Resource loader module definition:
Jeroen De Dauw | www.EntropyWins.wtf
Professional wiki hosting and services: www.Professional.Wiki
Entrepreneur | Software Crafter | Open Source | Wikimedia | Speaker
Wikitech-l mailing list