mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
656 B
TypeScript
28 lines
656 B
TypeScript
/// <reference path="google-maps.d.ts" />
|
|
|
|
import GoogleMapsLoader = require('google-maps');
|
|
|
|
GoogleMapsLoader.load(function(google) {
|
|
var loadedMap = google.maps.Map;
|
|
});
|
|
|
|
GoogleMapsLoader.KEY = 'qwertyuiopasdfghjklzxcvbnm';
|
|
|
|
GoogleMapsLoader.CLIENT = 'yourclientkey';
|
|
GoogleMapsLoader.VERSION = '3.14';
|
|
|
|
GoogleMapsLoader.SENSOR = true;
|
|
|
|
GoogleMapsLoader.LIBRARIES = ['geometry', 'places'];
|
|
|
|
GoogleMapsLoader.LANGUAGE = 'fr';
|
|
|
|
GoogleMapsLoader.release(function() {
|
|
console.log('No google maps api around');
|
|
});
|
|
|
|
GoogleMapsLoader.onLoad(function(google) {
|
|
var loadedMap = google.maps.Map;
|
|
console.log('I just loaded google maps api');
|
|
});
|