(this["webpackJsonpstreamlit-l7"]=this["webpackJsonpstreamlit-l7"]||[]).push([[0],{358:function(t,e,c){"use strict";c.r(e);c(1);var a=c(25),n=c.n(a),o=c(112),r=c(22),s=c(21);function p(t){return t.map(((t,e)=>{switch(t.type){case"point":return Object(s.jsx)(r.t,{...t},"".concat(t.type,"_").concat(e));case"line":return Object(s.jsx)(r.p,{...t},"".concat(t.type,"_").concat(e));case"polygon":return Object(s.jsx)(r.u,{...t},"".concat(t.type,"_").concat(e));case"raster":return Object(s.jsx)(r.v,{...t},"".concat(t.type,"_").concat(e));case"heatmap":return Object(s.jsx)(r.g,{...t},"".concat(t.type,"_").concat(e));case"text":return Object(s.jsx)(r.x,{...t},"".concat(t.type,"_").concat(e));case"bubble":return Object(s.jsx)(r.a,{...t},"".concat(t.type,"_").concat(e));case"choropleth":return Object(s.jsx)(r.b,{...t},"".concat(t.type,"_").concat(e));case"iconfont":return Object(s.jsx)(r.h,{...t},"".concat(t.type,"_").concat(e));case"iconimage":return Object(s.jsx)(r.i,{...t},"".concat(t.type,"_").concat(e));case"flow":return Object(s.jsx)(r.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)(r.q,{...t},"".concat(t.type,"_").concat(e));case"zoom":return Object(s.jsx)(r.y,{...t},"".concat(t.type,"_").concat(e));case"scale":return Object(s.jsx)(r.w,{...t},"".concat(t.type,"_").concat(e));case"fullscreen":return Object(s.jsx)(r.e,{...t},"".concat(t.type,"_").concat(e));case"geolocate":return Object(s.jsx)(r.f,{...t},"".concat(t.type,"_").concat(e));case"exportimage":return Object(s.jsx)(r.c,{...t},"".concat(t.type,"_").concat(e));case"mouselocation":return Object(s.jsx)(r.s,{...t},"".concat(t.type,"_").concat(e));case"layerswitch":return Object(s.jsx)(r.k,{...t},"".concat(t.type,"_").concat(e));case"maptheme":return Object(s.jsx)(r.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)(r.l,{...t},"".concat(t.type,"_").concat(e));case"icon":return Object(s.jsx)(r.m,{...t},"".concat(t.type,"_").concat(e));case"proportion":return Object(s.jsx)(r.n,{...t},"".concat(t.type,"_").concat(e));case"ramp":return Object(s.jsx)(r.o,{...t},"".concat(t.type,"_").concat(e));default:return null}}))}const b={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(o.b)((t=>{const{style:e,options:c}=t.args,a={...b,...c},{layers:n=[],controls:y=[],legends:l=[],...i}=a;return Object(s.jsxs)(r.j,{style:{height:400,...e},mapType:c.mapType||"Map",onSceneLoaded:t=>{o.a.setFrameHeight((e.height||400)+10),i.onLoaded&&i.onLoaded(t)},children:[p(n),u(l),j(y)]})}));n.a.render(Object(s.jsx)(y,{}),document.getElementById("root"))}},[[358,1,2]]]);
//# sourceMappingURL=main.b758a801.chunk.js.map