Skip to content
MapSVG 8/Documentation

MapOptions

MapOptions interface is used to control the correct types of map options, passed during the initialization of the map or updating it.

optional actions: object;
directoryItem: object;
click: object;
[key: string]: any
hover: object;
[key: string]: any
mouseout: object;
[key: string]: any
touch: object;
[key: string]: any
map: object;
afterLoad: object;
selectMarker: boolean;
selectRegion: boolean;
marker: object;
click: object;
[key: string]: any
mouseout: object;
[key: string]: any
mouseover: object;
[key: string]: any
showTooltip: boolean;
touch: object;
[key: string]: any
region: object;
click: object;
[key: string]: any
mouseout: object;
[key: string]: any
mouseover: object;
[key: string]: any
showTooltip: boolean;
touch: object;
[key: string]: any

optional backend: boolean;

optional choropleth: ChoroplethOptions;

optional clustering: object;
on: boolean;

optional colors: ColorsOptions;

optional colorsIgnore: boolean;

optional containers: object;
footer: object;
height: string;
on: boolean;
width: string;
header: object;
height: string;
on: boolean;
width: string;
leftSidebar: object;
height: string;
on: boolean;
width: string;
rightSidebar: object;
height: string;
on: boolean;
width: string;

optional controls: ControlsOptions;

optional css: string;

optional cursor: string;

optional data_objects: any;

optional data_regions: any;

optional database: DatabaseOptions;

optional db_map_id: string | number;

optional defaultMarkerImage: string;

optional detailsView: object;
autoresize: boolean;
containerId: string;
location:
| "map"
| "custom"
| "leftSidebar"
| "rightSidebar"
| "header"
| "footer"
| "fullscreen";
margin: string;
mobileFullscreen: boolean;
width: string;

optional disableAll: boolean;

optional events: object;
[key: string]: string

optional extension: any;

optional filters: FilterOptions;

optional filtersSchema: SchemaField[];

optional fitMarkers: boolean;

optional fitMarkersOnStart: boolean;

optional fitSingleMarkerZoom: number;

optional galleries: ArrayIndexed<GalleryOptionsInterface>;

optional googleMaps: object;
apiKey: string;
center: GeoPoint;
optional drawingTools: boolean;
optional geometry: boolean;
language: string;
minZoom: number;
on: boolean;
zoom: number;

optional groups: ArrayIndexed<GroupOptionsInterface>;

optional height: number;

id: number;

optional inBackend: boolean;

optional labelsMarkers: object;
on: boolean;

optional labelsRegions: object;
on: boolean;

optional layersControl: LayersControlOptionsInterface;

optional loadingText: string;

optional lockAspectRatio: boolean;

optional markerLastID: number;

optional menu: DirectoryOptions;

optional middlewares: object;
mapLoad: string;
render: string;
request: string;
response: string;

optional mobileView: object;
[key: string]: any

optional multiSelect: boolean;

optional padding: object;
bottom: number;
left: number;
right: number;
top: number;

optional popovers: PopoversOptions;

optional previousMapsIds: (string | number)[];

optional regionChoroplethField: string;

optional regionPrefix: string;

optional regions: RegionOptionsCollection;

optional regionStatuses: RegionStatusOptionsCollection;

optional responsive: boolean;

optional scroll: ScrollOptions;

optional source: string;

optional svgData: string;

optional svgFileVersion: number;

optional templates: object;
detailsView: string;
detailsViewRegion: string;
directory: string;
directoryItem: string;
labelRegion: string;
popoverMarker: string;
popoverRegion: string;
tooltipMarker: string;
tooltipRegion: string;

optional title: string;

optional tooltips: TooltipsOptions;

optional viewBox: number[];

optional width: number;

optional zoom: ZoomOptions;

Zoom