PageSourceSearch

https://darwinturfclub.org.au/wp-content/plugins/dtc-amigo/assets/vendors/leaflet.pan-control.min.js?ver=1.0.0

js darwinturfclub.org.au collected 2026-10-02 18:55:37 UTC 1,815 bytes, 1 lines download raw bytes

1(function(t){var o;if("function"==typeof define&&define.amd)define(["leaflet"],t);else if("undefined"!=typeof module)o=require("leaflet"),module.exports=t(o);else{if("undefined"==typeof window.L)throw"Leaflet must be loaded first";t(window.L)}})(function(t){"use strict";return t.Control.Pan=t.Control.extend({options:{position:"topleft",panOffset:500},onAdd:function(o){var n="leaflet-control-pan",e=t.DomUtil.create("div",n),i=this.options.panOffset;if(this._panButton("Up",n+"-up",e,o,new t.Point(0,-i)),this._panButton("Left",n+"-left",e,o,new t.Point(-i,0)),this._panButton("Right",n+"-right",e,o,new t.Point(i,0)),this._panButton("Down",n+"-down",e,o,new t.Point(0,i)),"topleft"===this.options.position)var l=t.DomUtil.get(o._controlCorners.topleft);else if("topright"===this.options.position)var l=t.DomUtil.get(o._controlCorners.topright);else if("bottomleft"===this.options.position)var l=t.DomUtil.get(o._controlCorners.bottomleft);else var l=t.DomUtil.get(o._controlCorners.bottomright);return t.DomUtil.hasClass(l,"has-leaflet-pan-control")||t.DomUtil.addClass(l,"has-leaflet-pan-control"),e},onRemove:function(o){var n=t.DomUtil.get(o._controlCorners.topleft);t.DomUtil.hasClass(n,"has-leaflet-pan-control")&&t.DomUtil.removeClass(n,"has-leaflet-pan-control")},_panButton:function(o,n,e,i,l){var r=t.DomUtil.create("div",n+"-wrap",e),a=t.DomUtil.create("a",n,r);return a.href="#",a.title=o,t.DomEvent.on(a,"click",t.DomEvent.stopPropagation).on(a,"click",t.DomEvent.preventDefault).on(a,"click",function(){i.panBy(l)},i).on(a,"dblclick",t.DomEvent.stopPropagation),a}}),t.Map.mergeOptions({panControl:!1}),t.Map.addInitHook(function(){this.options.panControl&&(this.panControl=new t.Control.Pan,this.addControl(this.panControl))}),t.control.pan=function(o){return new t.Control.Pan(o)},t.Control.Pan});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.