diff --git a/source/UI/js/Map/Map.js b/source/UI/js/Map/Map.js index ce3545bd..70a54676 100644 --- a/source/UI/js/Map/Map.js +++ b/source/UI/js/Map/Map.js @@ -7,7 +7,6 @@ Ox.Map Basic map object API](http://code.google.com/apis/maps/documentation/javascript/). # ARGUMENTS ---------------------------------------------------------------- options options - apiKey Google API Key clickable If true, clicking on the map finds a place editable If true, places are editable find Initial query @@ -89,7 +88,6 @@ Ox.Map = function(options, self) { var that = Ox.Element({}, self) .defaults({ // fixme: isClickable? - apiKey: '', clickable: false, editable: false, find: '', @@ -526,7 +524,7 @@ Ox.Map = function(options, self) { $.getScript( document.location.protocol + '//maps.google.com/maps/api/js?callback=googleCallback&sensor=false' - + (options.apiKey ? '&key=' + options.apiKey : '') + + (Ox.Map.GoogleApiKey ? '&key=' + Ox.Map.GoogleApiKey : '') ); } diff --git a/source/UI/js/Map/MapEditor.js b/source/UI/js/Map/MapEditor.js index c553095a..1b358d7f 100644 --- a/source/UI/js/Map/MapEditor.js +++ b/source/UI/js/Map/MapEditor.js @@ -3,7 +3,6 @@ /*@ Ox.MapEditor Map Editor options Options object - apiKey Google API Key height Height in px labels If true, show labels mode Mode ('add' or 'define') @@ -24,7 +23,6 @@ Ox.MapEditor = function(options, self) { var that = Ox.Element({}, self) .defaults({ addPlace: null, - apiKey: '', collapsible: false, editPlace: null, getMatches: null, @@ -385,7 +383,6 @@ Ox.MapEditor = function(options, self) { .appendTo(self.$listStatusbar); self.$map = Ox.Map({ - apiKey: self.options.apiKey, clickable: true, editable: true, findPlaceholder: Ox._('Find on Map'),