Maps
Maps copied to clipboard
Scale big leaflet markers
When Leaflet markers are large images they are shown large on the map, rather than scaled.
It is not clear to me what they should be scaled to. I'd also like to see an example of a marker showing up poorly. Please create one at https://sandbox.semantic-mediawiki.org/wiki/Issue/M/510
It looks like sandbox does not like Maps! Here are two shots of the diffrence from openlayers to leafelet:
Thanks for reporting this.
I am not sure what would be a good solution. For your case applying the same resizing as OpenLayers does would be ideal. Though this will change the behavior for current users of Leaflet, for who their markers will suddenly be changed in size.
I understand that not fixing this would mean some migration work, though maybe that is not a big thing. How many wikis are using OpenLayers with custom icons that are too big? And of those how many have more than a dozen used marker icons? I don't know but the answer might well be zero. How many icon images do you have?
Relevant doc: https://leafletjs.com/examples/custom-icons/
Issue still present in latest version
Still an issue in the latest version.
Perhaps it's outside the scope of the target userbase of ProWiki itself, but a use case for the extension to have different custom markers is to place different portraits/pictures on a map of where certain characters of a film or TV show are from.