@itwin/geonames-extension
Version:
Geolocation Extension
35 lines • 1.21 kB
TypeScript
import { DecorateContext, ScreenViewport } from "@itwin/core-frontend";
/** Properties that define a geographic entity
* @beta
*/
export interface GeoNameProps {
name: string;
lat: number;
lng: number;
wikipedia?: string;
population?: number;
}
export declare class GeoNameMarkerManager {
private _cityMarkerImage;
private _cityCount;
private _markerSet;
static decorator?: GeoNameMarkerManager;
private static _scratchCarto;
private static _scratchPoint;
constructor(vp: ScreenViewport, _cityMarkerImage: HTMLImageElement, _cityCount?: number);
decorate(context: DecorateContext): void;
private synch;
private static loadImage;
private outputInfoMessage;
private radiansToString;
private doCitySearch;
/** Start showing markers if not currently active (or optionally refresh when currently displayed). */
static show(vp: ScreenViewport): Promise<void>;
static clear(_vp: ScreenViewport): void;
static update(vp: ScreenViewport): void;
}
export declare class GeoNameExtension {
private static _defaultNs;
static initialize(): Promise<void>;
}
//# sourceMappingURL=geoNames.d.ts.map