"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@vis.gl/react-mapbox"),r=require("../../../../constants.js");exports.ClusteredWellsSource=function(l){var o=l.wellsGeoJSON,s=l.clusterColorExpression,i=l.isSatellite;return e.jsxs(t.Source,{id:r.MapConfig.SourceIds.WellsClustered,type:"geojson",data:o,cluster:!0,clusterMaxZoom:r.ClusterConfig.clusterMaxZoom,clusterRadius:r.ClusterConfig.clusterRadius,clusterProperties:r.ClusterStatusProperties,children:[e.jsx(t.Layer,{id:r.MapConfig.LayerIds.ClusterHighlights,type:"circle",filter:["all",["has","point_count"],[">",["get","count_selected"],0]],paint:{"circle-radius":["*",r.ClusterConfig.CircleRadius,1.32],"circle-color":s,"circle-opacity":i?.4:.2}}),e.jsx(t.Layer,{id:r.MapConfig.LayerIds.WellsClusters,type:"circle",filter:["has","point_count"],paint:{"circle-color":s,"circle-radius":r.ClusterConfig.CircleRadius}}),e.jsx(t.Layer,{id:r.MapConfig.LayerIds.WellsClusterCount,type:"symbol",filter:["has","point_count"],layout:{"text-field":["case",[">=",["get","point_count"],1e3],["concat",["to-string",["/",["round",["/",["get","point_count"],100]],10]],"k"],["to-string",["get","point_count"]]],"text-font":r.ClusterConfig.Label.font,"text-size":r.ClusterConfig.Label.size,"text-letter-spacing":r.ClusterConfig.Label.letterSpacing,"text-offset":r.ClusterConfig.Label.offset,"text-allow-overlap":!0},paint:{"text-color":r.ClusterConfig.Label.color}}),e.jsx(t.Layer,{id:r.MapConfig.LayerIds.WellsUnclustered,type:"circle",filter:["!",["has","point_count"]],paint:{"circle-radius":r.MapConfig.Markers.WellSize,"circle-color":["get","color"],"circle-stroke-color":["coalesce",["get","strokeColor"],"transparent"],"circle-stroke-width":["get","strokeWidth"]}})]})};
//# sourceMappingURL=ClusteredWellsSource.js.map
