Merge pull request #56 from sebastienheyd/master
User define Google Maps callback
This commit is contained in:
commit
dd6cda0ee4
|
|
@ -874,7 +874,11 @@ tarteaucitron.services.googlemaps = {
|
||||||
uniqIds = [],
|
uniqIds = [],
|
||||||
i;
|
i;
|
||||||
|
|
||||||
tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback=tac_googlemaps_callback');
|
if (tarteaucitron.user.mapscallback === undefined) {
|
||||||
|
tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
|
||||||
|
}
|
||||||
|
|
||||||
|
tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback);
|
||||||
|
|
||||||
window.tac_googlemaps_callback = function () {
|
window.tac_googlemaps_callback = function () {
|
||||||
tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
|
tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue