don't pass google api key, use Ox.Map.GoogleApiKey

This commit is contained in:
j 2017-10-26 12:42:47 +02:00
parent 7521467975
commit 4d7c675d29
3 changed files with 1 additions and 2 deletions

View file

@ -122,7 +122,6 @@ pandora.ui.navigationView = function(type, videoRatio) {
that.replaceElement(0,
$element = Ox.Map({
apiKey: pandora.site.site.googleapikey,
// clickable: pandora.site.capabilities.canClickMap[pandora.user.level],
find: ui.mapFind,
// 20 px menu + 24 px toolbar + 1px resizbar + 16px statusbar (if !item)

View file

@ -251,6 +251,7 @@ appPanel
}, function() {
pandora.site.site.videoprefix = url;
});
Ox.Map.GoogleApiKey = pandora.site.site.googleapikey;
}
});
}

View file

@ -13,7 +13,6 @@ pandora.ui.placesDialog = function(options) {
callback(result);
});
},
apiKey: pandora.site.site.googleapikey,
editPlace: function(place, callback) {
pandora.api.editPlace(place, function(result) {
Ox.Request.clearCache(); // fixme: remove