react-leaflet-magnifying-glass
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("leaflet"),require("react-leaflet")):"function"==typeof define&&define.amd?define(["leaflet","react-leaflet"],n):"object"==typeof exports?exports.ReactLeafletMagnifyingGlass=n(require("leaflet"),require("react-leaflet")):t.ReactLeafletMagnifyingGlass=n(t.L,t.ReactLeaflet)}(this,function(t,n){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var i=e(4),o=r(i);n.default=o.default},function(t,n){function e(t,n){var e=t[1]||"",i=t[3];if(!i)return e;if(n&&"function"==typeof btoa){var o=r(i),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[e].concat(a).concat([o]).join("\n")}return[e].join("\n")}function r(t){var n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,"+n;return"/*# "+e+" */"}t.exports=function(t){var n=[];return n.toString=function(){return this.map(function(n){var r=e(n,t);return n[2]?"@media "+n[2]+"{"+r+"}":r}).join("")},n.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(e&&!a[2]?a[2]=e:e&&(a[2]="("+a[2]+") and ("+e+")"),n.push(a))}},n}},function(t,n,e){function r(t,n){for(var e=0;e<t.length;e++){var r=t[e],i=d[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(f(r.parts[o],n))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(f(r.parts[o],n));d[r.id]={id:r.id,refs:1,parts:a}}}}function i(t,n){for(var e=[],r={},i=0;i<t.length;i++){var o=t[i],a=n.base?o[0]+n.base:o[0],u=o[1],s=o[2],l=o[3],f={css:u,media:s,sourceMap:l};r[a]?r[a].parts.push(f):e.push(r[a]={id:a,parts:[f]})}return e}function o(t,n){var e=g(t.insertInto);if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=_[_.length-1];if("top"===t.insertAt)r?r.nextSibling?e.insertBefore(n,r.nextSibling):e.appendChild(n):e.insertBefore(n,e.firstChild),_.push(n);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");e.appendChild(n)}}function a(t){t.parentNode.removeChild(t);var n=_.indexOf(t);n>=0&&_.splice(n,1)}function u(t){var n=document.createElement("style");return t.attrs.type="text/css",l(n,t.attrs),o(t,n),n}function s(t){var n=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",l(n,t.attrs),o(t,n),n}function l(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function f(t,n){var e,r,i,o;if(n.transform&&t.css){if(o=n.transform(t.css),!o)return function(){};t.css=o}if(n.singleton){var l=b++;e=m||(m=u(n)),r=c.bind(null,e,l,!1),i=c.bind(null,e,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(e=s(n),r=h.bind(null,e,n),i=function(){a(e),e.href&&URL.revokeObjectURL(e.href)}):(e=u(n),r=p.bind(null,e),i=function(){a(e)});return r(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;r(t=n)}else i()}}function c(t,n,e,r){var i=e?"":r.css;if(t.styleSheet)t.styleSheet.cssText=L(n,i);else{var o=document.createTextNode(i),a=t.childNodes;a[n]&&t.removeChild(a[n]),a.length?t.insertBefore(o,a[n]):t.appendChild(o)}}function p(t,n){var e=n.css,r=n.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}function h(t,n,e){var r=e.css,i=e.sourceMap,o=void 0===n.convertToAbsoluteUrls&&i;(n.convertToAbsoluteUrls||o)&&(r=A(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),u=t.href;t.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}var d={},v=function(t){var n;return function(){return"undefined"==typeof n&&(n=t.apply(this,arguments)),n}},y=v(function(){return window&&document&&document.all&&!window.atob}),g=function(t){var n={};return function(e){return"undefined"==typeof n[e]&&(n[e]=t.call(this,e)),n[e]}}(function(t){return document.querySelector(t)}),m=null,b=0,_=[],A=e(9);t.exports=function(t,n){n=n||{},n.attrs="object"==typeof n.attrs?n.attrs:{},"undefined"==typeof n.singleton&&(n.singleton=y()),"undefined"==typeof n.insertInto&&(n.insertInto="head"),"undefined"==typeof n.insertAt&&(n.insertAt="bottom");var e=i(t,n);return r(e,n),function(t){for(var o=[],a=0;a<e.length;a++){var u=e[a],s=d[u.id];s.refs--,o.push(s)}if(t){var l=i(t,n);r(l,n)}for(var a=0;a<o.length;a++){var s=o[a];if(0===s.refs){for(var f=0;f<s.parts.length;f++)s.parts[f]();delete d[s.id]}}}};var L=function(){var t=[];return function(n,e){return t[n]=e,t.filter(Boolean).join("\n")}}()},function(t,n){"use strict";L.Control.MagnifyingGlass=L.Control.extend({_magnifyingGlass:!1,options:{position:"topleft",title:"Toggle Magnifying Glass",forceSeparateButton:!1},initialize:function(t,n){this._magnifyingGlass=t;for(var e in n)n.hasOwnProperty(e)&&this.options.hasOwnProperty(e)&&(this.options[e]=n[e])},onAdd:function(t){var n,e="leaflet-control-magnifying-glass";return n=t.zoomControl&&!this.options.forceSeparateButton?t.zoomControl._container:L.DomUtil.create("div","leaflet-bar"),this._createButton(this.options.title,e,n,this._clicked,t,this._magnifyingGlass),n},_createButton:function(t,n,e,r,i,o){var a=L.DomUtil.create("a",n,e);return a.href="#",a.title=t,L.DomEvent.addListener(a,"click",L.DomEvent.stopPropagation).addListener(a,"click",L.DomEvent.preventDefault).addListener(a,"click",function(){r(i,o)},i),a},_clicked:function(t,n){n&&(t.hasLayer(n)?t.removeLayer(n):n.addTo(t))}}),L.control.magnifyingglass=function(t,n){return new L.Control.MagnifyingGlass(t,n)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function a(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var u=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),s=e(14),l=e(13),f=r(l),c=e(12),p=r(c),h=e(5),d=r(h);e(6),e(3),e(11),e(10);var v=function(t){function n(){return i(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,t),u(n,[{key:"createLeafletElement",value:function(t){var n=this,e=this.context.map,r=t.position,i=void 0===r?"topleft":r;t.forceSeparateButton;this.layers={},this.mounted=!1,e.on("layeradd",function(t){n._addLayer(t)}),e.on("layerremove",function(t){n._removeLayer(t)}),e.on("unload",function(t){n.mounted=!1});var o={position:i,forceSeparateButton:!0};return f.default.control.magnifyingglass(null,o)}},{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"_addLayer",value:function(t){var n=t.layer;if(!n.options.isMagnifyingGlassLayer){var e=function(t){var n=p.default.values(t);return p.default.some(n,function(t){return t instanceof f.default.Layer})};p.default.has(n,"_layers")||e(n.options)||!p.default.has(n,"_leaflet_id")||n.options.isMagnifyingGlassLayer||(this.layers[n._leaflet_id]=(0,d.default)(n)),this._updateMagnifyingGlass()}}},{key:"_removeLayer",value:function(t){var n=t.layer;n.options.isMagnifyingGlassLayer||(delete this.layers[n._leaflet_id],this._updateMagnifyingGlass())}},{key:"_updateMagnifyingGlass",value:function(){if(this.mounted){var t=this.context.map,n=this.props,e=n.position,r=void 0===e?"topleft":e,i=(n.forceSeparateButton,n.radius),o=void 0===i?100:i,a=n.zoomOffset,u=void 0===a?3:a,s=n.fixedZoom,l=void 0===s?-1:s,c=t.hasLayer(this.magnifyingGlass);c&&t.removeLayer(this.magnifyingGlass),t.removeControl(this.leafletElement);var h={position:r,forceSeparateButton:!0};this.magnifyingGlass=f.default.magnifyingGlass({radius:o,zoomOffset:u,fixedZoom:l,isMagnifyingGlassLayer:!0,layers:p.default.values(this.layers)}),this.leafletElement=f.default.control.magnifyingglass(this.magnifyingGlass,h),this.leafletElement.addTo(t),c&&this.magnifyingGlass.addTo(t)}}}]),n}(s.MapControl);n.default=v},function(t,n,e){"use strict";function r(t){var n={};for(var e in t){var r=t[e];r&&r.clone?n[e]=r.clone():r instanceof L.Layer?n[e]=o(r):n[e]=r}return n}function i(t){var n=[];return t.eachLayer(function(t){n.push(o(t))}),n}function o(t){var n=r(t.options);if(t instanceof L.SVG)return L.svg(n);if(t instanceof L.Canvas)return L.canvas(n);if(t instanceof L.TileLayer.WMS)return L.tileLayer.wms(t._url,n);if(t instanceof L.TileLayer)return L.tileLayer(t._url,n);if(t instanceof L.ImageOverlay)return L.imageOverlay(t._url,t._bounds,n);if(t instanceof L.Marker)return L.marker(t.getLatLng(),n);if(t instanceof L.Circle)return L.circle(t.getLatLng(),t.getRadius(),n);if(t instanceof L.CircleMarker)return L.circleMarker(t.getLatLng(),n);if(t instanceof L.Rectangle)return L.rectangle(t.getBounds(),n);if(t instanceof L.Polygon)return L.polygon(t.getLatLngs(),n);if(t instanceof L.Polyline)return L.polyline(t.getLatLngs(),n);if(t instanceof L.GeoJSON)return L.geoJson(t.toGeoJSON(),n);if(t instanceof L.LayerGroup)return L.layerGroup(i(t));if(t instanceof L.FeatureGroup)return L.FeatureGroup(i(t));throw"Unknown layer, cannot clone this layer. Leaflet-version: "+L.version}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};"object"===a(n)&&(t.exports=o)},function(t,n){"use strict";L.MagnifyingGlass=L.Layer.extend({options:{radius:100,zoomOffset:3,layers:[],fixedPosition:!1,latLng:[0,0],fixedZoom:-1},initialize:function(t){L.Util.setOptions(this,t),this._fixedZoom=this.options.fixedZoom!=-1,this._mainMap=null,this._glassMap=null},getMap:function(){return this._glassMap},_createMiniMap:function(t){return new L.Map(t,{layers:this.options.layers,zoom:this._getZoom(),maxZoom:this._mainMap.getMaxZoom(),minZoom:this._mainMap.getMinZoom(),crs:this._mainMap.options.crs,fadeAnimation:!1,attributionControl:!1,zoomControl:!1,boxZoom:!1,touchZoom:!1,scrollWheelZoom:!1,doubleClickZoom:!1,dragging:!1,keyboard:!1})},_getZoom:function(){return this._fixedZoom?this.options.fixedZoom:this._mainMap.getZoom()+this.options.zoomOffset},_updateZoom:function(){this._glassMap.setZoom(this._getZoom())},setRadius:function(t){this.options.radius=t,this._wrapperElt&&(this._wrapperElt.style.width=2*this.options.radius+"px",this._wrapperElt.style.height=2*this.options.radius+"px")},setLatLng:function(t){this.options.latLng=t,this._update(t)},_updateFromMouse:function(t){this._update(t.latlng,t.layerPoint)},_updateFixed:function(){this._update(this.options.latLng)},_update:function(t,n){this._glassMap.setView(t,this._getZoom(),{pan:{animate:!1}}),n=n||this._mainMap.latLngToLayerPoint(t),this._wrapperElt.style.left=n.x-this.options.radius+"px",this._wrapperElt.style.top=n.y-this.options.radius+"px"},onAdd:function(t){this._mainMap=t,this._wrapperElt=L.DomUtil.create("div","leaflet-magnifying-glass");var n=L.DomUtil.create("div","",this._wrapperElt);L.Browser.webkit&&L.DomUtil.addClass(n,"leaflet-magnifying-glass-webkit"),this._glassMap=this._createMiniMap(n),L.DomEvent.addListener(this._wrapperElt,"click",this._fireClick,this);var e=this.options;return this.setRadius(e.radius),this.setLatLng(e.latLng),this._glassMap.whenReady(function(){e.fixedPosition?(this._mainMap.on("zoomend",this._updateFixed,this),L.DomUtil.addClass(this._wrapperElt,"leaflet-zoom-hide")):(this._mainMap.on("mousemove",this._updateFromMouse,this),this._fixedZoom||this._mainMap.on("zoomend",this._updateZoom,this))},this),t.getPanes().popupPane.appendChild(this._wrapperElt),this._glassMap.invalidateSize(),this},_fireClick:function(t){this.fire("click",t),L.DomEvent.stopPropagation(t)},onRemove:function(t){t.off("viewreset",this._updateFixed,this),t.off("mousemove",this._updateFromMouse,this),t.off("zoomend",this._updateZoom,this);for(var n=0,e=this.options.layers.length;n<e;n++)this._glassMap.removeLayer(this.options.layers[n]);return this._glassMap.remove(),L.DomEvent.removeListener(this._wrapperElt,"click",this._fireClick),t.getPanes().popupPane.removeChild(this._wrapperElt),this._mainMap=null,this}}),L.magnifyingGlass=function(t){return new L.MagnifyingGlass(t)}},function(t,n,e){n=t.exports=e(1)(!1),n.push([t.id,".leaflet-control-magnifying-glass{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAzUlEQVQoFQXBsUpCUQAA0INbvMlVcFC3UFJCEFpczOWB5hKCa+APJPgRLbk6h1+gUIuj0NgX2NKiGVE+64W3c4CCqVfBm5kKAABNHxY6zrU9SPQBgLydWwD07NUBYGIOALjzBABrXQBARSoCIFUFAESCAkDGuxwAIOdoC5Dx6BoA0PfsE4CyxBUAGr50AICBg3tlWSUj337FAAAXllLBn5WeocSNGgDAiaIIMBZs1QAAALj0I9g4AwAAoGUv2KkDAAAQOwheAAAAILZ2+g9v1zZYRtFGvAAAAABJRU5ErkJggg==)}",""])},function(t,n,e){n=t.exports=e(1)(!1),n.push([t.id,".leaflet-magnifying-glass{border-radius:50%;border:1px solid gray;box-shadow:0 0 5px gray;position:absolute;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box}.leaflet-magnifying-glass>.leaflet-container{height:100%;width:100%}.leaflet-magnifying-glass-webkit{border-radius:50%;-webkit-mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC)}",""])},function(t,n){t.exports=function(t){var n="undefined"!=typeof window&&window.location;if(!n)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var e=n.protocol+"//"+n.host,r=e+n.pathname.replace(/\/[^\/]*$/,"/"),i=t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,n){var i=n.trim().replace(/^"(.*)"$/,function(t,n){return n}).replace(/^'(.*)'$/,function(t,n){return n});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i))return t;var o;return o=0===i.indexOf("//")?i:0===i.indexOf("/")?e+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"});return i}},function(t,n,e){var r=e(7);"string"==typeof r&&(r=[[t.id,r,""]]);var i,o={};o.transform=i;e(2)(r,o);r.locals&&(t.exports=r.locals)},function(t,n,e){var r=e(8);"string"==typeof r&&(r=[[t.id,r,""]]);var i,o={};o.transform=i;e(2)(r,o);r.locals&&(t.exports=r.locals)},function(t,n,e){var r,i;(function(){function e(t){function n(n,e,r,i,o,a){for(;o>=0&&o<a;o+=t){var u=i?i[o]:o;r=e(r,n[u],u,n)}return r}return function(e,r,i,o){r=x(r,o,4);var a=!S(e)&&L.keys(e),u=(a||e).length,s=t>0?0:u-1;return arguments.length<3&&(i=e[a?a[s]:s],s+=t),n(e,r,i,a,s,u)}}function o(t){return function(n,e,r){e=w(e,r);for(var i=E(n),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(e(n[o],o,n))return o;return-1}}function a(t,n,e){return function(r,i,o){var a=0,u=E(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+u,a):u=o>=0?Math.min(o+1,u):o+u+1;else if(e&&o&&u)return o=e(r,i),r[o]===i?o:-1;if(i!==i)return o=n(d.call(r,a,u),L.isNaN),o>=0?o+a:-1;for(o=t>0?a:u-1;o>=0&&o<u;o+=t)if(r[o]===i)return o;return-1}}function u(t,n){var e=R.length,r=t.constructor,i=L.isFunction(r)&&r.prototype||c,o="constructor";for(L.has(t,o)&&!L.contains(n,o)&&n.push(o);e--;)o=R[e],o in t&&t[o]!==i[o]&&!L.contains(n,o)&&n.push(o)}var s=this,l=s._,f=Array.prototype,c=Object.prototype,p=Function.prototype,h=f.push,d=f.slice,v=c.toString,y=c.hasOwnProperty,g=Array.isArray,m=Object.keys,b=p.bind,_=Object.create,A=function(){},L=function(t){return t instanceof L?t:this instanceof L?void(this._wrapped=t):new L(t)};"undefined"!=typeof t&&t.exports&&(n=t.exports=L),n._=L,L.VERSION="1.8.3";var x=function(t,n,e){if(void 0===n)return t;switch(null==e?3:e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,o){return t.call(n,e,r,i,o)}}return function(){return t.apply(n,arguments)}},w=function(t,n,e){return null==t?L.identity:L.isFunction(t)?x(t,n,e):L.isObject(t)?L.matcher(t):L.property(t)};L.iteratee=function(t,n){return w(t,n,1/0)};var M=function(t,n){return function(e){var r=arguments.length;if(r<2||null==e)return e;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),u=a.length,s=0;s<u;s++){var l=a[s];n&&void 0!==e[l]||(e[l]=o[l])}return e}},j=function(t){if(!L.isObject(t))return{};if(_)return _(t);A.prototype=t;var n=new A;return A.prototype=null,n},k=function(t){return function(n){return null==n?void 0:n[t]}},O=Math.pow(2,53)-1,E=k("length"),S=function(t){var n=E(t);return"number"==typeof n&&n>=0&&n<=O};L.each=L.forEach=function(t,n,e){n=x(n,e);var r,i;if(S(t))for(r=0,i=t.length;r<i;r++)n(t[r],r,t);else{var o=L.keys(t);for(r=0,i=o.length;r<i;r++)n(t[o[r]],o[r],t)}return t},L.map=L.collect=function(t,n,e){n=w(n,e);for(var r=!S(t)&&L.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=n(t[u],u,t)}return o},L.reduce=L.foldl=L.inject=e(1),L.reduceRight=L.foldr=e(-1),L.find=L.detect=function(t,n,e){var r;if(r=S(t)?L.findIndex(t,n,e):L.findKey(t,n,e),void 0!==r&&r!==-1)return t[r]},L.filter=L.select=function(t,n,e){var r=[];return n=w(n,e),L.each(t,function(t,e,i){n(t,e,i)&&r.push(t)}),r},L.reject=function(t,n,e){return L.filter(t,L.negate(w(n)),e)},L.every=L.all=function(t,n,e){n=w(n,e);for(var r=!S(t)&&L.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!n(t[a],a,t))return!1}return!0},L.some=L.any=function(t,n,e){n=w(n,e);for(var r=!S(t)&&L.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(n(t[a],a,t))return!0}return!1},L.contains=L.includes=L.include=function(t,n,e,r){return S(t)||(t=L.values(t)),("number"!=typeof e||r)&&(e=0),L.indexOf(t,n,e)>=0},L.invoke=function(t,n){var e=d.call(arguments,2),r=L.isFunction(n);return L.map(t,function(t){var i=r?n:t[n];return null==i?i:i.apply(t,e)})},L.pluck=function(t,n){return L.map(t,L.property(n))},L.where=function(t,n){return L.filter(t,L.matcher(n))},L.findWhere=function(t,n){return L.find(t,L.matcher(n))},L.max=function(t,n,e){var r,i,o=-(1/0),a=-(1/0);if(null==n&&null!=t){t=S(t)?t:L.values(t);for(var u=0,s=t.length;u<s;u++)r=t[u],r>o&&(o=r)}else n=w(n,e),L.each(t,function(t,e,r){i=n(t,e,r),(i>a||i===-(1/0)&&o===-(1/0))&&(o=t,a=i)});return o},L.min=function(t,n,e){var r,i,o=1/0,a=1/0;if(null==n&&null!=t){t=S(t)?t:L.values(t);for(var u=0,s=t.length;u<s;u++)r=t[u],r<o&&(o=r)}else n=w(n,e),L.each(t,function(t,e,r){i=n(t,e,r),(i<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},L.shuffle=function(t){for(var n,e=S(t)?t:L.values(t),r=e.length,i=Array(r),o=0;o<r;o++)n=L.random(0,o),n!==o&&(i[o]=i[n]),i[n]=e[o];return i},L.sample=function(t,n,e){return null==n||e?(S(t)||(t=L.values(t)),t[L.random(t.length-1)]):L.shuffle(t).slice(0,Math.max(0,n))},L.sortBy=function(t,n,e){return n=w(n,e),L.pluck(L.map(t,function(t,e,r){return{value:t,index:e,criteria:n(t,e,r)}}).sort(function(t,n){var e=t.criteria,r=n.criteria;if(e!==r){if(e>r||void 0===e)return 1;if(e<r||void 0===r)return-1}return t.index-n.index}),"value")};var C=function(t){return function(n,e,r){var i={};return e=w(e,r),L.each(n,function(r,o){var a=e(r,o,n);t(i,r,a)}),i}};L.groupBy=C(function(t,n,e){L.has(t,e)?t[e].push(n):t[e]=[n]}),L.indexBy=C(function(t,n,e){t[e]=n}),L.countBy=C(function(t,n,e){L.has(t,e)?t[e]++:t[e]=1}),L.toArray=function(t){return t?L.isArray(t)?d.call(t):S(t)?L.map(t,L.identity):L.values(t):[]},L.size=function(t){return null==t?0:S(t)?t.length:L.keys(t).length},L.partition=function(t,n,e){n=w(n,e);var r=[],i=[];return L.each(t,function(t,e,o){(n(t,e,o)?r:i).push(t)}),[r,i]},L.first=L.head=L.take=function(t,n,e){if(null!=t)return null==n||e?t[0]:L.initial(t,t.length-n)},L.initial=function(t,n,e){return d.call(t,0,Math.max(0,t.length-(null==n||e?1:n)))},L.last=function(t,n,e){if(null!=t)return null==n||e?t[t.length-1]:L.rest(t,Math.max(0,t.length-n))},L.rest=L.tail=L.drop=function(t,n,e){return d.call(t,null==n||e?1:n)},L.compact=function(t){return L.filter(t,L.identity)};var B=function(t,n,e,r){for(var i=[],o=0,a=r||0,u=E(t);a<u;a++){var s=t[a];if(S(s)&&(L.isArray(s)||L.isArguments(s))){n||(s=B(s,n,e));var l=0,f=s.length;for(i.length+=f;l<f;)i[o++]=s[l++]}else e||(i[o++]=s)}return i};L.flatten=function(t,n){return B(t,n,!1)},L.without=function(t){return L.difference(t,d.call(arguments,1))},L.uniq=L.unique=function(t,n,e,r){L.isBoolean(n)||(r=e,e=n,n=!1),null!=e&&(e=w(e,r));for(var i=[],o=[],a=0,u=E(t);a<u;a++){var s=t[a],l=e?e(s,a,t):s;n?(a&&o===l||i.push(s),o=l):e?L.contains(o,l)||(o.push(l),i.push(s)):L.contains(i,s)||i.push(s)}return i},L.union=function(){return L.uniq(B(arguments,!0,!0))},L.intersection=function(t){for(var n=[],e=arguments.length,r=0,i=E(t);r<i;r++){var o=t[r];if(!L.contains(n,o)){for(var a=1;a<e&&L.contains(arguments[a],o);a++);a===e&&n.push(o)}}return n},L.difference=function(t){var n=B(arguments,!0,!0,1);return L.filter(t,function(t){return!L.contains(n,t)})},L.zip=function(){return L.unzip(arguments)},L.unzip=function(t){for(var n=t&&L.max(t,E).length||0,e=Array(n),r=0;r<n;r++)e[r]=L.pluck(t,r);return e},L.object=function(t,n){for(var e={},r=0,i=E(t);r<i;r++)n?e[t[r]]=n[r]:e[t[r][0]]=t[r][1];return e},L.findIndex=o(1),L.findLastIndex=o(-1),L.sortedIndex=function(t,n,e,r){e=w(e,r,1);for(var i=e(n),o=0,a=E(t);o<a;){var u=Math.floor((o+a)/2);e(t[u])<i?o=u+1:a=u}return o},L.indexOf=a(1,L.findIndex,L.sortedIndex),L.lastIndexOf=a(-1,L.findLastIndex),L.range=function(t,n,e){null==n&&(n=t||0,t=0),e=e||1;for(var r=Math.max(Math.ceil((n-t)/e),0),i=Array(r),o=0;o<r;o++,t+=e)i[o]=t;return i};var U=function(t,n,e,r,i){if(!(r instanceof n))return t.apply(e,i);var o=j(t.prototype),a=t.apply(o,i);return L.isObject(a)?a:o};L.bind=function(t,n){if(b&&t.bind===b)return b.apply(t,d.call(arguments,1));if(!L.isFunction(t))throw new TypeError("Bind must be called on a function");var e=d.call(arguments,2),r=function(){return U(t,r,n,this,e.concat(d.call(arguments)))};return r},L.partial=function(t){var n=d.call(arguments,1),e=function(){for(var r=0,i=n.length,o=Array(i),a=0;a<i;a++)o[a]=n[a]===L?arguments[r++]:n[a];for(;r<arguments.length;)o.push(arguments[r++]);return U(t,e,this,this,o)};return e},L.bindAll=function(t){var n,e,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(n=1;n<r;n++)e=arguments[n],t[e]=L.bind(t[e],t);return t},L.memoize=function(t,n){var e=function(r){var i=e.cache,o=""+(n?n.apply(this,arguments):r);return L.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return e.cache={},e},L.delay=function(t,n){var e=d.call(arguments,2);return setTimeout(function(){return t.apply(null,e)},n)},L.defer=L.partial(L.delay,L,1),L.throttle=function(t,n,e){var r,i,o,a=null,u=0;e||(e={});var s=function(){u=e.leading===!1?0:L.now(),a=null,o=t.apply(r,i),a||(r=i=null)};return function(){var l=L.now();u||e.leading!==!1||(u=l);var f=n-(l-u);return r=this,i=arguments,f<=0||f>n?(a&&(clearTimeout(a),a=null),u=l,o=t.apply(r,i),a||(r=i=null)):a||e.trailing===!1||(a=setTimeout(s,f)),o}},L.debounce=function(t,n,e){var r,i,o,a,u,s=function(){var l=L.now()-a;l<n&&l>=0?r=setTimeout(s,n-l):(r=null,e||(u=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=L.now();var l=e&&!r;return r||(r=setTimeout(s,n)),l&&(u=t.apply(o,i),o=i=null),u}},L.wrap=function(t,n){return L.partial(n,t)},L.negate=function(t){return function(){return!t.apply(this,arguments)}},L.compose=function(){var t=arguments,n=t.length-1;return function(){for(var e=n,r=t[n].apply(this,arguments);e--;)r=t[e].call(this,r);return r}},L.after=function(t,n){return function(){if(--t<1)return n.apply(this,arguments)}},L.before=function(t,n){var e;return function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=null),e}},L.once=L.partial(L.before,2);var G=!{toString:null}.propertyIsEnumerable("toString"),R=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];L.keys=function(t){if(!L.isObject(t))return[];if(m)return m(t);var n=[];for(var e in t)L.has(t,e)&&n.push(e);return G&&u(t,n),n},L.allKeys=function(t){if(!L.isObject(t))return[];var n=[];for(var e in t)n.push(e);return G&&u(t,n),n},L.values=function(t){for(var n=L.keys(t),e=n.length,r=Array(e),i=0;i<e;i++)r[i]=t[n[i]];return r},L.mapObject=function(t,n,e){n=w(n,e);for(var r,i=L.keys(t),o=i.length,a={},u=0;u<o;u++)r=i[u],a[r]=n(t[r],r,t);return a},L.pairs=function(t){for(var n=L.keys(t),e=n.length,r=Array(e),i=0;i<e;i++)r[i]=[n[i],t[n[i]]];return r},L.invert=function(t){for(var n={},e=L.keys(t),r=0,i=e.length;r<i;r++)n[t[e[r]]]=e[r];return n},L.functions=L.methods=function(t){var n=[];for(var e in t)L.isFunction(t[e])&&n.push(e);return n.sort()},L.extend=M(L.allKeys),L.extendOwn=L.assign=M(L.keys),L.findKey=function(t,n,e){n=w(n,e);for(var r,i=L.keys(t),o=0,a=i.length;o<a;o++)if(r=i[o],n(t[r],r,t))return r},L.pick=function(t,n,e){var r,i,o={},a=t;if(null==a)return o;L.isFunction(n)?(i=L.allKeys(a),r=x(n,e)):(i=B(arguments,!1,!1,1),r=function(t,n,e){return n in e},a=Object(a));for(var u=0,s=i.length;u<s;u++){var l=i[u],f=a[l];r(f,l,a)&&(o[l]=f)}return o},L.omit=function(t,n,e){if(L.isFunction(n))n=L.negate(n);else{var r=L.map(B(arguments,!1,!1,1),String);n=function(t,n){return!L.contains(r,n)}}return L.pick(t,n,e)},L.defaults=M(L.allKeys,!0),L.create=function(t,n){var e=j(t);return n&&L.extendOwn(e,n),e},L.clone=function(t){return L.isObject(t)?L.isArray(t)?t.slice():L.extend({},t):t},L.tap=function(t,n){return n(t),t},L.isMatch=function(t,n){var e=L.keys(n),r=e.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=e[o];if(n[a]!==i[a]||!(a in i))return!1}return!0};var F=function(t,n,e,r){if(t===n)return 0!==t||1/t===1/n;if(null==t||null==n)return t===n;t instanceof L&&(t=t._wrapped),n instanceof L&&(n=n._wrapped);var i=v.call(t);if(i!==v.call(n))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!==+t?+n!==+n:0===+t?1/+t===1/n:+t===+n;case"[object Date]":case"[object Boolean]":return+t===+n}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof n)return!1;var a=t.constructor,u=n.constructor;if(a!==u&&!(L.isFunction(a)&&a instanceof a&&L.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}e=e||[],r=r||[];for(var s=e.length;s--;)if(e[s]===t)return r[s]===n;if(e.push(t),r.push(n),o){if(s=t.length,s!==n.length)return!1;for(;s--;)if(!F(t[s],n[s],e,r))return!1}else{var l,f=L.keys(t);if(s=f.length,L.keys(n).length!==s)return!1;for(;s--;)if(l=f[s],!L.has(n,l)||!F(t[l],n[l],e,r))return!1}return e.pop(),r.pop(),!0};L.isEqual=function(t,n){return F(t,n)},L.isEmpty=function(t){return null==t||(S(t)&&(L.isArray(t)||L.isString(t)||L.isArguments(t))?0===t.length:0===L.keys(t).length)},L.isElement=function(t){return!(!t||1!==t.nodeType)},L.isArray=g||function(t){return"[object Array]"===v.call(t)},L.isObject=function(t){var n=typeof t;return"function"===n||"object"===n&&!!t},L.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){L["is"+t]=function(n){return v.call(n)==="[object "+t+"]"}}),L.isArguments(arguments)||(L.isArguments=function(t){return L.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(L.isFunction=function(t){return"function"==typeof t||!1}),L.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},L.isNaN=function(t){return L.isNumber(t)&&t!==+t},L.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===v.call(t)},L.isNull=function(t){return null===t},L.isUndefined=function(t){return void 0===t},L.has=function(t,n){return null!=t&&y.call(t,n)},L.noConflict=function(){return s._=l,this},L.identity=function(t){return t},L.constant=function(t){return function(){return t}},L.noop=function(){},L.property=k,L.propertyOf=function(t){return null==t?function(){}:function(n){return t[n]}},L.matcher=L.matches=function(t){return t=L.extendOwn({},t),function(n){return L.isMatch(n,t)}},L.times=function(t,n,e){var r=Array(Math.max(0,t));n=x(n,e,1);for(var i=0;i<t;i++)r[i]=n(i);return r},L.random=function(t,n){return null==n&&(n=t,t=0),t+Math.floor(Math.random()*(n-t+1))},L.now=Date.now||function(){return(new Date).getTime()};var Z={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},I=L.invert(Z),N=function(t){var n=function(n){return t[n]},e="(?:"+L.keys(t).join("|")+")",r=RegExp(e),i=RegExp(e,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,n):t}};L.escape=N(Z),L.unescape=N(I),L.result=function(t,n,e){var r=null==t?void 0:t[n];return void 0===r&&(r=e),L.isFunction(r)?r.call(t):r};var P=0;L.uniqueId=function(t){var n=++P+"";return t?t+n:n},L.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,T={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\u2028|\u2029/g,J=function(t){return"\\"+T[t]};L.template=function(t,n,e){!n&&e&&(n=e),n=L.defaults({},n,L.templateSettings);var r=RegExp([(n.escape||z).source,(n.interpolate||z).source,(n.evaluate||z).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(n,e,r,a,u){return o+=t.slice(i,u).replace(D,J),i=u+n.length,e?o+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),n}),o+="';\n",n.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(n.variable||"obj","_",o)}catch(t){throw t.source=o,t}var u=function(t){return a.call(this,t,L)},s=n.variable||"obj";return u.source="function("+s+"){\n"+o+"}",u},L.chain=function(t){var n=L(t);return n._chain=!0,n};var q=function(t,n){return t._chain?L(n).chain():n};L.mixin=function(t){L.each(L.functions(t),function(n){var e=L[n]=t[n];L.prototype[n]=function(){var t=[this._wrapped];return h.apply(t,arguments),q(this,e.apply(L,t))}})},L.mixin(L),L.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=f[t];L.prototype[t]=function(){var e=this._wrapped;return n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],q(this,e)}}),L.each(["concat","join","slice"],function(t){var n=f[t];L.prototype[t]=function(){return q(this,n.apply(this._wrapped,arguments))}}),L.prototype.value=function(){return this._wrapped},L.prototype.valueOf=L.prototype.toJSON=L.prototype.value,L.prototype.toString=function(){return""+this._wrapped},r=[],i=function(){return L}.apply(n,r),!(void 0!==i&&(t.exports=i))}).call(this)},function(n,e){n.exports=t},function(t,e){t.exports=n}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react-leaflet"),require("leaflet")):"function"==typeof define&&define.amd?define([,],e):"object"==typeof exports?exports["react-leaflet-magnifying-glass"]=e(require("react-leaflet"),require("leaflet")):t.ReactLeafletMagnifyingGlass=e(t.ReactLeaflet,t.L)}(window,function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=40)}([function(t,e,n){var r=n(23),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(75),o=n(78);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(6),o=n(51),i=n(52),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:u&&u in Object(t)?o(t):i(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(47),o=n(57),i=n(15);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){var r=n(0).Symbol;t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(65),o=n(66),i=n(67),a=n(68),s=n(69);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(16);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(2)(Object,"create");t.exports=r},function(t,e,n){var r=n(87);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(20),o=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?n:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){var r=n(27),o=n(14);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(2)(n(0),"Map");t.exports=r},function(t,e,n){var r=n(79),o=n(86),i=n(88),a=n(89),s=n(90);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(1),o=n(20),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(3),o=n(4),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&r(t)==i}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(49),o=n(4),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(50))},function(t,e,n){(function(t){var r=n(0),o=n(53),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;t.exports=u}).call(this,n(25)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(54),o=n(55),i=n(56),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(3),o=n(7),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=r(t);return e==a||e==s||e==i||e==u}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(8),o=n(70),i=n(71),a=n(72),s=n(73),u=n(74);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(91),o=n(4);t.exports=function t(e,n,i,a,s){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,s))}},function(t,e,n){var r=n(92),o=n(28),i=n(95),a=1,s=2;t.exports=function(t,e,n,u,c,f){var l=n&a,p=t.length,h=e.length;if(p!=h&&!(l&&h>p))return!1;var d=f.get(t);if(d&&f.get(e))return d==e;var v=-1,y=!0,g=n&s?new r:void 0;for(f.set(t,e),f.set(e,t);++v<p;){var b=t[v],_=e[v];if(u)var m=l?u(_,b,v,e,t,f):u(b,_,v,t,e,f);if(void 0!==m){if(m)continue;y=!1;break}if(g){if(!o(e,function(t,e){if(!i(g,e)&&(b===t||c(b,t,n,u,f)))return g.push(e)})){y=!1;break}}else if(b!==_&&!c(b,_,n,u,f)){y=!1;break}}return f.delete(t),f.delete(e),y}},function(t,e,n){var r=n(7);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var r=n(36),o=n(12);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e,n){var r=n(1),o=n(19),i=n(115),a=n(118);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){var r=n(36),o=n(22),i=n(1),a=n(13),s=n(14),u=n(12);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,l=!1;++c<f;){var p=u(e[c]);if(!(l=null!=t&&n(t,p)))break;t=t[p]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&s(f)&&a(p,f)&&(i(t)||o(t))}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),u=null,c=0,f=[],l=n(139);function p(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(b(r.parts[a],e))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(b(r.parts[a],e));i[r.id]={id:r.id,refs:1,parts:s}}}}function h(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function d(t,e){var n=s(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),f.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(t.insertAt.before,n);n.insertBefore(e,o)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=f.indexOf(t);e>=0&&f.splice(e,1)}function y(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return g(e,t.attrs),d(t,e),e}function g(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function b(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var a=c++;n=u||(u=y(e)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),d(t,e),e}(e),r=function(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=l(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),o=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){v(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return p(n,e),function(t){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}t&&p(h(t,e),e);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete i[s.id]}}}};var _,m=(_=[],function(t,e){return _[t]=e,_.filter(Boolean).join("\n")});function x(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(41),i=(r=o)&&r.__esModule?r:{default:r};e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(42),i=f(n(43)),a=f(n(44)),s=f(n(45)),u=f(n(61)),c=f(n(133));function f(t){return t&&t.__esModule?t:{default:t}}n(135),n(136),n(137),n(140);var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.MapControl),r(e,[{key:"createLeafletElement",value:function(t){var e=this,n=(t.leaflet||this.context).map,r=t.position,o=void 0===r?"topleft":r;t.forceSeparateButton;this.layers={},this.mounted=!1,n.on("layeradd",function(t){e._addLayer(t)}),n.on("layerremove",function(t){e._removeLayer(t)}),n.on("unload",function(t){e.mounted=!1});var a={position:o,forceSeparateButton:!0};return i.default.control.magnifyingglass(null,a)}},{key:"componentDidMount",value:function(){this.mounted=!0,this._updateMagnifyingGlass()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this._updateMagnifyingGlass()}},{key:"_addLayer",value:function(t){var e=t.layer;if(!e.options.isMagnifyingGlassLayer){var n,r;(0,c.default)(e,"_layers")||(n=e.options,r=(0,s.default)(n),(0,u.default)(r,function(t){return t instanceof i.default.Layer}))||!(0,c.default)(e,"_leaflet_id")||e.options.isMagnifyingGlassLayer||(this.layers[e._leaflet_id]=(0,a.default)(e)),this._updateMagnifyingGlass()}}},{key:"_removeLayer",value:function(t){var e=t.layer;e.options.isMagnifyingGlassLayer||(delete this.layers[e._leaflet_id],this._updateMagnifyingGlass())}},{key:"_updateMagnifyingGlass",value:function(){if(this.mounted){var t=(this.props.leaflet||this.context).map,e=this.props,n=e.position,r=void 0===n?"topleft":n,o=(e.forceSeparateButton,e.radius),a=void 0===o?100:o,u=e.zoomOffset,c=void 0===u?3:u,f=e.fixedZoom,l=void 0===f?-1:f,p=t.hasLayer(this.magnifyingGlass);p&&t.removeLayer(this.magnifyingGlass),t.removeControl(this.leafletElement);var h={position:r,forceSeparateButton:!0};this.magnifyingGlass=i.default.magnifyingGlass({radius:a,zoomOffset:c,fixedZoom:l,isMagnifyingGlassLayer:!0,layers:(0,s.default)(this.layers)}),this.leafletElement=i.default.control.magnifyingglass(this.magnifyingGlass,h),this.leafletElement.addTo(t),p&&this.magnifyingGlass.addTo(t)}}}]),e}();e.default=l},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){function r(t){var e=[];return t.eachLayer(function(t){e.push(o(t))}),e}function o(t){var e=function(t){var e={};for(var n in t){var r=t[n];r&&r.clone?e[n]=r.clone():r instanceof L.Layer?e[n]=o(r):e[n]=r}return e}(t.options);if(t instanceof L.SVG)return L.svg(e);if(t instanceof L.Canvas)return L.canvas(e);if(L.GridLayer.GoogleMutant&&t instanceof L.GridLayer.GoogleMutant){var n=L.gridLayer.googleMutant(e);return t._GAPIPromise.then(function(){var e=Object.keys(t._subLayers);for(var r in e)n.addGoogleLayer(e[r])}),n}if(t instanceof L.TileLayer.WMS)return L.tileLayer.wms(t._url,e);if(t instanceof L.TileLayer)return L.tileLayer(t._url,e);if(t instanceof L.ImageOverlay)return L.imageOverlay(t._url,t._bounds,e);if(t instanceof L.Marker)return L.marker(t.getLatLng(),e);if(t instanceof L.Circle)return L.circle(t.getLatLng(),t.getRadius(),e);if(t instanceof L.CircleMarker)return L.circleMarker(t.getLatLng(),e);if(t instanceof L.Rectangle)return L.rectangle(t.getBounds(),e);if(t instanceof L.Polygon)return L.polygon(t.getLatLngs(),e);if(t instanceof L.Polyline)return L.polyline(t.getLatLngs(),e);if(t instanceof L.GeoJSON)return L.geoJson(t.toGeoJSON(),e);if(t instanceof L.FeatureGroup)return L.featureGroup(r(t));if(t instanceof L.LayerGroup)return L.layerGroup(r(t));throw"Unknown layer, cannot clone this layer. Leaflet-version: "+L.version}t.exports=o},function(t,e,n){var r=n(46),o=n(5);t.exports=function(t){return null==t?[]:r(t,o(t))}},function(t,e,n){var r=n(21);t.exports=function(t,e){return r(e,function(e){return t[e]})}},function(t,e,n){var r=n(48),o=n(22),i=n(1),a=n(24),s=n(13),u=n(26),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),f=!n&&o(t),l=!n&&!f&&a(t),p=!n&&!f&&!l&&u(t),h=n||f||l||p,d=h?r(t.length,String):[],v=d.length;for(var y in t)!e&&!c.call(t,y)||h&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||d.push(y);return d}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(3),o=n(4),i="[object Arguments]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(6),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[s]=n:delete t[s]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(3),o=n(14),i=n(4),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(23),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(25)(t))},function(t,e,n){var r=n(58),o=n(59),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(60)(Object.keys,Object);t.exports=r},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(28),o=n(62),i=n(126),a=n(1),s=n(132);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),u(t,o(e,3))}},function(t,e,n){var r=n(63),o=n(113),i=n(122),a=n(1),s=n(123);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(64),o=n(112),i=n(34);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(29),o=n(31),i=1,a=2;t.exports=function(t,e,n,s){var u=n.length,c=u,f=!s;if(null==t)return!c;for(t=Object(t);u--;){var l=n[u];if(f&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++u<c;){var p=(l=n[u])[0],h=t[p],d=l[1];if(f&&l[2]){if(void 0===h&&!(p in t))return!1}else{var v=new r;if(s)var y=s(h,d,p,t,e,v);if(!(void 0===y?o(d,h,i|a,s,v):y))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(9),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(9);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(9);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(9);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(8);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(8),o=n(17),i=n(18),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(27),o=n(76),i=n(7),a=n(30),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,l=c.hasOwnProperty,p=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:s).test(a(t))}},function(t,e,n){var r,o=n(77),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(0)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(80),o=n(8),i=n(17);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(81),o=n(82),i=n(83),a=n(84),s=n(85);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(10);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(10),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(10),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(10),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?o:e,this}},function(t,e,n){var r=n(11);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(11);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(11);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(11);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(29),o=n(32),i=n(96),a=n(100),s=n(107),u=n(1),c=n(24),f=n(26),l=1,p="[object Arguments]",h="[object Array]",d="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,g,b){var _=u(t),m=u(e),x=_?h:s(t),j=m?h:s(e),L=(x=x==p?d:x)==d,A=(j=j==p?d:j)==d,w=x==j;if(w&&c(t)){if(!c(e))return!1;_=!0,L=!1}if(w&&!L)return b||(b=new r),_||f(t)?o(t,e,n,y,g,b):i(t,e,x,n,y,g,b);if(!(n&l)){var O=L&&v.call(t,"__wrapped__"),M=A&&v.call(e,"__wrapped__");if(O||M){var k=O?t.value():t,E=M?e.value():e;return b||(b=new r),g(k,E,n,y,b)}}return!!w&&(b||(b=new r),a(t,e,n,y,g,b))}},function(t,e,n){var r=n(18),o=n(93),i=n(94);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(6),o=n(97),i=n(16),a=n(32),s=n(98),u=n(99),c=1,f=2,l="[object Boolean]",p="[object Date]",h="[object Error]",d="[object Map]",v="[object Number]",y="[object RegExp]",g="[object Set]",b="[object String]",_="[object Symbol]",m="[object ArrayBuffer]",x="[object DataView]",j=r?r.prototype:void 0,L=j?j.valueOf:void 0;t.exports=function(t,e,n,r,j,A,w){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case m:return!(t.byteLength!=e.byteLength||!A(new o(t),new o(e)));case l:case p:case v:return i(+t,+e);case h:return t.name==e.name&&t.message==e.message;case y:case b:return t==e+"";case d:var O=s;case g:var M=r&c;if(O||(O=u),t.size!=e.size&&!M)return!1;var k=w.get(t);if(k)return k==e;r|=f,w.set(t,e);var E=a(O(t),O(e),r,j,A,w);return w.delete(t),E;case _:if(L)return L.call(t)==L.call(e)}return!1}},function(t,e,n){var r=n(0).Uint8Array;t.exports=r},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var r=n(101),o=1,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,a,s,u){var c=n&o,f=r(t),l=f.length;if(l!=r(e).length&&!c)return!1;for(var p=l;p--;){var h=f[p];if(!(c?h in e:i.call(e,h)))return!1}var d=u.get(t);if(d&&u.get(e))return d==e;var v=!0;u.set(t,e),u.set(e,t);for(var y=c;++p<l;){var g=t[h=f[p]],b=e[h];if(a)var _=c?a(b,g,h,e,t,u):a(g,b,h,t,e,u);if(!(void 0===_?g===b||s(g,b,n,a,u):_)){v=!1;break}y||(y="constructor"==h)}if(v&&!y){var m=t.constructor,x=e.constructor;m!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x)&&(v=!1)}return u.delete(t),u.delete(e),v}},function(t,e,n){var r=n(102),o=n(104),i=n(5);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(103),o=n(1);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(105),o=n(106),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),function(e){return i.call(t,e)}))}:o;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(108),o=n(17),i=n(109),a=n(110),s=n(111),u=n(3),c=n(30),f=c(r),l=c(o),p=c(i),h=c(a),d=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,n){var r=n(2)(n(0),"DataView");t.exports=r},function(t,e,n){var r=n(2)(n(0),"Promise");t.exports=r},function(t,e,n){var r=n(2)(n(0),"Set");t.exports=r},function(t,e,n){var r=n(2)(n(0),"WeakMap");t.exports=r},function(t,e,n){var r=n(33),o=n(5);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},function(t,e,n){var r=n(31),o=n(114),i=n(120),a=n(19),s=n(33),u=n(34),c=n(12),f=1,l=2;t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,f|l)}}},function(t,e,n){var r=n(35);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t,e,n){var r=n(116),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=a},function(t,e,n){var r=n(117),o=500;t.exports=function(t){var e=r(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var r=n(18),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(119);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(6),o=n(21),i=n(1),a=n(20),s=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-s?"-0":n}},function(t,e,n){var r=n(121),o=n(37);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(124),o=n(125),i=n(19),a=n(12);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(35);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(127);t.exports=function(t,e){var n;return r(t,function(t,r,o){return!(n=e(t,r,o))}),!!n}},function(t,e,n){var r=n(128),o=n(131)(r);t.exports=o},function(t,e,n){var r=n(129),o=n(5);t.exports=function(t,e){return t&&r(t,e,o)}},function(t,e,n){var r=n(130)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++o];if(!1===n(i[u],u,i))break}return e}}},function(t,e,n){var r=n(15);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,s=Object(n);(e?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(t,e,n){var r=n(16),o=n(15),i=n(13),a=n(7);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?o(n)&&i(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(134),o=n(37);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},function(t,e,n){"use strict";L.MagnifyingGlass=L.Layer.extend({options:{radius:100,zoomOffset:3,layers:[],fixedPosition:!1,latLng:[0,0],fixedZoom:-1},initialize:function(t){L.Util.setOptions(this,t),this._fixedZoom=-1!=this.options.fixedZoom,this._mainMap=null,this._glassMap=null},getMap:function(){return this._glassMap},_createMiniMap:function(t){return new L.Map(t,{layers:this.options.layers,zoom:this._getZoom(),maxZoom:this._mainMap.getMaxZoom(),minZoom:this._mainMap.getMinZoom(),crs:this._mainMap.options.crs,fadeAnimation:!1,attributionControl:!1,zoomControl:!1,boxZoom:!1,touchZoom:!1,scrollWheelZoom:!1,doubleClickZoom:!1,dragging:!1,keyboard:!1})},_getZoom:function(){return this._fixedZoom?this.options.fixedZoom:this._mainMap.getZoom()+this.options.zoomOffset},_updateZoom:function(){this._glassMap.setZoom(this._getZoom())},setRadius:function(t){this.options.radius=t,this._wrapperElt&&(this._wrapperElt.style.width=2*this.options.radius+"px",this._wrapperElt.style.height=2*this.options.radius+"px")},setLatLng:function(t){this.options.latLng=t,this._update(t)},_updateFromMouse:function(t){this._update(t.latlng,t.layerPoint)},_updateFixed:function(){this._update(this.options.latLng)},_update:function(t,e){this._glassMap.setView(t,this._getZoom(),{pan:{animate:!1}}),e=e||this._mainMap.latLngToLayerPoint(t),this._wrapperElt.style.left=e.x-this.options.radius+"px",this._wrapperElt.style.top=e.y-this.options.radius+"px"},onAdd:function(t){this._mainMap=t,this._wrapperElt=L.DomUtil.create("div","leaflet-magnifying-glass");var e=L.DomUtil.create("div","",this._wrapperElt);L.Browser.webkit&&L.DomUtil.addClass(e,"leaflet-magnifying-glass-webkit"),this._glassMap=this._createMiniMap(e),L.DomEvent.addListener(this._wrapperElt,"click",this._fireClick,this);var n=this.options;return this.setRadius(n.radius),this.setLatLng(n.latLng),this._glassMap.whenReady(function(){n.fixedPosition?(this._mainMap.on("zoomend",this._updateFixed,this),L.DomUtil.addClass(this._wrapperElt,"leaflet-zoom-hide")):(this._mainMap.on("mousemove",this._updateFromMouse,this),this._fixedZoom||this._mainMap.on("zoomend",this._updateZoom,this))},this),t.getPanes().popupPane.appendChild(this._wrapperElt),this._glassMap.invalidateSize(),this},_fireClick:function(t){this.fire("click",t),L.DomEvent.stopPropagation(t)},onRemove:function(t){t.off("viewreset",this._updateFixed,this),t.off("mousemove",this._updateFromMouse,this),t.off("zoomend",this._updateZoom,this);for(var e=0,n=this.options.layers.length;e<n;e++)this._glassMap.removeLayer(this.options.layers[e]);return this._glassMap.remove(),L.DomEvent.removeListener(this._wrapperElt,"click",this._fireClick),t.getPanes().popupPane.removeChild(this._wrapperElt),this._mainMap=null,this}}),L.magnifyingGlass=function(t){return new L.MagnifyingGlass(t)}},function(t,e,n){"use strict";L.Control.MagnifyingGlass=L.Control.extend({_magnifyingGlass:!1,options:{position:"topleft",title:"Toggle Magnifying Glass",forceSeparateButton:!1},initialize:function(t,e){for(var n in this._magnifyingGlass=t,e)e.hasOwnProperty(n)&&this.options.hasOwnProperty(n)&&(this.options[n]=e[n])},onAdd:function(t){var e;return e=t.zoomControl&&!this.options.forceSeparateButton?t.zoomControl._container:L.DomUtil.create("div","leaflet-bar"),this._createButton(this.options.title,"leaflet-control-magnifying-glass",e,this._clicked,t,this._magnifyingGlass),e},_createButton:function(t,e,n,r,o,i){var a=L.DomUtil.create("a",e,n);return a.href="#",a.title=t,L.DomEvent.addListener(a,"click",L.DomEvent.stopPropagation).addListener(a,"click",L.DomEvent.preventDefault).addListener(a,"click",function(){r(o,i)},o),a},_clicked:function(t,e){e&&(t.hasLayer(e)?t.removeLayer(e):e.addTo(t))}}),L.control.magnifyingglass=function(t,e){return new L.Control.MagnifyingGlass(t,e)}},function(t,e,n){var r=n(138);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(39)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(38)(!1)).push([t.i,".leaflet-magnifying-glass {\r\n border-radius: 50%;\r\n border: 1px solid gray;\r\n box-shadow: 0 0 5px gray;\r\n position: absolute;\r\n overflow: hidden;\r\n -moz-box-sizing: border-box;\r\n box-sizing: border-box;\r\n}\r\n\r\n.leaflet-magnifying-glass > .leaflet-container {\r\n height: \t100%;\r\n width: \t100%;\r\n}\r\n\r\n/* Webkit-only workaround for the border-radius clipping bug,\r\napplied to the map container */\r\n.leaflet-magnifying-glass-webkit {\r\n border-radius: 50%;\r\n -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);\r\n}",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,n){var r=n(141);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(39)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(38)(!1)).push([t.i,"/* http://commons.wikimedia.org/wiki/File:Magnifying_glass_icon.svg */\r\n.leaflet-control-magnifying-glass {\r\n\tbackground-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAzUlEQVQoFQXBsUpCUQAA0INbvMlVcFC3UFJCEFpczOWB5hKCa+APJPgRLbk6h1+gUIuj0NgX2NKiGVE+64W3c4CCqVfBm5kKAABNHxY6zrU9SPQBgLydWwD07NUBYGIOALjzBABrXQBARSoCIFUFAESCAkDGuxwAIOdoC5Dx6BoA0PfsE4CyxBUAGr50AICBg3tlWSUj337FAAAXllLBn5WeocSNGgDAiaIIMBZs1QAAALj0I9g4AwAAoGUv2KkDAAAQOwheAAAAILZ2+g9v1zZYRtFGvAAAAABJRU5ErkJggg==);\r\n}\r\n",""])}]).default}); |
138
package.json
{ | ||
"name": "react-leaflet-magnifying-glass", | ||
"version": "0.1.4", | ||
"description": "React wrapper of Leaflet.MagnifyingGlass. Add a 'magnifying glass' effect to a Leaflet map, able to display a portion of the map in a different zoom (and actually display different content).", | ||
"main": "dist/react-leaflet-magnifying-glass.min.js", | ||
"scripts": { | ||
"build": "npm run build:lib && npm run build:dist", | ||
"build:dist": "webpack src/index.js dist/react-leaflet-magnifying-glass.js & webpack -p src/index.js dist/react-leaflet-magnifying-glass.min.js", | ||
"build:lib": "npm run compile:lib", | ||
"clean:lib": "rm -Rf ./lib", | ||
"compile:lib": "babel src --out-dir lib", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mhasbie/react-leaflet-magnifying-glass.git" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"leaflet", | ||
"react-leaflet", | ||
"leaflet-magnifying-glass", | ||
"magnifying glass", | ||
"react-leaflet-magnifying-glass" | ||
], | ||
"author": "M. Hasbie", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"leaflet": "^1.0.3", | ||
"react": "^15.0.0 || ^16.0.0", | ||
"react-leaflet": "^1.3.1", | ||
"underscore": "^1.8.3" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.8.0", | ||
"babel-core": "^6.8.0", | ||
"babel-eslint": "^7.0.0", | ||
"babel-loader": "^6.2.4", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-react": "^6.0.15", | ||
"babel-preset-stage-0": "^6.1.18", | ||
"babel-register": "^6.26.0", | ||
"eslint": "^3.8.1", | ||
"eslint-plugin-react": "^6.4.1", | ||
"leaflet": "^1.0.2", | ||
"lodash.isequal": "^4.4.0", | ||
"prop-types": "^15.5.10", | ||
"react": "^15.5.0", | ||
"react-dom": "^15.5.0", | ||
"react-leaflet": "^1.0.1", | ||
"underscore": "^1.8.3", | ||
"webpack": "^1.13.0", | ||
"webpack-dev-server": "^1.12.1", | ||
"webpack-css-loaders": "^1.0.0" | ||
}, | ||
"dependencies": { | ||
"leaflet-clonelayer": "^1.0.4" | ||
} | ||
"name": "react-leaflet-magnifying-glass", | ||
"version": "2.0.0", | ||
"description": "React wrapper of Leaflet.MagnifyingGlass. Add a 'magnifying glass' effect to a Leaflet map, able to display a portion of the map in a different zoom (and actually display different content).", | ||
"main": "dist/react-leaflet-magnifying-glass.min.js", | ||
"scripts": { | ||
"build": "npm run build:lib && npm run build:dist && npm run build:dev", | ||
"build:dist": "webpack src/index.js --output dist/react-leaflet-magnifying-glass.min.js", | ||
"build:dev": "webpack src/index.js --mode development --output dist/react-leaflet-magnifying-glass.js", | ||
"build:lib": "npm run compile:lib", | ||
"clean:lib": "rm -Rf ./lib", | ||
"compile:lib": "babel src --out-dir lib", | ||
"prepublishOnly": "npm run build", | ||
"test": "jest" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mhasbie/react-leaflet-magnifying-glass.git" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"leaflet", | ||
"react-leaflet", | ||
"leaflet-magnifying-glass", | ||
"magnifying glass", | ||
"react-leaflet-magnifying-glass" | ||
], | ||
"author": "M. Hasbie", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"leaflet": "1.4.0", | ||
"react-leaflet": "^1.9.1 || 2.2.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/polyfill": "^7.2.5", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-eslint": "^10.0.1", | ||
"babel-jest": "^23.6.0", | ||
"babel-loader": "^7.1.5", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"babel-register": "^6.26.0", | ||
"css-loader": "^2.0.2", | ||
"cssnano": "^4.1.0", | ||
"enzyme": "^3.8.0", | ||
"enzyme-adapter-react-16": "^1.7.1", | ||
"eslint": "^5.11.0", | ||
"eslint-plugin-react": "^7.11.1", | ||
"jest": "^23.6.0", | ||
"jest-enzyme": "^7.0.1", | ||
"leaflet": "1.4.0", | ||
"lodash": "^4.17.11", | ||
"postcss-import": "^12.0.0", | ||
"postcss-loader": "^3.0.0", | ||
"postcss-preset-env": "^5.3.0", | ||
"prop-types": "^15.5.10", | ||
"react": "^16.7.0", | ||
"react-dom": "^16.7.0", | ||
"react-leaflet": "2.2.0", | ||
"style-loader": "^0.23.1", | ||
"sugarss": "^2.0.0", | ||
"terser": "^3.14.1", | ||
"webpack": "4.28.2", | ||
"webpack-cli": "3.1.2", | ||
"webpack-dev-server": "3.1.14" | ||
}, | ||
"dependencies": { | ||
"leaflet-clonelayer": "^1.0.7" | ||
}, | ||
"jest": { | ||
"collectCoverage": true, | ||
"transform": { | ||
".*": "<rootDir>/node_modules/babel-jest" | ||
}, | ||
"testMatch": [ | ||
"**/__tests__/**/?(*.)+(spec|test).[jt]s?(x)" | ||
] | ||
} | ||
} |
# react-leaflet-magnifying-glass | ||
[](http://npm.im/react-leaflet-magnifying-glass) | ||
[](https://github.com/mhasbie/react-leaflet-magnifying-glass) | ||
[](https://travis-ci.org/mhasbie/react-leaflet-magnifying-glass) | ||
[](https://david-dm.org/mhasbie/react-leaflet-magnifying-glass) | ||
[](https://david-dm.org/mhasbie/react-leaflet-magnifying-glass?type=peer) | ||
[](https://github.com/mhasbie/react-leaflet-magnifying-glass/issues) | ||
[](http://npm-stat.com/charts.html?package=react-leaflet-magnifying-glass&from=2018-01-01) | ||
[](http://opensource.org/licenses/MIT) | ||
React wrapper of [Leaflet.MagnifyingGlass](https://github.com/bbecquet/Leaflet.MagnifyingGlass) | ||
@@ -8,9 +18,16 @@ for [react-leaflet](https://github.com/PaulLeCam/react-leaflet). | ||
*Tested with Leaflet 1.3.1 and React-Leaflet 1.8.0* | ||
 | ||
[Demo JSFiddle](https://jsfiddle.net/m_hasbie/jkssn435/) | ||
*Tested with Leaflet 1.4.0 and React-Leaflet 1.9.1, React-Leaflet 2.2.0* | ||
## Demos | ||
| Version | Demo | | ||
| --- | --- | | ||
| react-leaflet@1.9.1 | [`CodePen`](https://codepen.io/m_hasbie/full/bzoGym/) | | ||
| react-leaflet@2.x | [`CodePen`](https://codepen.io/m_hasbie/full/zeExOr/) | | ||
## Installation | ||
@@ -24,3 +41,3 @@ | ||
## Usage example | ||
## Usage example for react-leaflet `v1` | ||
@@ -47,4 +64,31 @@ ```javascript | ||
### Options | ||
## Usage example for react-leaflet `v2` | ||
```javascript | ||
import { Map, TileLayer, withLeaflet } from 'react-leaflet'; | ||
import MagnifyingGlassControlDefault from 'react-leaflet-magnifying-glass'; | ||
// wrap `MagnifyingGlassControl` component with `withLeaflet` HOC | ||
const MagnifyingGlassControl = withLeaflet(MagnifyingGlassControlDefault); | ||
const options = { | ||
position: 'topleft', | ||
radius: 100, | ||
zoomOffset: 3 | ||
}; | ||
<Map center={[2.935403, 101.448205]} zoom={10}> | ||
<TileLayer | ||
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" | ||
attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' | ||
/> | ||
<MagnifyingGlassControl {...options} /> | ||
</Map> | ||
``` | ||
## Options | ||
Option | Type | Default | Description | ||
@@ -51,0 +95,0 @@ --------------- | --------- | ------- | ------------- |
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
250862
58.72%3
-40%2
-50%110
66.67%35
75%6
-68.42%1714
-45.05%43
4200%144
7100%+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated