Correct bug in the Google Maps key inclusion
This commit is contained in:
parent
1a779f48d4
commit
6da496b736
2 changed files with 4 additions and 4 deletions
|
@ -16,9 +16,9 @@
|
|||
script.id = 'google_maps'
|
||||
let key = ""
|
||||
if (app.map_provider_options && app.map_provider_options.key) {
|
||||
key = `api_key=${app.map_provider_options.key}&`
|
||||
key = `key=${app.map_provider_options.key}&`
|
||||
}
|
||||
script.src = `https://maps.googleapis.com/maps/api/js?${key}v=3.exp&sensor=false&libraries=places`
|
||||
script.src = `https://maps.googleapis.com/maps/api/js?${key}v=3.exp&libraries=places`
|
||||
document.body.appendChild(script)
|
||||
</script>
|
||||
<% npo_full_address = Format::Address.full_address(@nonprofit.address, @nonprofit.city, @nonprofit.state_code, @nonprofit.zip_code) %>
|
||||
|
|
|
@ -21,9 +21,9 @@ cc_map.init = function(endpoint, options_obj, query) {
|
|||
script.id = 'google_maps'
|
||||
let key = ""
|
||||
if (app.map_provider_options && app.map_provider_options.key) {
|
||||
key = `api_key=${app.map_provider_options.key}&`
|
||||
key = `key=${app.map_provider_options.key}&`
|
||||
}
|
||||
script.src = `https://maps.googleapis.com/maps/api/js?${key}sensor=false&callback=draw_map`
|
||||
script.src = `https://maps.googleapis.com/maps/api/js?${key}callback=draw_map`
|
||||
document.body.appendChild(script)
|
||||
set_extra_options(options_obj)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue