Skip to content
MapSVG 8/Documentation

Mapsvg

get googleMapsApiKey(): string;

string


get nonce(): string;

string

set nonce(_nonce): void;
ParameterType
_noncestring

void

new Mapsvg(): Mapsvg;

Mapsvg

addInstance(mapsvg): void;
ParameterType
mapsvgany

void


extend(sub, base): void;
ParameterType
subany
baseany

void


extendBuiltins(): void;

void


get(index): MapSVGMap;
ParameterType
indexany

MapSVGMap


getByContainerId(id): MapSVGMap;
ParameterType
idany

MapSVGMap


getById(id): MapSVGMap;
ParameterType
idany

MapSVGMap


init(options): Promise<void>;
ParameterType
optionsMapsvgFrontendParams

Promise<void>


lazyLoadMap(container): void;
ParameterType
containerHTMLElement

void


loadMap(container): void;
ParameterType
containerHTMLElement

void


loadMaps(): void;

void


receiveMessageFromIframe(event): void;
ParameterType
eventany

void


setEventHandlers(): void;

void


unloadMaps(): void;

void


static createClient(frontEndOptions?): Mapsvg;
ParameterType
frontEndOptions?MapsvgFrontendParams

Mapsvg

_nonce: string;

MapSVGProps._nonce


defaultMarkerImage: string;

MapSVGProps.defaultMarkerImage


distanceSearch: any;

MapSVGProps.distanceSearch


google_maps_api_key: string;

MapSVGProps.google_maps_api_key


googleMaps: object;
apiIsLoading: boolean;
apiKey: string;
loaded: boolean;
onLoadCallbacks: () => void[];

void

MapSVGProps.googleMaps


googleMapsApiLoaded: boolean = false;

MapSVGProps.googleMapsApiLoaded


initialized: boolean;

MapSVGProps.initialized


instances: MapSVGMap[];

MapSVGProps.instances


loaded: boolean = false;

markerImages: object[];
file: string;
folder: string;
optional relativeUrl: string;
url: string;

MapSVGProps.markerImages


mediaUploader: any;

MapSVGProps.mediaUploader


meta: Record<string, any> = {};

mouse: object;
x: number;
y: number;

MapSVGProps.mouse


ResizeSensor: typeof ResizeSensor;

routes: MapsvgRoutes;

MapSVGProps.routes


templatesLoaded: Record<string, boolean> = {};

MapSVGProps.templatesLoaded


version: string = "process.env.VERSION";

MapSVGProps.version


static initialized: boolean = false;