diff --git a/geonode_mapstore_client/client/MapStore2 b/geonode_mapstore_client/client/MapStore2 index 092ecdfafb..ca1bdefaa5 160000 --- a/geonode_mapstore_client/client/MapStore2 +++ b/geonode_mapstore_client/client/MapStore2 @@ -1 +1 @@ -Subproject commit 092ecdfafb2f33d66211756fdd43f301ae026164 +Subproject commit ca1bdefaa53575c48fcebf42b74dd75a66f52d20 diff --git a/geonode_mapstore_client/client/js/plugins/Legend.jsx b/geonode_mapstore_client/client/js/plugins/Legend.jsx index 37012f34a9..32765c912c 100644 --- a/geonode_mapstore_client/client/js/plugins/Legend.jsx +++ b/geonode_mapstore_client/client/js/plugins/Legend.jsx @@ -31,7 +31,10 @@ function Legend({ currentZoomLvl, scales, language, - currentLocale + currentLocale, + projection, + mapSize, + mapBbox }) { const [expandLegend, setExpandLegend] = useState(false); @@ -54,7 +57,10 @@ function Legend({ { has_time: hasTime, default_style: defaultStyle, ptype, - subtype + subtype, + sourcetype } = resource; const bbox = getExtentFromResource(resource); @@ -191,7 +192,10 @@ export const resourceToLayerConfig = (resource) => { ...(params && { params }), ...(dimensions.length > 0 && ({ dimensions })), extendedParams, - ...(fields && { fields }) + ...(fields && { fields }), + ...(sourcetype === 'REMOTE' && !wmsUrl.includes('/geoserver/') && { + serverType: ServerTypes.NO_VENDOR + }) }; } };