diff --git a/webapp/packages/plugin-gis-viewer/src/LeafletMap.tsx b/webapp/packages/plugin-gis-viewer/src/LeafletMap.tsx index f7beaf47d7..0b926ee794 100644 --- a/webapp/packages/plugin-gis-viewer/src/LeafletMap.tsx +++ b/webapp/packages/plugin-gis-viewer/src/LeafletMap.tsx @@ -129,7 +129,7 @@ export const LeafletMap: React.FC = function LeafletMap({ geoJSON, getAss for (let i = 0; i < associatedValues.length; i++) { const { key, value } = associatedValues[i]; - if (value === null || value === undefined) { + if (value === undefined || typeof value === 'object') { continue; } @@ -184,31 +184,32 @@ export const LeafletMap: React.FC = function LeafletMap({ geoJSON, getAss pointToLayer={(_, latlng) => leaflet.circleMarker(latlng, geojsonMarkerOptions)} onEachFeature={onEachFeature} /> - - - - - - - - - + {crs !== leaflet.CRS.Simple && ( + + + + + + + + + )} ); }