UNPKG

@itwin/core-frontend

Version:
53 lines 2.27 kB
import { Point3d } from "@itwin/core-geometry"; import { CanvasDecoration } from "../render/CanvasDecoration"; import { DecorateContext } from "../ViewContext"; import { Decorator } from "../ViewManager"; import { Sprite } from "../Sprites"; import { ScreenViewport } from "../Viewport"; /** Layer types that can be added to the map. * @internal */ type GoogleMapsMapTypes = "roadmap" | "satellite" | "terrain"; /** A simple decorator that shows the logo at a given screen position. * @internal */ export declare class LogoDecoration implements CanvasDecoration { private _sprite?; /** The current position of the logo in view coordinates. */ readonly position: Point3d; private _offset; set offset(offset: Point3d | undefined); /** The logo offset in view coordinates.*/ get offset(): Point3d | undefined; /** Move the logo to the lower left corner of the screen. */ moveToLowerLeftCorner(context: DecorateContext): boolean; /** Indicate if the logo is loaded and ready to be drawn. */ get isLoaded(): boolean; activate(sprite: Sprite): Promise<boolean>; /** Draw this sprite onto the supplied canvas. * @see [[CanvasDecoration.drawDecoration]] */ drawDecoration(ctx: CanvasRenderingContext2D): void; decorate(context: DecorateContext): void; } /** A decorator that adds the Google Maps logo to the lower left corner of the screen. * @internal */ export declare class GoogleMapsDecorator implements Decorator { readonly logo: LogoDecoration; private _showCreditsOnScreen?; /** Create a new GoogleMapsDecorator. * @param showCreditsOnScreen If true, the data attributions/copyrights from the Google Photorealistic 3D Tiles will be displayed on screen. The Google Maps logo will always be displayed. */ constructor(showCreditsOnScreen?: boolean); /** Activate the logo based on the given map type. */ activate(mapType: GoogleMapsMapTypes): Promise<boolean>; /** Decorate implementation */ decorate: (context: DecorateContext) => void; } /** Get copyrights from tiles currently in the viewport. * @internal */ export declare function getCopyrights(vp: ScreenViewport): Map<string, number>; export {}; //# sourceMappingURL=GoogleMapsDecorator.d.ts.map