nationalmap icon indicating copy to clipboard operation
nationalmap copied to clipboard

Esri MapServer issues?

Open meh9 opened this issue 1 year ago • 1 comments

Looking at NatMap, the Grey Scale basemap from GA doesn't seem to be working:

Screenshot 2023-05-09 at 13 55 24

However, if you look at it using the Esri viewer it works fine:

https://services.ga.gov.au/gis/rest/services/NationalBaseMap_GreyScale/MapServer?f=jsapi

Have we introduced a bug in our MapServer support?

Note that the other GA provided basemap National Base Map appears to work fine in NatMap. Perhaps compare differences from the services? This one works: https:/services.ga.gov.au/gis/rest/services/NationalBaseMap/MapServer/

meh9 avatar May 09 '23 03:05 meh9

The GA service specifies a maximumScale value of 260000001. Together with https://github.com/TerriaJS/terriajs/blob/main/lib/Core/scaleToDenominator.ts#L3 (called from https://github.com/TerriaJS/terriajs/blob/main/lib/Models/Catalog/Esri/ArcGisMapServerCatalogItem.ts#L448 with the values

scaleDenominatorToLevel(260000001, true, false)

which returns a maximumLevel value of 1, which is then passed onto the ArcGisMapServerImageryProvider so only level 1 tiles are fetched.

  • [ ] Determine if the server is specifying a bad maximumScale or if Terria is doing the maths wrongly to calculate the maximumLevel

tephenavies avatar May 09 '23 04:05 tephenavies