PluginProbe
Leaflet Map / 3.0.5
Leaflet Map v3.0.5
3.4.7 3.4.6 trunk 2.10.0 2.10.1 2.11.0 2.11.1 2.11.2 2.11.3 2.11.4 2.11.5 2.12.0 2.13.0 2.14.0 2.15.0 2.16.0 2.16.1 2.16.2 2.17.0 2.17.1 2.17.2 2.17.3 2.18.0 2.19.0 2.19.1 All 49 releases
leaflet-map / scripts / shortcode-helper.min.js

shortcode-helper.min.js in Leaflet Map 3.0.5, at scripts/shortcode-helper.min.js

2 lines 796 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 window.WPLeafletMapPlugin=window.WPLeafletMapPlugin||[],window.WPLeafletMapPlugin.push((function(){var e=document.getElementById("map-shortcode"),t=document.getElementById("marker-shortcode"),n=window.WPLeafletMapPlugin.maps[0],a=window.WPLeafletMapPlugin.markers[0];function l(){var e=a.getLatLng();t.value="[leaflet-marker lat="+e.lat+" lng="+e.lng+"]"}function o(){var t=n.getBounds(),l=t.getCenter();e.value="[leaflet-map lat="+l.lat+" lng="+l.lng+" zoom="+n.getZoom()+"]",t.contains(a.getLatLng())||a.setLatLng(l)}a.on("drag",l),n.on("move",o),o(),l(),e.addEventListener?(e.addEventListener("click",(function(){this.select()})),t.addEventListener("click",(function(){this.select()}))):(e.attachEvent("onclick",(function(){e.select()})),t.attachEvent("onclick",(function(){t.select()})))}));
2