@performant-software/geospatial 2.2.8-beta.3 → 2.2.8-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs132.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs190.js.map +1 -1
- package/dist/index.cjs191.js +1 -4
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs192.js +4 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs211.js.map +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs213.js.map +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs214.js.map +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs215.js.map +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs216.js.map +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs217.js.map +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs219.js.map +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs220.js.map +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs221.js.map +1 -1
- package/dist/index.cjs222.js +1 -1
- package/dist/index.cjs222.js.map +1 -1
- package/dist/index.cjs223.js +1 -1
- package/dist/index.cjs223.js.map +1 -1
- package/dist/index.cjs224.js +1 -1
- package/dist/index.cjs224.js.map +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs225.js.map +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs227.js.map +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs228.js.map +1 -1
- package/dist/index.cjs229.js +1 -1
- package/dist/index.cjs229.js.map +1 -1
- package/dist/index.cjs230.js +1 -1
- package/dist/index.cjs230.js.map +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs231.js.map +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs232.js.map +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs234.js +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs3.js.map +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es100.js +1 -1
- package/dist/index.es102.js +3 -3
- package/dist/index.es103.js +1 -1
- package/dist/index.es104.js +2 -2
- package/dist/index.es105.js +1 -1
- package/dist/index.es110.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es113.js +1 -1
- package/dist/index.es116.js +2 -2
- package/dist/index.es117.js +2 -2
- package/dist/index.es118.js +1 -1
- package/dist/index.es122.js +2 -2
- package/dist/index.es125.js +1 -1
- package/dist/index.es129.js +1 -1
- package/dist/index.es13.js +36 -27
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es132.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es142.js +1 -1
- package/dist/index.es143.js +2 -2
- package/dist/index.es144.js +1 -1
- package/dist/index.es145.js +1 -1
- package/dist/index.es146.js +1 -1
- package/dist/index.es148.js +2 -2
- package/dist/index.es149.js +2 -2
- package/dist/index.es150.js +1 -1
- package/dist/index.es151.js +1 -1
- package/dist/index.es152.js +1 -1
- package/dist/index.es153.js +1 -1
- package/dist/index.es154.js +2 -2
- package/dist/index.es155.js +2 -2
- package/dist/index.es156.js +1 -1
- package/dist/index.es159.js +2 -2
- package/dist/index.es160.js +2 -2
- package/dist/index.es162.js +2 -2
- package/dist/index.es163.js +1 -1
- package/dist/index.es164.js +2 -2
- package/dist/index.es165.js +1 -1
- package/dist/index.es166.js +2 -2
- package/dist/index.es167.js +1 -1
- package/dist/index.es168.js +1 -1
- package/dist/index.es169.js +1 -1
- package/dist/index.es175.js +1 -1
- package/dist/index.es176.js +2 -2
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +1 -1
- package/dist/index.es179.js +1 -1
- package/dist/index.es182.js +2 -2
- package/dist/index.es189.js +2 -8
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es190.js +7 -147
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +142 -12191
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +12199 -3
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +1 -1
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +3 -38
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +38 -3
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +3 -25
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +25 -2
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +0 -1
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +1 -0
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es20.js +2 -2
- package/dist/index.es200.js +2 -34
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +32 -13
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +11 -12
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +13 -8
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +9 -2
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +6 -44
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +4 -22
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +4 -8
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +3 -5
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +3 -4
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +2 -2
- package/dist/index.es210.js +9 -3
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +22 -3
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +21 -8
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +11 -19
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +14 -19
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +5 -13
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +8 -16
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +6 -5
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +20 -7
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +8 -5
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es220.js +9 -22
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +4 -10
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +11 -9
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +9 -4
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +21 -9
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +11 -8
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +18 -22
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +4 -12
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +16 -17
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +12 -4
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es230.js +3 -17
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +4 -11
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +45 -3
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +22 -4
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +1 -1
- package/dist/index.es238.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es241.js +1 -1
- package/dist/index.es247.js +2 -2
- package/dist/index.es253.js +1 -1
- package/dist/index.es258.js +2 -2
- package/dist/index.es26.js +2 -2
- package/dist/index.es28.js +2 -2
- package/dist/index.es29.js +2 -2
- package/dist/index.es3.js +6 -6
- package/dist/index.es3.js.map +1 -1
- package/dist/index.es30.js +2 -2
- package/dist/index.es32.js +1 -1
- package/dist/index.es33.js +2 -2
- package/dist/index.es34.js +2 -2
- package/dist/index.es36.js +1 -1
- package/dist/index.es37.js +1 -1
- package/dist/index.es38.js +1 -1
- package/dist/index.es42.js +2 -2
- package/dist/index.es43.js +3 -3
- package/dist/index.es44.js +1 -1
- package/dist/index.es46.js +1 -1
- package/dist/index.es47.js +1 -1
- package/dist/index.es49.js +1 -1
- package/dist/index.es55.js +1 -1
- package/dist/index.es57.js +6 -6
- package/dist/index.es63.js +107 -2
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +10 -107
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +2 -10
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es8.js +12 -11
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es89.js +1 -1
- package/dist/index.es90.js +1 -1
- package/dist/index.es91.js +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es93.js +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es99.js +1 -1
- package/package.json +1 -1
- package/src/components/GeoJsonLayer.js +3 -3
- package/src/components/MapDraw.js +6 -0
- package/src/utils/MapStyles.js +28 -19
- package/types/components/GeoJsonLayer.js.flow +3 -3
- package/types/components/MapDraw.js.flow +6 -0
- package/types/utils/MapStyles.js.flow +28 -19
package/dist/index.cjs57.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const x=require("./index.
|
|
1
|
+
"use strict";const x=require("./index.cjs190.js"),v=require("./index.cjs192.js"),p=require("./index.cjs191.js");require("./index.cjs193.js");require("./index.cjs194.js");require("./index.cjs195.js");require("./index.cjs196.js");require("./index.cjs197.js");require("./index.cjs198.js");require("./index.cjs199.js");require("./index.cjs200.js");require("./index.cjs201.js");require("./index.cjs202.js");const G=require("./index.cjs203.js");require("./index.cjs204.js");const a=require("./index.cjs53.js");function O(e,r,t){t=t||{};var o=t.units||"kilometers",n=t.steps||8;if(!e)throw new Error("geojson is required");if(typeof t!="object")throw new Error("options must be an object");if(typeof n!="number")throw new Error("steps must be an number");if(r===void 0)throw new Error("radius is required");if(n<=0)throw new Error("steps must be greater than 0");var i=[];switch(e.type){case"GeometryCollection":return p.geomEach(e,function(f){var u=d(f,r,o,n);u&&i.push(u)}),a.featureCollection(i);case"FeatureCollection":return p.featureEach(e,function(f){var u=d(f,r,o,n);u&&p.featureEach(u,function(s){s&&i.push(s)})}),a.featureCollection(i)}return d(e,r,o,n)}function d(e,r,t,o){var n=e.properties||{},i=e.type==="Feature"?e.geometry:e;if(i.type==="GeometryCollection"){var f=[];return p.geomEach(e,function(N){var l=d(N,r,t,o);l&&f.push(l)}),a.featureCollection(f)}var u=F(i),s={type:i.type,coordinates:q(i.coordinates,u)},y=new v.GeoJSONReader,w=y.read(s),b=a.radiansToLength(a.lengthToRadians(r,t),"meters"),c=v.BufferOp.bufferOp(w,b,o),E=new v.GeoJSONWriter;if(c=E.write(c),!m(c.coordinates)){var C={type:c.type,coordinates:h(c.coordinates,u)};return a.feature(C,n)}}function m(e){return Array.isArray(e[0])?m(e[0]):isNaN(e[0])}function q(e,r){return typeof e[0]!="object"?r(e):e.map(function(t){return q(t,r)})}function h(e,r){return typeof e[0]!="object"?r.invert(e):e.map(function(t){return h(t,r)})}function F(e){var r=x(e).geometry.coordinates,t=[-r[0],-r[1]];return G.default().rotate(t).scale(a.earthRadius)}module.exports=O;
|
|
2
2
|
//# sourceMappingURL=index.cjs57.js.map
|
package/dist/index.cjs63.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("./index.cjs64.js");var O=["attr","size","title"];function v(e,t){if(e==null)return{};var r=p(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e,t,r){return t=P(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){var t=d(e,"string");return typeof t=="symbol"?t:String(t)}function d(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b(e){return e&&e.map((t,r)=>l.createElement(t.tag,u({key:r},t.attr),b(t.child)))}function h(e){return t=>l.createElement(g,c({attr:u({},e.attr)},t),b(e.child))}function g(e){var t=r=>{var{attr:n,size:i,title:o}=e,y=v(e,O),f=i||r.size||"1em",a;return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),l.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,y,{className:a,style:u(u({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),e.children)};return s.IconContext!==void 0?l.createElement(s.IconContext.Consumer,null,r=>t(r)):t(s.DefaultContext)}exports.GenIcon=h;exports.IconBase=g;
|
|
2
2
|
//# sourceMappingURL=index.cjs63.js.map
|
package/dist/index.cjs63.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs63.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs63.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index.cjs64.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs64.js.map
|
package/dist/index.cjs64.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs64.js","sources":["../../../node_modules/react-icons/lib/
|
|
1
|
+
{"version":3,"file":"index.cjs64.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
|
package/dist/index.cjs65.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs65.js.map
|
package/dist/index.cjs65.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs65.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs65.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs77.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs189.js");function u(o,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in o)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=r.__exports.printMsg=function(){console.log("This is a message from the demo package")};const c=u({__proto__:null,default:r.__exports,printMsg:a},[r.__exports]);exports.default=r.__exports;exports.index=c;exports.printMsg=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs77.js.map
|
package/dist/index.cjs8.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const i=require("./index.cjs17.js"),s=require("./index.cjs14.js"),C=require("./index.cjs19.js"),t=require("react"),f=require("./index.cjs15.js"),R=require("./index.cjs51.js"),b=require("./index.cjs22.js");require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");require("./index.cjs26.js");require("./index.cjs27.js");require("./index.cjs28.js");require("./index.cjs29.js");require("./index.cjs30.js");require("./index.cjs31.js");require("./index.cjs32.js");require("./index.cjs33.js");require("./index.cjs34.js");require("./index.cjs35.js");require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");const
|
|
1
|
+
"use strict";const i=require("./index.cjs17.js"),s=require("./index.cjs14.js"),C=require("./index.cjs19.js"),t=require("react"),f=require("./index.cjs15.js"),R=require("./index.cjs51.js"),b=require("./index.cjs22.js");require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");require("./index.cjs26.js");require("./index.cjs27.js");require("./index.cjs28.js");require("./index.cjs29.js");require("./index.cjs30.js");require("./index.cjs31.js");require("./index.cjs32.js");require("./index.cjs33.js");require("./index.cjs34.js");require("./index.cjs35.js");require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");const h=require("./index.cjs2.js"),D=require("./index.cjs4.js"),E=require("./index.cjs12.js");require("./index.cjs52.js");const G=require("./index.cjs53.js");s.constants.classes.CONTROL_BASE="maplibregl-ctrl";s.constants.classes.CONTROL_PREFIX="maplibregl-ctrl-";s.constants.classes.CONTROL_GROUP="maplibregl-ctrl-group";const j=2,w=1e3,a={geometryCollection:"GeometryCollection",point:"Point",polygon:"Polygon"},q=e=>{const[l,d]=t.useState(!1),o=t.useRef(),c=t.useRef(),g=t.useCallback(r=>{if(!r)return!1;const{geometry:{type:u}}=r;return e.geocoding==="point"&&u===a.point||e.geocoding==="polygon"&&u===a.polygon},[e.geocoding]),n=t.useCallback(()=>e.onChange(o.current.getAll()),[e.onChange]),m=t.useCallback(({detail:r})=>{g(r)&&(o.current.add(r.geometry),n(),e.onGeocodingSelection(r))},[g,n,e.onGeocodingSelection]),y=t.useMemo(()=>`${e.mapStyle}?key=${e.apiKey}`,[e.apiKey,e.mapStyle]),x=t.useMemo(()=>({height:500,width:"100%",...e.style||{}}),[e.style]);return t.useEffect(()=>{if(l&&e.data){const r=E.getBoundingBox(e.data,e.buffer);r&&c.current.fitBounds(r,{duration:e.zoomDuration}),e.data.type===a.geometryCollection?b.each(e.data.geometries,u=>{o.current.add(G.feature(u))}):o.current.add(e.data)}},[l,e.data]),i.jsxRuntimeExports.jsxs(f.Map,{attributionControl:!1,cooperativeGestures:e.cooperativeGestures,mapLib:C.default,maxPitch:e.maxPitch,onLoad:()=>d(!0),preserveDrawingBuffer:e.preserveDrawingBuffer,ref:c,style:x,mapStyle:y,children:[i.jsxRuntimeExports.jsx(h,{ref:o,controls:{line_string:!0,point:!0,polygon:!0,trash:!0},displayControlsDefault:!1,onCreate:n,onUpdate:n,onDelete:n,position:"bottom-left"}),e.geocoding&&i.jsxRuntimeExports.jsx(D,{apiKey:e.apiKey,marker:!1,position:"top-left",onSelection:m,showFullGeometry:e.geocoding==="polygon",showResultMarkers:!1}),e.navigation&&i.jsxRuntimeExports.jsx(f.NavigationControl,{}),e.fullscreen&&i.jsxRuntimeExports.jsx(R.FullscreenControl,{}),e.children]})};q.defaultProps={buffer:j,cooperativeGestures:!0,preserveDrawingBuffer:!1,zoomDuration:w};module.exports=q;
|
|
2
2
|
//# sourceMappingURL=index.cjs8.js.map
|
package/dist/index.cjs8.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs8.js","sources":["../src/components/MapDraw.js"],"sourcesContent":["// @flow\n\nimport MapboxDraw from '@mapbox/mapbox-gl-draw';\nimport { feature, type FeatureCollection, type GeometryCollection } from '@turf/turf';\nimport maplibregl from 'maplibre-gl';\nimport React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n type Node\n} from 'react';\nimport Map, { type MapboxMap, NavigationControl } from 'react-map-gl';\nimport { FullscreenControl } from 'react-map-gl/maplibre';\nimport _ from 'underscore';\nimport DrawControl from './DrawControl';\nimport GeocodingControl from './GeocodingControl';\nimport MapUtils from '../utils/Map';\nimport './MapDraw.css';\n\n// Override the MapboxDraw components to use MapLibre styles\nMapboxDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl';\nMapboxDraw.constants.classes.CONTROL_PREFIX = 'maplibregl-ctrl-';\nMapboxDraw.constants.classes.CONTROL_GROUP = 'maplibregl-ctrl-group';\n\ntype Props = {\n /**\n * MapTiler API key.\n */\n apiKey?: string,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer?: number,\n\n /**\n * Additional child nodes to render.\n */\n children?: Node,\n\n /**\n * If `true`, the map will require CTRL + scroll to zoom.\n */\n cooperativeGestures?: boolean,\n\n /**\n * GeoJSON structured data to be displayed on the map.\n */\n data: GeometryCollection | FeatureCollection,\n\n /**\n * If `true`, a control will be rendered to put the map in full screen mode.\n */\n fullscreen?: boolean,\n\n /**\n * Controls the type of GeoJSON data returned from the MapTiler Geocoding API.\n */\n geocoding?: undefined | 'point' | 'polygon',\n\n /**\n * URL of the map style to render. This URL should contain any necessary API keys.\n */\n mapStyle: string,\n\n /**\n * If `true`, the navigation controls will display.\n */\n navigation?: boolean,\n\n /**\n * Callback fired when the map geometries are changed.\n *\n * @param features\n */\n onChange: (features: Array<any>) => void,\n\n /**\n * Callback fired when an item is selected from the geocoding dropdown.\n */\n onGeocodingSelection?: (data: any) => void,\n\n /**\n * If `true`, the map's canvas can be exported to a PNG using `map.getCanvas().toDataURL()`.\n */\n preserveDrawingBuffer?: boolean,\n\n /**\n * Map style object.\n */\n style?: any,\n\n /**\n * The time in milliseconds to zoom into the location.\n */\n zoomDuration?: number\n};\n\nconst DEFAULT_BUFFER = 2;\nconst DEFAULT_ZOOM_DELAY = 1000;\n\nconst GeometryTypes = {\n geometryCollection: 'GeometryCollection',\n point: 'Point',\n polygon: 'Polygon'\n};\n\n/**\n * This component renders a map with controls for drawing one or more geometries. Geometries can be a point (lat/long),\n * a line, or a polygon.\n */\nconst MapDraw = (props: Props) => {\n const [loaded, setLoaded] = useState(false);\n\n const drawRef = useRef<MapboxDraw>();\n const mapRef = useRef<MapboxMap>();\n\n /**\n * Returns true if the passed geometry type is valid. MapTiler fires the onSelection callback twice: Once after\n * selecting the record from the list (with a point geometry), and once after making a call to the server for the\n * full record (polygon geometry). We should on fire the onGeocodingSelection callback and add the geometry to the\n * map once.\n *\n * @type {function({geometry: {type: *}}): *}\n */\n const isValid = useCallback((detail) => {\n if (!detail) {\n return false;\n }\n\n const { geometry: { type } } = detail;\n\n return (props.geocoding === 'point' && type === GeometryTypes.point)\n || (props.geocoding === 'polygon' && type === GeometryTypes.polygon);\n }, [props.geocoding]);\n\n /**\n * Calls the onChange prop with all of the geometries in the current drawer.\n *\n * @type {(function(): void)|*}\n */\n const onChange = useCallback(() => props.onChange(drawRef.current.getAll()), [props.onChange]);\n\n /**\n * Adds the selected geometry to the map.\n *\n * @type {(function({detail: *}): void)|*}\n */\n const onSelection = useCallback(({ detail }) => {\n if (isValid(detail)) {\n // Add the geometry to the map\n drawRef.current.add(detail.geometry);\n\n // Trigger the onChange prop\n onChange();\n\n // Call the onGeocoding selection callback\n props.onGeocodingSelection(detail);\n }\n }, [isValid, onChange, props.onGeocodingSelection]);\n\n /**\n * Sets the map style URL.\n *\n * @type {string}\n */\n const mapStyleUrl = useMemo(() => `${props.mapStyle}?key=${props.apiKey}`, [props.apiKey, props.mapStyle]);\n\n /**\n * Sets the element map style.\n *\n * @type {{width: string, height: number}}\n */\n const style = useMemo(() => ({ height: 500, width: '100%', ...(props.style || {}) }), [props.style]);\n\n /**\n * Updates the map bounding box and drawer when the geometry is changed.\n */\n useEffect(() => {\n if (loaded && props.data) {\n // Sets the bounding box for the current geometry\n const bbox = MapUtils.getBoundingBox(props.data, props.buffer);\n\n if (bbox) {\n mapRef.current.fitBounds(bbox, { duration: props.zoomDuration });\n }\n\n // Handle special cases for geometry collection (not supported by mabox-gl-draw) and point\n if (props.data.type === GeometryTypes.geometryCollection) {\n _.each(props.data.geometries, (geometry) => {\n drawRef.current.add(feature(geometry));\n });\n } else {\n drawRef.current.add(props.data);\n }\n }\n }, [loaded, props.data]);\n\n return (\n <Map\n attributionControl={false}\n cooperativeGestures={props.cooperativeGestures}\n mapLib={maplibregl}\n onLoad={() => setLoaded(true)}\n preserveDrawingBuffer={props.preserveDrawingBuffer}\n ref={mapRef}\n style={style}\n mapStyle={mapStyleUrl}\n >\n <DrawControl\n ref={drawRef}\n controls={{\n line_string: true,\n point: true,\n polygon: true,\n trash: true\n }}\n displayControlsDefault={false}\n onCreate={onChange}\n onUpdate={onChange}\n onDelete={onChange}\n position='bottom-left'\n />\n { props.geocoding && (\n <GeocodingControl\n apiKey={props.apiKey}\n marker={false}\n position='top-left'\n onSelection={onSelection}\n showFullGeometry={props.geocoding === 'polygon'}\n showResultMarkers={false}\n />\n )}\n { props.navigation && (\n <NavigationControl />\n )}\n { props.fullscreen && (\n <FullscreenControl />\n )}\n { props.children }\n </Map>\n );\n};\n\nMapDraw.defaultProps = {\n buffer: DEFAULT_BUFFER,\n cooperativeGestures: true,\n preserveDrawingBuffer: false,\n zoomDuration: DEFAULT_ZOOM_DELAY\n};\n\nexport default MapDraw;\n"],"names":["MapboxDraw","DEFAULT_BUFFER","DEFAULT_ZOOM_DELAY","GeometryTypes","MapDraw","props","loaded","setLoaded","useState","drawRef","useRef","mapRef","isValid","useCallback","detail","type","onChange","onSelection","mapStyleUrl","useMemo","style","useEffect","bbox","MapUtils","_","geometry","feature","jsxs","Map","maplibregl","jsx","DrawControl","GeocodingControl","NavigationControl","FullscreenControl"],"mappings":"4mCAsBAA,EAAW,UAAU,QAAQ,aAAe,kBAC5CA,EAAW,UAAU,QAAQ,eAAiB,mBAC9CA,EAAW,UAAU,QAAQ,cAAgB,
|
|
1
|
+
{"version":3,"file":"index.cjs8.js","sources":["../src/components/MapDraw.js"],"sourcesContent":["// @flow\n\nimport MapboxDraw from '@mapbox/mapbox-gl-draw';\nimport { feature, type FeatureCollection, type GeometryCollection } from '@turf/turf';\nimport maplibregl from 'maplibre-gl';\nimport React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n type Node\n} from 'react';\nimport Map, { type MapboxMap, NavigationControl } from 'react-map-gl';\nimport { FullscreenControl } from 'react-map-gl/maplibre';\nimport _ from 'underscore';\nimport DrawControl from './DrawControl';\nimport GeocodingControl from './GeocodingControl';\nimport MapUtils from '../utils/Map';\nimport './MapDraw.css';\n\n// Override the MapboxDraw components to use MapLibre styles\nMapboxDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl';\nMapboxDraw.constants.classes.CONTROL_PREFIX = 'maplibregl-ctrl-';\nMapboxDraw.constants.classes.CONTROL_GROUP = 'maplibregl-ctrl-group';\n\ntype Props = {\n /**\n * MapTiler API key.\n */\n apiKey?: string,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer?: number,\n\n /**\n * Additional child nodes to render.\n */\n children?: Node,\n\n /**\n * If `true`, the map will require CTRL + scroll to zoom.\n */\n cooperativeGestures?: boolean,\n\n /**\n * GeoJSON structured data to be displayed on the map.\n */\n data: GeometryCollection | FeatureCollection,\n\n /**\n * If `true`, a control will be rendered to put the map in full screen mode.\n */\n fullscreen?: boolean,\n\n /**\n * Controls the type of GeoJSON data returned from the MapTiler Geocoding API.\n */\n geocoding?: undefined | 'point' | 'polygon',\n\n /**\n * URL of the map style to render. This URL should contain any necessary API keys.\n */\n mapStyle: string,\n\n /**\n * The maximum pitch of the map (0-85).\n */\n maxPitch?: number,\n\n /**\n * If `true`, the navigation controls will display.\n */\n navigation?: boolean,\n\n /**\n * Callback fired when the map geometries are changed.\n *\n * @param features\n */\n onChange: (features: Array<any>) => void,\n\n /**\n * Callback fired when an item is selected from the geocoding dropdown.\n */\n onGeocodingSelection?: (data: any) => void,\n\n /**\n * If `true`, the map's canvas can be exported to a PNG using `map.getCanvas().toDataURL()`.\n */\n preserveDrawingBuffer?: boolean,\n\n /**\n * Map style object.\n */\n style?: any,\n\n /**\n * The time in milliseconds to zoom into the location.\n */\n zoomDuration?: number\n};\n\nconst DEFAULT_BUFFER = 2;\nconst DEFAULT_ZOOM_DELAY = 1000;\n\nconst GeometryTypes = {\n geometryCollection: 'GeometryCollection',\n point: 'Point',\n polygon: 'Polygon'\n};\n\n/**\n * This component renders a map with controls for drawing one or more geometries. Geometries can be a point (lat/long),\n * a line, or a polygon.\n */\nconst MapDraw = (props: Props) => {\n const [loaded, setLoaded] = useState(false);\n\n const drawRef = useRef<MapboxDraw>();\n const mapRef = useRef<MapboxMap>();\n\n /**\n * Returns true if the passed geometry type is valid. MapTiler fires the onSelection callback twice: Once after\n * selecting the record from the list (with a point geometry), and once after making a call to the server for the\n * full record (polygon geometry). We should on fire the onGeocodingSelection callback and add the geometry to the\n * map once.\n *\n * @type {function({geometry: {type: *}}): *}\n */\n const isValid = useCallback((detail) => {\n if (!detail) {\n return false;\n }\n\n const { geometry: { type } } = detail;\n\n return (props.geocoding === 'point' && type === GeometryTypes.point)\n || (props.geocoding === 'polygon' && type === GeometryTypes.polygon);\n }, [props.geocoding]);\n\n /**\n * Calls the onChange prop with all of the geometries in the current drawer.\n *\n * @type {(function(): void)|*}\n */\n const onChange = useCallback(() => props.onChange(drawRef.current.getAll()), [props.onChange]);\n\n /**\n * Adds the selected geometry to the map.\n *\n * @type {(function({detail: *}): void)|*}\n */\n const onSelection = useCallback(({ detail }) => {\n if (isValid(detail)) {\n // Add the geometry to the map\n drawRef.current.add(detail.geometry);\n\n // Trigger the onChange prop\n onChange();\n\n // Call the onGeocoding selection callback\n props.onGeocodingSelection(detail);\n }\n }, [isValid, onChange, props.onGeocodingSelection]);\n\n /**\n * Sets the map style URL.\n *\n * @type {string}\n */\n const mapStyleUrl = useMemo(() => `${props.mapStyle}?key=${props.apiKey}`, [props.apiKey, props.mapStyle]);\n\n /**\n * Sets the element map style.\n *\n * @type {{width: string, height: number}}\n */\n const style = useMemo(() => ({ height: 500, width: '100%', ...(props.style || {}) }), [props.style]);\n\n /**\n * Updates the map bounding box and drawer when the geometry is changed.\n */\n useEffect(() => {\n if (loaded && props.data) {\n // Sets the bounding box for the current geometry\n const bbox = MapUtils.getBoundingBox(props.data, props.buffer);\n\n if (bbox) {\n mapRef.current.fitBounds(bbox, { duration: props.zoomDuration });\n }\n\n // Handle special cases for geometry collection (not supported by mabox-gl-draw) and point\n if (props.data.type === GeometryTypes.geometryCollection) {\n _.each(props.data.geometries, (geometry) => {\n drawRef.current.add(feature(geometry));\n });\n } else {\n drawRef.current.add(props.data);\n }\n }\n }, [loaded, props.data]);\n\n return (\n <Map\n attributionControl={false}\n cooperativeGestures={props.cooperativeGestures}\n mapLib={maplibregl}\n maxPitch={props.maxPitch}\n onLoad={() => setLoaded(true)}\n preserveDrawingBuffer={props.preserveDrawingBuffer}\n ref={mapRef}\n style={style}\n mapStyle={mapStyleUrl}\n >\n <DrawControl\n ref={drawRef}\n controls={{\n line_string: true,\n point: true,\n polygon: true,\n trash: true\n }}\n displayControlsDefault={false}\n onCreate={onChange}\n onUpdate={onChange}\n onDelete={onChange}\n position='bottom-left'\n />\n { props.geocoding && (\n <GeocodingControl\n apiKey={props.apiKey}\n marker={false}\n position='top-left'\n onSelection={onSelection}\n showFullGeometry={props.geocoding === 'polygon'}\n showResultMarkers={false}\n />\n )}\n { props.navigation && (\n <NavigationControl />\n )}\n { props.fullscreen && (\n <FullscreenControl />\n )}\n { props.children }\n </Map>\n );\n};\n\nMapDraw.defaultProps = {\n buffer: DEFAULT_BUFFER,\n cooperativeGestures: true,\n preserveDrawingBuffer: false,\n zoomDuration: DEFAULT_ZOOM_DELAY\n};\n\nexport default MapDraw;\n"],"names":["MapboxDraw","DEFAULT_BUFFER","DEFAULT_ZOOM_DELAY","GeometryTypes","MapDraw","props","loaded","setLoaded","useState","drawRef","useRef","mapRef","isValid","useCallback","detail","type","onChange","onSelection","mapStyleUrl","useMemo","style","useEffect","bbox","MapUtils","_","geometry","feature","jsxs","Map","maplibregl","jsx","DrawControl","GeocodingControl","NavigationControl","FullscreenControl"],"mappings":"4mCAsBAA,EAAW,UAAU,QAAQ,aAAe,kBAC5CA,EAAW,UAAU,QAAQ,eAAiB,mBAC9CA,EAAW,UAAU,QAAQ,cAAgB,wBAiF7C,MAAMC,EAAiB,EACjBC,EAAqB,IAErBC,EAAgB,CACpB,mBAAoB,qBACpB,MAAO,QACP,QAAS,SACX,EAMMC,EAAWC,GAAiB,CAChC,KAAM,CAACC,EAAQC,CAAS,EAAIC,WAAS,EAAK,EAEpCC,EAAUC,EAAAA,SACVC,EAASD,EAAAA,SAUTE,EAAUC,cAAaC,GAAW,CACtC,GAAI,CAACA,EACI,MAAA,GAGT,KAAM,CAAE,SAAU,CAAE,KAAAC,IAAWD,EAEvB,OAAAT,EAAM,YAAc,SAAWU,IAASZ,EAAc,OACxDE,EAAM,YAAc,WAAaU,IAASZ,EAAc,OAAA,EAC7D,CAACE,EAAM,SAAS,CAAC,EAOdW,EAAWH,EAAA,YAAY,IAAMR,EAAM,SAASI,EAAQ,QAAQ,OAAQ,CAAA,EAAG,CAACJ,EAAM,QAAQ,CAAC,EAOvFY,EAAcJ,EAAAA,YAAY,CAAC,CAAE,OAAAC,KAAa,CAC1CF,EAAQE,CAAM,IAERL,EAAA,QAAQ,IAAIK,EAAO,QAAQ,EAG1BE,IAGTX,EAAM,qBAAqBS,CAAM,IAElC,CAACF,EAASI,EAAUX,EAAM,oBAAoB,CAAC,EAO5Ca,EAAcC,EAAAA,QAAQ,IAAM,GAAGd,EAAM,QAAQ,QAAQA,EAAM,MAAM,GAAI,CAACA,EAAM,OAAQA,EAAM,QAAQ,CAAC,EAOnGe,EAAQD,EAAAA,QAAQ,KAAO,CAAE,OAAQ,IAAK,MAAO,OAAQ,GAAId,EAAM,OAAS,CAAA,IAAQ,CAACA,EAAM,KAAK,CAAC,EAKnGgB,OAAAA,EAAAA,UAAU,IAAM,CACV,GAAAf,GAAUD,EAAM,KAAM,CAExB,MAAMiB,EAAOC,EAAS,eAAelB,EAAM,KAAMA,EAAM,MAAM,EAEzDiB,GACFX,EAAO,QAAQ,UAAUW,EAAM,CAAE,SAAUjB,EAAM,aAAc,EAI7DA,EAAM,KAAK,OAASF,EAAc,mBACpCqB,EAAE,KAAKnB,EAAM,KAAK,WAAaoB,GAAa,CAC1ChB,EAAQ,QAAQ,IAAIiB,EAAAA,QAAQD,CAAQ,CAAC,CAAA,CACtC,EAEOhB,EAAA,QAAQ,IAAIJ,EAAM,IAAI,CAElC,CACC,EAAA,CAACC,EAAQD,EAAM,IAAI,CAAC,EAGrBsB,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,mBAAoB,GACpB,oBAAqBvB,EAAM,oBAC3B,OAAQwB,EAAA,QACR,SAAUxB,EAAM,SAChB,OAAQ,IAAME,EAAU,EAAI,EAC5B,sBAAuBF,EAAM,sBAC7B,IAAKM,EACL,MAAAS,EACA,SAAUF,EAEV,SAAA,CAAAY,EAAA,kBAAA,IAACC,EAAA,CACC,IAAKtB,EACL,SAAU,CACR,YAAa,GACb,MAAO,GACP,QAAS,GACT,MAAO,EACT,EACA,uBAAwB,GACxB,SAAUO,EACV,SAAUA,EACV,SAAUA,EACV,SAAS,aAAA,CACX,EACEX,EAAM,WACNyB,EAAA,kBAAA,IAACE,EAAA,CACC,OAAQ3B,EAAM,OACd,OAAQ,GACR,SAAS,WACT,YAAAY,EACA,iBAAkBZ,EAAM,YAAc,UACtC,kBAAmB,EAAA,CACrB,EAEAA,EAAM,YACNyB,wBAACG,EAAAA,kBAAkB,CAAA,CAAA,EAEnB5B,EAAM,YACNyB,wBAACI,EAAAA,kBAAkB,CAAA,CAAA,EAEnB7B,EAAM,QAAA,CAAA,CAAA,CAGd,EAEAD,EAAQ,aAAe,CACrB,OAAQH,EACR,oBAAqB,GACrB,sBAAuB,GACvB,aAAcC,CAChB"}
|
package/dist/index.cjs81.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("./index.cjs27.js"),s=require("./index.cjs148.js"),i=require("./index.cjs109.js"),c=require("./index.cjs23.js"),o=require("./index.
|
|
1
|
+
"use strict";const r=require("./index.cjs27.js"),s=require("./index.cjs148.js"),i=require("./index.cjs109.js"),c=require("./index.cjs23.js"),o=require("./index.cjs231.js");function p(e){return s(i(e),function(t){var u=r[t]=e[t];r.prototype[t]=function(){var n=[this._wrapped];return c.push.apply(n,arguments),o(this,u.apply(r,n))}}),r}module.exports=p;
|
|
2
2
|
//# sourceMappingURL=index.cjs81.js.map
|
package/dist/index.cjs88.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs205.js"),r=t("String");module.exports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs88.js.map
|
package/dist/index.cjs89.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs205.js"),r=e("Number");module.exports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs89.js.map
|
package/dist/index.cjs90.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs205.js"),e=t("Date");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs90.js.map
|
package/dist/index.cjs91.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs205.js"),s=e("RegExp");module.exports=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs91.js.map
|
package/dist/index.cjs92.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("./index.
|
|
1
|
+
"use strict";const r=require("./index.cjs205.js"),s=r("Error");module.exports=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs92.js.map
|
package/dist/index.cjs93.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("./index.
|
|
1
|
+
"use strict";const s=require("./index.cjs205.js"),t=s("Symbol");module.exports=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs93.js.map
|
package/dist/index.cjs94.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("./index.
|
|
1
|
+
"use strict";const r=require("./index.cjs205.js"),e=r("ArrayBuffer");module.exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs94.js.map
|
package/dist/index.cjs95.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("./index.
|
|
1
|
+
"use strict";const t=require("./index.cjs205.js"),r=require("./index.cjs24.js"),i=require("./index.cjs94.js"),s=require("./index.cjs25.js");var a=t("DataView");function n(e){return e!=null&&r(e.getInt8)&&i(e.buffer)}const u=s.hasStringTagBug?n:a;module.exports=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs95.js.map
|
package/dist/index.cjs96.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("./index.cjs23.js"),e=require("./index.
|
|
1
|
+
"use strict";const r=require("./index.cjs23.js"),e=require("./index.cjs205.js"),s=r.nativeIsArray||e("Array");module.exports=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs96.js.map
|
package/dist/index.cjs99.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs23.js"),r=require("./index.cjs95.js"),i=require("./index.cjs120.js"),s=require("./index.
|
|
1
|
+
"use strict";const e=require("./index.cjs23.js"),r=require("./index.cjs95.js"),i=require("./index.cjs120.js"),s=require("./index.cjs207.js");var n=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function a(t){return e.nativeIsView?e.nativeIsView(t)&&!r(t):s(t)&&n.test(e.toString.call(t))}const u=e.supportsArrayBuffer?a:i(!1);module.exports=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs99.js.map
|
package/dist/index.es100.js
CHANGED
package/dist/index.es102.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import m from "./index.es27.js";
|
|
2
2
|
import { toString as g, SymbolProto as h } from "./index.es23.js";
|
|
3
|
-
import j from "./index.
|
|
3
|
+
import j from "./index.es209.js";
|
|
4
4
|
import D from "./index.es99.js";
|
|
5
5
|
import y from "./index.es24.js";
|
|
6
6
|
import { hasStringTagBug as V } from "./index.es25.js";
|
|
7
7
|
import v from "./index.es95.js";
|
|
8
8
|
import w from "./index.es104.js";
|
|
9
|
-
import q from "./index.
|
|
10
|
-
import d from "./index.
|
|
9
|
+
import q from "./index.es206.js";
|
|
10
|
+
import d from "./index.es210.js";
|
|
11
11
|
var B = "[object DataView]";
|
|
12
12
|
function c(e, r, f, n) {
|
|
13
13
|
if (e === r)
|
package/dist/index.es103.js
CHANGED
package/dist/index.es104.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./index.es83.js";
|
|
2
2
|
import { nativeKeys as f, hasEnumBug as m } from "./index.es23.js";
|
|
3
|
-
import n from "./index.
|
|
4
|
-
import o from "./index.
|
|
3
|
+
import n from "./index.es206.js";
|
|
4
|
+
import o from "./index.es212.js";
|
|
5
5
|
function c(r) {
|
|
6
6
|
if (!e(r))
|
|
7
7
|
return [];
|
package/dist/index.es105.js
CHANGED
package/dist/index.es110.js
CHANGED
package/dist/index.es111.js
CHANGED
package/dist/index.es112.js
CHANGED
package/dist/index.es113.js
CHANGED
package/dist/index.es116.js
CHANGED
package/dist/index.es117.js
CHANGED
package/dist/index.es118.js
CHANGED
package/dist/index.es122.js
CHANGED
package/dist/index.es125.js
CHANGED
package/dist/index.es129.js
CHANGED
package/dist/index.es13.js
CHANGED
|
@@ -1,33 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
"circle
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, l = {
|
|
23
|
-
"line-color": "#ff623b",
|
|
24
|
-
"line-opacity": 0.6
|
|
1
|
+
const e = {
|
|
2
|
+
type: "circle",
|
|
3
|
+
paint: {
|
|
4
|
+
"circle-radius": [
|
|
5
|
+
"interpolate",
|
|
6
|
+
["linear"],
|
|
7
|
+
["number", ["get", "point_count"], 1],
|
|
8
|
+
0,
|
|
9
|
+
4,
|
|
10
|
+
10,
|
|
11
|
+
14
|
|
12
|
+
],
|
|
13
|
+
"circle-stroke-width": 1,
|
|
14
|
+
"circle-color": [
|
|
15
|
+
"case",
|
|
16
|
+
["boolean", ["feature-state", "hover"], !1],
|
|
17
|
+
"#3b62ff",
|
|
18
|
+
"#ff623b"
|
|
19
|
+
],
|
|
20
|
+
"circle-stroke-color": "#8d260c"
|
|
21
|
+
}
|
|
25
22
|
}, t = {
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
type: "fill",
|
|
24
|
+
paint: {
|
|
25
|
+
"fill-color": "#ff623b",
|
|
26
|
+
"fill-opacity": 0.2
|
|
27
|
+
}
|
|
28
|
+
}, l = {
|
|
29
|
+
type: "line",
|
|
30
|
+
paint: {
|
|
31
|
+
"line-color": "#ff623b",
|
|
32
|
+
"line-opacity": 0.6
|
|
33
|
+
}
|
|
34
|
+
}, o = {
|
|
35
|
+
point: e,
|
|
36
|
+
fill: t,
|
|
28
37
|
stroke: l
|
|
29
38
|
};
|
|
30
39
|
export {
|
|
31
|
-
|
|
40
|
+
o as default
|
|
32
41
|
};
|
|
33
42
|
//# sourceMappingURL=index.es13.js.map
|
package/dist/index.es13.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es13.js","sources":["../src/utils/MapStyles.js"],"sourcesContent":["// @flow\n\nconst point = {\n 'circle-radius': [\n
|
|
1
|
+
{"version":3,"file":"index.es13.js","sources":["../src/utils/MapStyles.js"],"sourcesContent":["// @flow\n\nconst point = {\n type: 'circle',\n paint: {\n 'circle-radius': [\n 'interpolate',\n ['linear'],\n ['number', ['get', 'point_count'], 1],\n 0, 4,\n 10, 14\n ],\n 'circle-stroke-width': 1,\n 'circle-color': [\n 'case',\n ['boolean', ['feature-state', 'hover'], false],\n '#3b62ff',\n '#ff623b'\n ],\n 'circle-stroke-color': '#8d260c'\n }\n};\n\nconst fill = {\n type: 'fill',\n paint: {\n 'fill-color': '#ff623b',\n 'fill-opacity': 0.2\n }\n};\n\nconst stroke = {\n type: 'line',\n paint: {\n 'line-color': '#ff623b',\n 'line-opacity': 0.6\n }\n};\n\nexport default {\n point,\n fill,\n stroke\n};\n"],"names":["point","fill","stroke","MapStyles"],"mappings":"AAEA,MAAMA,IAAQ;AAAA,EACZ,MAAM;AAAA,EACN,OAAO;AAAA,IACL,iBAAiB;AAAA,MACf;AAAA,MACA,CAAC,QAAQ;AAAA,MACT,CAAC,UAAU,CAAC,OAAO,aAAa,GAAG,CAAC;AAAA,MACpC;AAAA,MAAG;AAAA,MACH;AAAA,MAAI;AAAA,IACN;AAAA,IACA,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,MACd;AAAA,MACA,CAAC,WAAW,CAAC,iBAAiB,OAAO,GAAG,EAAK;AAAA,MAC7C;AAAA,MACA;AAAA,IACF;AAAA,IACA,uBAAuB;AAAA,EACzB;AACF,GAEMC,IAAO;AAAA,EACX,MAAM;AAAA,EACN,OAAO;AAAA,IACL,cAAc;AAAA,IACd,gBAAgB;AAAA,EAClB;AACF,GAEMC,IAAS;AAAA,EACb,MAAM;AAAA,EACN,OAAO;AAAA,IACL,cAAc;AAAA,IACd,gBAAgB;AAAA,EAClB;AACF,GAEeC,IAAA;AAAA,EACb,OAAAH;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AACF;"}
|
package/dist/index.es132.js
CHANGED
package/dist/index.es14.js
CHANGED
package/dist/index.es140.js
CHANGED
package/dist/index.es141.js
CHANGED
package/dist/index.es142.js
CHANGED
package/dist/index.es143.js
CHANGED
package/dist/index.es144.js
CHANGED
package/dist/index.es145.js
CHANGED
package/dist/index.es146.js
CHANGED
package/dist/index.es148.js
CHANGED
package/dist/index.es149.js
CHANGED
package/dist/index.es150.js
CHANGED
package/dist/index.es151.js
CHANGED
package/dist/index.es152.js
CHANGED
package/dist/index.es153.js
CHANGED
package/dist/index.es154.js
CHANGED
package/dist/index.es155.js
CHANGED