@allmaps/render
Version:
Render functions for WebGL and image buffers
37 lines (35 loc) • 1.33 kB
TypeScript
import { SpritesInfo } from './types';
export declare enum WarpedMapEventType {
IMAGEINFOSADDED = "imageinfosadded",
GEOREFERENCEANNOTATIONADDED = "georeferenceannotationadded",
GEOREFERENCEANNOTATIONREMOVED = "georeferenceannotationremoved",
WARPEDMAPADDED = "warpedmapadded",
WARPEDMAPREMOVED = "warpedmapremoved",
WARPEDMAPENTERED = "warpedmapentered",
WARPEDMAPLEFT = "warpedmapleft",
IMAGELOADED = "imageloaded",
TILEFETCHED = "tilefetched",
TILEFETCHERROR = "tilefetcherror",
TILESFROMSPRITETILE = "tilesfromspritetile",
MAPTILELOADED = "maptileloaded",
MAPTILESLOADEDFROMSPRITES = "maptilesloadedfromsprites",
MAPTILEDELETED = "maptiledeleted",
FIRSTMAPTILELOADED = "firstmaptileloaded",
ALLREQUESTEDTILESLOADED = "allrequestedtilesloaded",
TEXTURESUPDATED = "texturesupdated",
CLEARED = "cleared",
PREPARECHANGE = "preparechange",
IMMEDIATECHANGE = "immediatechange",
ANIMATEDCHANGE = "animatedchange",
CHANGED = "changed"
}
export type WarpedMapEventData = {
mapIds: string[];
tileUrl: string;
optionKeys: string[];
spritesInfo: SpritesInfo;
};
export declare class WarpedMapEvent extends Event {
data?: Partial<WarpedMapEventData>;
constructor(type: WarpedMapEventType, data?: Partial<WarpedMapEventData>);
}