Closed fdc263 closed 3 years ago
Hi there. Right now there isn't an option in the UI to update the gmaps api key. I'm open to a pull request for this ;)
Do you have any implementation suggestions
You could save a value in the website model and inject that in the vue-main.js file where the current key is hardcoded.
has this already been implemented in pwb-premium? can you port the implementation here?
pwb-premium uses rails 6 with webpacker and I set the key in the webpack config which is not available in this project. I can create an instance of pwb-premium for you to try out if you wish. I'll send you an email about this.
How I do setup my api key to avoid errors loading maps?
Currently gem is using the key
AIzaSyCPorm8YzIaUGhKfe5cvpgofZ_gdT8hdZw
and raisingGoogle Maps JavaScript API error: RefererNotAllowedMapError