MapObject
Hierarchy
- MapObject
Index
Constructors
constructor
Properties
optionaldetails
element
events
id
mapsvg
name
optionalpopover
optionaltooltip
Methods
attr
Sets attribute of an SVG object
Parameters
v1: any
attribute name or object:
{name: value, name: value}
v2: any = null
value
Returns string
getCenter
Returns center of an object in pixel coordinates
Returns ScreenPoint
- [x,y]
getCenterLatLng
Returns center of an object in geo-coordinates
Parameters
yShift: any
Returns GeoPoint
getCenterSVG
Returns center of an object in SVG coordinates
Returns SVGPoint
getComputedStyle
Returns style of a given property of an SVG object
Parameters
prop: string
property name
optionalelem: HTMLElement | SVGElement
SVG object
Returns string
- style
getGeoBounds
getStyle
Returns style of a property of the SVG object
Parameters
prop: string
property name
Returns string
setId
Set ID of an object
Parameters
id: string
Returns void
staticgetComputedStyle
Parameters
prop: string
optionalelem: HTMLElement | SVGElement
Returns string
Abstract MapObject class. Extended by Region & Marker