Marker
Hierarchy
- MapObject
- Marker
Index
Constructors
Properties
Methods
- adjustLabelScreenPosition
- adjustScreenPosition
- attr
- delete
- deselect
- drawBubble
- getBBox
- getBubbleScreenPosition
- getBubbleSize
- getCenter
- getCenterLatLng
- getCenterSVG
- getChoroplethColor
- getComputedStyle
- getData
- getGeoBounds
- getOptions
- getStyle
- hide
- highlight
- inViewBox
- isCluster
- isMarker
- isMoving
- isRegion
- moveSrceenPositionBy
- reload
- select
- setAltAttr
- setBubbleMode
- setCentered
- setId
- setImage
- setLabel
- setMoving
- setObject
- setScreenPosition
- setSize
- setSvgPoint
- setSvgPointFromLocation
- show
- unhighlight
- update
- updateVisibility
- getComputedStyle
Constructors
constructor
Properties
altAttr
bubble
bubbleMode
centered
optionaldetails
element
events
optionalgeoPoint
height
id
image
label
location
optionalmapped
mapsvg
optionalmoving
name
optionalneedToRemove
object
optionalpopover
optionalscreenPoint
selected
src
optionalsvgPoint
optionaltooltip
type
visible
width
Methods
adjustLabelScreenPosition
Adjust position of marker label
Returns void
adjustScreenPosition
Adjusts position of the Marker. Called on map zoom and on map container resize.
Returns void
attr
Sets attribute of an SVG object
Parameters
v1: any
attribute name or object:
{name: value, name: value}
v2: any = null
value
Returns string
delete
Deletes the Marker
Returns void
deselect
Deselect the Marker.
Returns void
drawBubble
Draw a choropleth bubble for the marker
Returns void
getBBox
Get SVG bounding box of the Marker
Returns ViewBox
getBubbleScreenPosition
Returns screen point of the choropleth bubble
Returns { x: number; y: number }
x: number
y: number
getBubbleSize
Returns size of the choropleth bubble
Returns number
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
getChoroplethColor
Returns color of the choropleth marker bubble
Returns string
color
getComputedStyle
Returns style of a given property of an SVG object
Parameters
prop: string
property name
optionalelem: HTMLElement | SVGElement
SVG object
Returns string
- style
getData
Returns Model
getGeoBounds
getOptions
getStyle
Returns style of a property of the SVG object
Parameters
prop: string
property name
Returns string
hide
Hides the Marker
Returns void
highlight
Highlight the Marker. Used on mouseover.
Returns void
inViewBox
Check if the marker is inside of the viewBox
Returns boolean
boolean
isCluster
Returns this is MarkerCluster
isMarker
Returns this is Marker
isMoving
Returns boolean
isRegion
Returns this is Region
moveSrceenPositionBy
Moves marker by given numbers
Parameters
deltaX: number
deltaY: number
Returns void
reload
Returns void
select
Select the Marker.
Returns void
setAltAttr
Set 'alt' attribute of the Marker
Returns void
setBubbleMode
Disable/enable BubbleMode for the marker
Parameters
bubbleMode: boolean
Returns void
setCentered
Set centered propperty of the marker
Parameters
on: boolean
Returns void
setId
Set ID of the Marker
Parameters
id: string | number
Returns void
setImage
Set image of the Marker
Parameters
optionalsrc: string
skipChangingLocationImage: boolean = false
Returns void
setLabel
Parameters
html: string
Returns void
setMoving
Parameters
value: boolean
Returns void
setObject
Sets parent DB object of the Marker
Parameters
obj: Model
Returns void
setScreenPosition
Set position of the marker by given numbers
Parameters
x: number
y: number
Returns void
setSize
Parameters
width: number
height: number
Returns void
setSvgPoint
Set x/y coordinates of the Marker
Parameters
svgPoint: SVGPoint
Returns void
setSvgPointFromLocation
Returns void
show
Shows the Marker
Returns void
unhighlight
Unhighlight the Marker. Used on mouseout.
Returns void
update
Update marker settings
Parameters
data: any
Options
Returns void
updateVisibility
Set visibility of the marker
Returns boolean
staticgetComputedStyle
Parameters
prop: string
optionalelem: HTMLElement | SVGElement
Returns string
Marker class