mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Created google-maps-tests file.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/// <reference path="google-maps.d.ts" />
|
||||
|
||||
var GoogleMapsLoader = require('google-maps');
|
||||
|
||||
GoogleMapsLoader.load(function(google) {
|
||||
new google.maps.Map(el, options);
|
||||
});
|
||||
|
||||
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) {
|
||||
console.log('I just loaded google maps api');
|
||||
});
|
||||
Reference in New Issue
Block a user