ബ്യൂറോക്രാറ്റുകൾ, ചെക്ക് യൂസർമാർ, emailconfirmed, സമ്പർക്കമുഖ കാര്യനിർവാഹകർ, kiteuser, oversight, അമർച്ചകർ, കാര്യനിർവാഹകർ, അപ്ലോഡ് സഹായി മേള തിരുത്തുന്നവർ
24,964
തിരുത്തലുകൾ
No edit summary |
No edit summary |
||
| വരി 1: | വരി 1: | ||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); | mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); | ||
$(document).ready(function() { | |||
console.log ("map replace"); | |||
function replaceMarkerImage(newUrl) { | function replaceMarkerImage(newUrl) { | ||
// Get all image elements with the target class | |||
const imageElements = document.querySelectorAll('img.leaflet-marker-icon'); | |||
// Loop through each image element and update the src | |||
imageElements.forEach(image => { | |||
// Update the image source directly | |||
image.src = newUrl; | |||
}); | |||
} | |||
// Example usage: | |||
const newImageUrl = 'https://schoolwiki.in/extensions/Kartographer/lib/external/mapbox/images/marker-icon-2x.png'; // Replace with the new URL | |||
// Call the function to replace the marker images | |||
replaceMarkerImage(newImageUrl); | |||
}); | |||
//Quick Edit Box | //Quick Edit Box | ||
// [[User:BrandonXLF/QuickEdit.js]] | // [[User:BrandonXLF/QuickEdit.js]] | ||
തിരുത്തലുകൾ