"use strict";(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[2213],{22213:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p,getLayer:()=>h});var o=a(83206),l=a(95579),n=a(94963),i=a(41857),u=a(25564),r=a(49443),d=a(47823),s=a(32548),c=a(2445);function g(e){return(0,c.FD)("div",{className:"deckgl-tooltip",children:[(0,c.Y)(s.A,{label:(0,l.t)("Centroid (Longitude and Latitude): "),value:`(${e.coordinate[0]}, ${e.coordinate[1]})`}),(0,c.Y)(s.A,{label:(0,l.t)("Height")+": ",value:`${e.object.elevationValue}`})]})}function h(e,t,a,l){const d=e,s=d.color_scheme,c=n.getScale(s).range().map((e=>(0,r.hexToRGB)(e)));let h=t.data.features;d.js_data_mutator&&(h=(0,u.A)(d.js_data_mutator)(h));const p=(0,i.g)(d.js_agg_function,(e=>null==e?void 0:e.weight));return new o.A({id:`hex-layer-${d.slice_id}`,data:h,radius:d.grid_size,extruded:d.extruded,colorRange:c,outline:!1,getElevationValue:p,getColorValue:p,...(0,i.T)(d,l,g)})}const p=(0,d.y)(h,(function(e){return e.map((e=>e.position))}))}}]);