UNPKG

ng2-bingmaps

Version:
31 lines (29 loc) 932 B
/** * ng2-bingmaps - Angular 2 components for Bing Maps * @version v0.2.0 * @link https://github.com/youjustgo/ng2-bingmaps * @license MIT */ "use strict"; /** * When using the NoOpMapsAPILoader, the Google Maps API must be added to the page via a `<script>` * Tag. * It's important that the Google Maps API script gets loaded first on the page. */ var NoOpMapsAPILoader = (function () { function NoOpMapsAPILoader() { } NoOpMapsAPILoader.prototype.load = function () { // todo throw new Error('todo'); // if (!(<any>window).google || !(<any>window).google.maps) { // throw new Error( // 'Bing Maps API not loaded on page. Make sure window.bing.maps is available!'); // } // return Promise.resolve(); }; ; return NoOpMapsAPILoader; }()); exports.NoOpMapsAPILoader = NoOpMapsAPILoader; //# sourceMappingURL=noop-maps-api-loader.js.map