Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ajout de la clef pour l'api

  • Loading branch information...
commit 69030afefc3eca0463e69eb3f5b28f49b7f6de3b 1 parent e143a89
@trecouvr authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugin/gmap.opa
View
6 plugin/gmap.opa
@@ -86,14 +86,14 @@ Gmap = {{
/**
Load google api.
*/
- load_api() =
- Resource.register_external_js("http://maps.googleapis.com/maps/api/js?sensor=false")
+ load_api(api_key : string) : void =
+ Resource.register_external_js("http://maps.googleapis.com/maps/api/js?key={api_key}&sensor=false")
/**
Unload google api.
*/
unload_api() =
- Resource.unregister_external_js("http://maps.googleapis.com/maps/api/js?sensor=false")
+ Resource.unregister_external_js("http://maps.googleapis.com/maps/api/js")
@private
to_js(o) = Json.serialize(OpaSerialize.Json.serialize(o))
Please sign in to comment.
Something went wrong with that request. Please try again.