MapsvgClient
Hierarchy
- Mapsvg
- MapsvgClient
Index
Constructors
Properties
- ResizeSensor
- _nonce
- arrayIndexed
- customObject
- defaultMarkerImage
- distanceSearch
- formBuilder
- geoPoint
- googleMaps
- googleMapsApiLoaded
- google_maps_api_key
- initialized
- instances
- loaded
- location
- map
- mapsRepository
- mapsV2Repository
- marker
- markerImages
- mediaUploader
- meta
- mouse
- query
- region
- repository
- routes
- schema
- schemaRepository
- screenPoint
- server
- svgPoint
- templatesLoaded
- useRepository
- utils
- version
- initialized
Accessors
Methods
Constructors
constructor
Returns MapsvgClient
Properties
ResizeSensor
_nonce
arrayIndexed
customObject
defaultMarkerImage
distanceSearch
formBuilder
geoPoint
googleMaps
Type declaration
apiIsLoading: boolean
apiKey: string
loaded: boolean
onLoadCallbacks: () => void[]
googleMapsApiLoaded
google_maps_api_key
initialized
instances
loaded
location
map
mapsRepository
mapsV2Repository
marker
markerImages
mediaUploader
meta
mouse
Type declaration
x: number
y: number
query
region
repository
routes
schema
schemaRepository
screenPoint
server
svgPoint
Type declaration
Parameters
optionalx: number
optionaly: number
optionalz: number
optionalw: number
Returns DOMPoint
templatesLoaded
useRepository
Type declaration
Parameters
name: regions | SchemaOptions
map: MapSVGMap
Returns Repository
Parameters
name: SchemaOptions | objects
map: MapSVGMap
Returns Repository
Parameters
name: SchemaOptions | schemas
map: MapSVGMap
Returns SchemaRepository
Parameters
name: SchemaOptions | maps
map: MapSVGMap
Returns MapsRepository
utils
Type declaration
env: { getBrowser: () => { firefox: boolean; ie: boolean; safari: boolean }; getDevice: () => { android: boolean; ios: boolean }; getMouseCoords: (e: any) => { x: number; y: number }; getUserAgent: () => string; isMac: () => boolean; isPhone: () => boolean }
getBrowser: () => { firefox: boolean; ie: boolean; safari: boolean }
Returns { firefox: boolean; ie: boolean; safari: boolean }
firefox: boolean
ie: boolean
safari: boolean
getDevice: () => { android: boolean; ios: boolean }
Returns { android: boolean; ios: boolean }
android: boolean
ios: boolean
getMouseCoords: (e: any) => { x: number; y: number }
Parameters
e: any
Returns { x: number; y: number }
x: number
y: number
getUserAgent: () => string
Returns string
isMac: () => boolean
Returns boolean
isPhone: () => boolean
Returns boolean
files: { getFileType: (url: any) => JS | CSS | Unknown; loadFile: (file: any) => Promise<unknown>; loadFiles: (files: any) => Promise<any[]> }
getFileType: (url: any) => JS | CSS | Unknown
Parameters
url: any
Returns JS | CSS | Unknown
loadFile: (file: any) => Promise<unknown>
Parameters
file: any
Returns Promise<unknown>
loadFiles: (files: any) => Promise<any[]>
Parameters
files: any
Returns Promise<any[]>
funcs: { deepMerge: { <T, U>(target: T, source: U): T & U; <T, U, V>(target: T, middle: U, source: V): T & U & V }; geocode: (query: any, callback: any) => boolean; getNestedValue: (obj: any, path: any) => any; splitObjectAndField: (fields: string) => { field: string; object: string }; throttle: (method: any, delay: any, scope: any, params: any) => void }
deepMerge: { <T, U>(target: T, source: U): T & U; <T, U, V>(target: T, middle: U, source: V): T & U & V }
Type parameters
- T
- U
Parameters
target: T
source: U
Returns T & U
Type parameters
- T
- U
- V
Parameters
target: T
middle: U
source: V
Returns T & U & V
geocode: (query: any, callback: any) => boolean
Parameters
query: any
callback: any
Returns boolean
getNestedValue: (obj: any, path: any) => any
Parameters
obj: any
path: any
Returns any
splitObjectAndField: (fields: string) => { field: string; object: string }
Parameters
fields: string
Returns { field: string; object: string }
field: string
object: string
throttle: (method: any, delay: any, scope: any, params: any) => void
Parameters
method: any
delay: any
scope: any
params: any
Returns void
http: { handleFailedRequest: (response: any) => void }
handleFailedRequest: (response: any) => void
Parameters
response: any
Returns void
numbers: { compareVersions: (v1: any, v2: any) => -1 | 0 | 1; isNumber: (n: any) => boolean; parseBoolean: (string: any) => boolean }
compareVersions: (v1: any, v2: any) => -1 | 0 | 1
Parameters
v1: any
v2: any
Returns -1 | 0 | 1
isNumber: (n: any) => boolean
Parameters
n: any
Returns boolean
parseBoolean: (string: any) => boolean
Parameters
string: any
Returns boolean
strings: { convertToText: (obj: any) => any; fixColorHash: (color: string) => string; functionFromString: Object; removeLeadingSlash: (str: any) => any; safeURL: (url: any) => any; toSnakeCase: (str: string) => string; ucfirst: (string: any) => any }
convertToText: (obj: any) => any
Parameters
obj: any
Returns any
fixColorHash: (color: string) => string
Parameters
color: string
Returns string
functionFromString: Object
removeLeadingSlash: (str: any) => any
Parameters
str: any
Returns any
safeURL: (url: any) => any
Parameters
url: any
Returns any
toSnakeCase: (str: string) => string
Parameters
str: string
Returns string
ucfirst: (string: any) => any
Parameters
string: any
Returns any
version
staticinitialized
Accessors
googleMapsApiKey
Returns string
nonce
Returns string
Parameters
_nonce: string
Returns void
Methods
addInstance
Parameters
mapsvg: any
Returns void
extend
Parameters
sub: any
base: any
Returns void
extendBuiltins
Returns void
get
Parameters
index: any
Returns MapSVGMap
getByContainerId
Parameters
id: any
Returns MapSVGMap
getById
Parameters
id: any
Returns MapSVGMap
init
Parameters
options: MapsvgFrontendParams
Returns Promise<void>
lazyLoadMap
Parameters
container: HTMLElement
Returns void
loadMap
Parameters
container: HTMLElement
Returns void
loadMaps
Returns void
receiveMessageFromIframe
Parameters
event: any
Returns void
setEventHandlers
Returns void
unloadMaps
Returns void
staticcreateClient
Parameters
optionalfrontEndOptions: MapsvgFrontendParams
Returns Mapsvg
Client class, globally available as
mapsvg
orwindow.mapsvg
. It contains all of the classes and utilities. Example usage: