Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esri MapServer issues? #1213

Open
meh9 opened this issue May 9, 2023 · 1 comment
Open

Esri MapServer issues? #1213

meh9 opened this issue May 9, 2023 · 1 comment
Labels

Comments

@meh9
Copy link
Contributor

meh9 commented May 9, 2023

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 meh9 added the bug label May 9, 2023
@tephenavies
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants