magda-io / magda-preview-map

Catalog-based web geospatial visualisation platform.
http://terria.io
Other
1 stars 0 forks source link

Support Select Layer for WMS Preview #11

Closed t83714 closed 3 years ago

t83714 commented 3 years ago

Support Select Layer for WMS Preview

We should support render select lay from WMS service. see here:

https://github.com/magda-io/magda-preview-map/blob/f93606d705269e4652cbae5b53ff575bb7f798d9/lib/Models/MagdaCatalogItem.js#L494

Required changes for this terria map instance are:

Please note: by default, terriajs v7 set layerName to WMS item's layers field: https://github.com/TerriaJS/terriajs/blob/7569485af9d965c999a2a512ddd02e2f722f3687/lib/Models/WebMapServiceCatalogGroup.js#L371

Sample

t83714 commented 3 years ago

image

t83714 commented 3 years ago

FeatureType selection:

image

t83714 commented 3 years ago

closed via PR: https://github.com/magda-io/magda-preview-map/pull/13