nationalmap
nationalmap copied to clipboard
Esri MapServer issues?
Looking at NatMap, the Grey Scale
basemap from GA doesn't seem to be working:

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/
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