NERC-CEH / dunes-app

📱Dynamic Dunescapes mobile application
Other
0 stars 0 forks source link

Show satellite imagery on the website #33

Closed johnvanbreda closed 4 years ago

johnvanbreda commented 4 years ago

Currently the website only uses OpenStreetMap layers. During today's Webex, Rupert requested satellite imagery as the OSM layers are more or less useless when looking at dune systems.

@DavidRoy I think the level of usage will be low (on the Google free tier) so is it OK to arrange for an API key to be added to the website?

DavidRoy commented 4 years ago

Yes, that is fine

johnvanbreda commented 4 years ago

@DavidRoy shall I ask Biren to arrange this?

DavidRoy commented 4 years ago

Yes please

BirenRathod commented 4 years ago

@johnvanbreda & @DavidRoy

I have added the API key in the indicia setting form on Dunescapes website.

johnvanbreda commented 4 years ago

Thanks @BirenRathod. I tried enabling the satellite layer on https://dunescapes.brc.ac.uk/sites/setup?dynamic-parent_id=247268 but it gives the following error:

js?v=3&key=AIzaSyCEgG26Ywc3yK01WpyZzx9jblLWhy0_8pE:71 Google Maps JavaScript API error: RefererNotAllowedMapError
https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: https://dunescapes.brc.ac.uk/sites/setup
BirenRathod commented 4 years ago

@johnvanbreda I have implemented the restricted URL name on maps service now. Sorry for this trouble as example shown in Google API settings doesn't work exactly. So I have to implement that.

johnvanbreda commented 4 years ago

Seems to work now - I've updated the relevant pages. On the overview map, Google Satellite is an option but not the default, on the other close up maps it is the default.