pass api key to map

This commit is contained in:
j 2017-05-29 17:56:03 +02:00
commit 39e4224034
2 changed files with 6 additions and 0 deletions

View file

@ -3,6 +3,7 @@
/*@
Ox.MapEditor <f> Map Editor
options <o> Options object
apiKey <s> Google API Key
height <n|256> Height in px
labels <b|false> If true, show labels
mode <s|'add'> Mode ('add' or 'define')
@ -23,6 +24,7 @@ Ox.MapEditor = function(options, self) {
var that = Ox.Element({}, self)
.defaults({
addPlace: null,
apiKey: '',
collapsible: false,
editPlace: null,
getMatches: null,
@ -383,6 +385,7 @@ 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'),