TerriaJS / aremi-natmap

AREMI fork of the NICTA/nationalmap repo.
11 stars 13 forks source link

Share broken on AREMI #378

Closed AnaBelgun closed 5 years ago

AnaBelgun commented 5 years ago

It seems that share functionality is broken for some/a layers on AREMI: https://nationalmap.gov.au/renewables/#share=s-oDPMo1jDBBtwBNhD

Go to any data layer, share, open in new tab; error message:

image

AnaBelgun commented 5 years ago

@kring would you please finalise the investigation on this one?

kring commented 5 years ago

Last week, AREMI was showing an error when visiting the share link above. The error was related to accessing https://spatial.industry.nsw.gov.au/arcgis/rest/services/Bioenergy_Assessment/Cropping_All_Straw_Hay_Silage_Residues/MapServer, and the server was reporting an error for that layer. Today its working because that server is happy again. But AREMI is still accessing that URL when visiting this share link, which is surprising because nothing cropping-related is included in the share link at all.

Here's what's happening:

So the solution here is adapt this code https://github.com/TerriaJS/aremi-natmap/blob/c5445aeefd5b2b446e4a620e0019d56d43eca5c4/index.js#L64 for the AREMI catalog URLs. This will likely fix other bugs as well where the catalog appears to (partially?) revert to an old version when visiting share URLs.

AnaBelgun commented 5 years ago

@krin Is the same happening with this share link (pointing to a different dataset/server): https://nationalmap.gov.au/renewables/#share=s-7olCH2Vgiye5UYwe I might have made a mistake in not mentioning this example in the main issue description.

kring commented 5 years ago

Is the same happening with this share link (pointing to a different dataset/server):

Yes looks that way @AnaBelgun.