(this["webpackJsonpstreamlit-l7"]=this["webpackJsonpstreamlit-l7"]||[]).push([[0],{361:function(t,e,c){"use strict";c.r(e);c(1);var a=c(25),n=c.n(a),r=c(112),o=c(22),s=c(21);function p(t){return t.map(((t,e)=>{switch(t.type){case"point":return Object(s.jsx)(o.t,{...t},"".concat(t.type,"_").concat(e));case"line":return Object(s.jsx)(o.p,{...t},"".concat(t.type,"_").concat(e));case"polygon":return Object(s.jsx)(o.u,{...t},"".concat(t.type,"_").concat(e));case"raster":return Object(s.jsx)(o.v,{...t},"".concat(t.type,"_").concat(e));case"heatmap":return Object(s.jsx)(o.g,{...t},"".concat(t.type,"_").concat(e));case"text":return Object(s.jsx)(o.x,{...t},"".concat(t.type,"_").concat(e));case"bubble":return Object(s.jsx)(o.a,{...t},"".concat(t.type,"_").concat(e));case"choropleth":return Object(s.jsx)(o.b,{...t},"".concat(t.type,"_").concat(e));case"iconfont":return Object(s.jsx)(o.h,{...t},"".concat(t.type,"_").concat(e));case"iconimage":return Object(s.jsx)(o.i,{...t},"".concat(t.type,"_").concat(e));case"flow":return Object(s.jsx)(o.d,{...t},"".concat(t.type,"_").concat(e));default:return null}}))}function j(t){return t.map(((t,e)=>{switch(t.type){case"logo":return Object(s.jsx)(o.q,{...t},"".concat(t.type,"_").concat(e));case"zoom":return Object(s.jsx)(o.y,{...t},"".concat(t.type,"_").concat(e));case"scale":return Object(s.jsx)(o.w,{...t},"".concat(t.type,"_").concat(e));case"fullscreen":return Object(s.jsx)(o.e,{...t},"".concat(t.type,"_").concat(e));case"geolocate":return Object(s.jsx)(o.f,{...t},"".concat(t.type,"_").concat(e));case"exportimage":return Object(s.jsx)(o.c,{...t},"".concat(t.type,"_").concat(e));case"mouselocation":return Object(s.jsx)(o.s,{...t},"".concat(t.type,"_").concat(e));case"layerswitch":return Object(s.jsx)(o.k,{...t},"".concat(t.type,"_").concat(e));case"maptheme":return Object(s.jsx)(o.r,{...t},"".concat(t.type,"_").concat(e));default:return null}}))}function u(t){return t.map(((t,e)=>{switch(t.type){case"categories":return Object(s.jsx)(o.l,{...t},"".concat(t.type,"_").concat(e));case"icon":return Object(s.jsx)(o.m,{...t},"".concat(t.type,"_").concat(e));case"proportion":return Object(s.jsx)(o.n,{...t},"".concat(t.type,"_").concat(e));case"ramp":return Object(s.jsx)(o.o,{...t},"".concat(t.type,"_").concat(e));default:return null}}))}const l={mapType:"Map",layers:[{type:"raster",source:{data:"https://tiles{1-3}.geovisearth.com/base/v1/img/{z}/{x}/{y}?format=webp&tmsIds=w&token=b2a0cfc132cd60b61391b9dd63c15711eadb9b38a9943e3f98160d5710aef788",parser:{type:"rasterTile",tileSize:256,zoomOffset:0}}}],controls:[],legends:[]},y=Object(r.b)((t=>{const{style:e,options:c,data:a,dataMeta:n}=t.args,y={...l,...c};if(a&&n){let t=a.dataTable.data.childData.map((t=>t.values));1===t.length&&(t=t[0]),y.layers=((t,e,c)=>t.map((t=>{const{type:a,source:n}=t,r=n.parser;return"raster"===a&&("rgb"!==r.type&&"raster"!==r.type||(r.width=c.width,r.height=c.height,r.extent=c.extent)),{...t,source:{...n,data:e,parser:r}}})))(y.layers||[],t,n)}console.log(y.layers);const{layers:b=[],controls:i=[],legends:d=[],onSceneLoaded:x,...h}=y;return Object(s.jsxs)(o.j,{style:{height:400,...e},...h,onSceneLoaded:t=>{r.a.setFrameHeight((e.height||400)+10),h.onLoaded&&h.onLoaded(t)},children:[p(b),u(d),j(i)]})}));n.a.render(Object(s.jsx)(y,{}),document.getElementById("root"))}},[[361,1,2]]]);
//# sourceMappingURL=main.10cbbc1e.chunk.js.map