Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into feature/control-panel
Browse files Browse the repository at this point in the history
  • Loading branch information
lstillwe committed May 20, 2024
2 parents a005013 + 6984857 commit d3a8793
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/components/map/default-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ export const DefaultLayers = () => {
return (
<>
{defaultModelLayers
.filter(({state }) => state.visible)
.filter(({state}) => state.visible)
.reverse()
.map((layer, index) => {
const pieces = layer.id.split('-');
const type = pieces[pieces.length-1];
Expand All @@ -171,21 +172,16 @@ export const DefaultLayers = () => {
//console.log("obsData: " + JSON.stringify(obsData, null, 2));
return (
<GeoJSON
key = {index}
data = {obsData}
pointToLayer = {obsPointToLayer}
onEachFeature = {onEachObsFeature}
key={`${index}-${layer.id}`}
data={obsData}
pointToLayer={obsPointToLayer}
onEachFeature={onEachObsFeature}
/>
);
} else {
return (
<WMSTileLayer
key = {index}
/* eventHandlers={{
click: () => {
console.log('marker clicked')
},
}} */
key={`${index}-${layer.id}`}
url={gs_wms_url}
layers={layer.layers}
params={{
Expand Down

0 comments on commit d3a8793

Please sign in to comment.