"മീഡിയവിക്കി:Common.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
(ചെ.)No edit summary |
(ചെ.)No edit summary |
||
| വരി 3: | വരി 3: | ||
document.addEventListener("DOMContentLoaded", function () { | document.addEventListener("DOMContentLoaded", function () { | ||
// Find all images | // Find all images inside the leaflet-pane leaflet-marker-pane class | ||
const images = document.querySelectorAll('.leaflet-marker-pane img'); | const images = document.querySelectorAll('.leaflet-pane.leaflet-marker-pane img'); | ||
images.forEach(function (img) { | images.forEach(function (img) { | ||
img.src = "https://schoolwiki.in/extensions/Kartographer/lib/external/mapbox/images/marker-icon-2x.png"; | img.src = "https://schoolwiki.in/extensions/Kartographer/lib/external/mapbox/images/marker-icon-2x.png"; | ||