ng2-bingmaps
Version:
Angular 2 components for Bing Maps
57 lines (56 loc) • 1.81 kB
TypeScript
/**
* ng2-bingmaps - Angular 2 components for Bing Maps
* @version v0.2.0
* @link https://github.com/youjustgo/ng2-bingmaps
* @license MIT
*/
import { MapsAPILoader } from './maps-api-loader';
export declare enum ScriptProtocol {
HTTP = 0,
HTTPS = 1,
AUTO = 2,
}
export declare class LazyMapsAPILoaderConfig {
/**
* The Bing Maps API Key (see:
* https://developers.google.com/maps/documentation/javascript/get-api-key)
*/
apiKey: string;
/**
* The Google Maps client ID (for premium plans).
* When you have a Google Maps APIs Premium Plan license, you must authenticate
* your application with either an API key or a client ID.
* The Google Maps API will fail to load if both a client ID and an API key are included.
*/
clientId: string;
/**
* The Google Maps channel name (for premium plans).
* A channel parameter is an optional parameter that allows you to track usage under your client
* ID by assigning a distinct channel to each of your applications.
*/
channel: string;
/**
* Google Maps API version.
*/
apiVersion: string;
/**
* Host and Path used for the `<script>` tag.
*/
hostAndPath: string;
/**
* Protocol used for the `<script>` tag.
*/
protocol: ScriptProtocol;
/**
* The branch to use: Release, Experimental, or Frozen.
* Set to Experimental to use the newest features, or if it contains a bug fix you require. Otherwise leave blank or set to Release.
*/
branch: string;
}
export declare class LazyMapsAPILoader extends MapsAPILoader {
private _config;
private _scriptLoadingPromise;
constructor(_config: LazyMapsAPILoaderConfig);
load(): Promise<void>;
private _getScriptSrc(callbackName);
}