import{jsxs as e,jsx as t}from"react/jsx-runtime";import{Source as r,Layer as l}from"@vis.gl/react-mapbox";import{MapConfig as o,ClusterConfig as i,ClusterStatusProperties as c}from"../../../../constants.js";var s=function(s){var a=s.wellsGeoJSON,n=s.clusterColorExpression,u=s.isSatellite;return e(r,{id:o.SourceIds.WellsClustered,type:"geojson",data:a,cluster:!0,clusterMaxZoom:i.clusterMaxZoom,clusterRadius:i.clusterRadius,clusterProperties:c,children:[t(l,{id:o.LayerIds.ClusterHighlights,type:"circle",filter:["all",["has","point_count"],[">",["get","count_selected"],0]],paint:{"circle-radius":["*",i.CircleRadius,1.32],"circle-color":n,"circle-opacity":u?.4:.2}}),t(l,{id:o.LayerIds.WellsClusters,type:"circle",filter:["has","point_count"],paint:{"circle-color":n,"circle-radius":i.CircleRadius}}),t(l,{id:o.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":i.Label.font,"text-size":i.Label.size,"text-letter-spacing":i.Label.letterSpacing,"text-offset":i.Label.offset,"text-allow-overlap":!0},paint:{"text-color":i.Label.color}}),t(l,{id:o.LayerIds.WellsUnclustered,type:"circle",filter:["!",["has","point_count"]],paint:{"circle-radius":o.Markers.WellSize,"circle-color":["get","color"],"circle-stroke-color":["coalesce",["get","strokeColor"],"transparent"],"circle-stroke-width":["get","strokeWidth"]}})]})};export{s as ClusteredWellsSource};
//# sourceMappingURL=ClusteredWellsSource.js.map
