TerriaJS / nationalmap

Australia's NationalMap
https://nationalmap.gov.au
122 stars 45 forks source link

Mobile Black Spot Program update - Fix WMS `GetFeatureInfo` embedded links #1233

Closed nf-s closed 7 months ago

nf-s commented 8 months ago

Dep. Infrastructure are In the process of updating Mobile Black Spot Program layers to include HTML links in GetFeatureInfo requests, but Terria defaults to requesting text/html format, and doesn't render <a> elements correctly.

Example

The following WMS layer has links embedded in the GetFeatureInfo response

Note if you load the ArcGis MapServer layer - then it renders links correctly

Possible Solution

{
   ...
  "getFeatureInfoFormat": {
    "type": "json",
    "format": "application/geo+json"
  }
}

Test link

Possible Solution

Look into why <a> elements aren't being rendered correctly in HTML

nf-s commented 8 months ago

I have a PR that changes default behaviour with ArcGis FeatureServer WMS

This will prioritise geojson and xml GetFeatureInfo formats over HTML

nf-s commented 8 months ago

This will be fixed in the next release

nf-s commented 7 months ago

Fixed in production!