vendor: 1,219 bytes, lines 1-53
1L.Edit = L.Edit || {}; 2/** 3 * @class L.Edit.CircleMarker 4 * @aka Edit.Circle 5 * @inherits L.Edit.SimpleShape 6 */ 7L.Edit.CircleMarker = L.Edit.SimpleShape.extend({ 8 _createMoveMarker: function () { 9 var center = this._shape.getLatLng(); 10 11 this._moveMarker = this._createMarker(center, this.options.moveIcon); 12 }, 13 14 _createResizeMarker: function () { 15 // To avoid an undefined check in L.Edit.SimpleShape.removeHooks 16 this._resizeMarkers = []; 17 }, 18 19 _move: function (latlng) { 20 if (this._resizeMarkers.length) { 21 var resizemarkerPoint = this._getResizeMarkerPoint(latlng); 22 // Move the resize marker 23 this._resizeMarkers[0].setLatLng(resizemarkerPoint); 24 } 25 26 // Move the circle 27 this._shape.setLatLng(latlng); 28 29 this._map.fire(L.Draw.Event.EDITMOVE, {layer: this._shape}); 30 }, 31}); 32 33L.CircleMarker.addInitHook(function () { 34 if (L.Edit.CircleMarker) { 35 this.editing = new L.Edit.CircleMarker(this); 36 37 if (this.options.editable) { 38 this.editing.enable(); 39 } 40 } 41 42 this.on('add', function () { 43 if (this.editing && this.editing.enabled()) { 44 this.editing.addHooks(); 45 } 46 }); 47 48 this.on('remove', function () { 49 if (this.editing && this.editing.enabled()) { 50 this.editing.removeHooks(); 51 } 52 }); 53});
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.