mbari-org / dash5

Web based UI and client applications for MBARI.
mbari.vercel.app
0 stars 2 forks source link

Feature: Add Depth Support #293

Closed jimjeffers closed 1 year ago

jimjeffers commented 1 year ago

@ksalamy I've setup a throttled effect that will execute a supplied callback as the mouse moves. I've set the throttling to execute the callback ever 500ms for now. In the DeploymentMap I've setup a function that should execute the google maps elevation API as documented here: https://developers.google.com/maps/documentation/elevation/start#maps_http_elevation_locations-js

But it seems our API key is getting rejected by google:

{
   "error_message" : "API keys with referer restrictions cannot be used with this API.",
   "results" : [],
   "status" : "REQUEST_DENIED"
}

I'm using the API key supplied by the site config info we receive from the okeanids API. We'll need to resolve this permission issue to complete this feature.