Skip to main content

GmapPolygon

Polygon component

[See](source code) ,[See](official docs) ,[See](official reference)

Props

Prop nameDescriptionTypeValuesDefault
deepWatchIf set true the object will be deep watched
@value boolean
boolean-false
clickableIndicates whether this Polygon handles mouse events. Defaults to true.
@value true, false
@see Polygon draggable
boolean-false
draggableIndicates if the polygon is draggable
@value true, false
@see Polygon dragable
boolean-false
editableIndicates if the polygon is editable
@value true, false
@see Polygon editable
boolean-false
fillColorThe fill color. All CSS3 colors are supported except for extended named colors.
@value '#000'
@see Polygon editable
string-''
fillOpacityThe fill opacity between 0.0 and 1.0
@value 1
@see Polygon editable
number-1
strokeColorThe stroke color. All CSS3 colors are supported except for extended named colors.
@value '#000'
@see Polygon editable
string-''
strokeOpacityThe stroke opacity between 0.0 and 1.0.
@value 1
@see Polygon editable
number-1
strokePositionThe stroke position. Defaults to CENTER.
@value 1
@see Polygon editable
@see StrokePosition constant
number-0
strokeWeightThe stroke width in pixels.
@value 1
@see Polygon editable
number-1
visibleWhether this polyline is visible on the map. Defaults to true.
@value 1
@see Polygon editable
boolean-true
optionsMore options that you can pass to the component
@value boolean
object-undefined
pathIndicates if the polygon is editable
@value Array
@see Polygon path
array-undefined
pathsIndicates if the polygon is editable
@value Array
@see Polygon paths
array-undefined

Events

Event namePropertiesDescription
paths_changedpaths array - this.$polygonObject.getPaths() |An event to detect when a paths changes
path_changedpath array - this.$polygonObject.getPath()### path_changed (undefined)

An event to detect when a path change