X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/b57cad3131218c7d1a027a60c71ede74f0f14829..acc4d7d7d65ed9519fa9b5fca7c878f3e9a31451:/IkiWiki/Plugin/osm.pm?ds=inline diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm index 21d1dce3f..d86dbd66e 100644 --- a/IkiWiki/Plugin/osm.pm +++ b/IkiWiki/Plugin/osm.pm @@ -74,7 +74,13 @@ sub getsetup () { safe => 0, rebuild => 1, }, - + osm_google_apikey => { + type => "string", + example => "", + description => "Google maps API key, Google layer not used if missing, see https://code.google.com/apis/console/ to get an API key", + safe => 1, + rebuild => 1, + }, } sub register_rendered_files { @@ -144,6 +150,7 @@ sub preprocess { lat => $lat, lon => $lon, href => $href, + google_apikey => $config{'osm_google_apikey'}, }; return "
"; } @@ -527,6 +534,7 @@ sub cgi($) { zoom => "urlParams['zoom']", fullscreen => 1, editable => 1, + google_apikey => $config{'osm_google_apikey'}, ); print ""; print "