PolygonOptions
Polygon initialization options.
string
Fill color in hexadecimal RGB (
#ff0000
) or RGBA (
#ff0000ff
) format.
number[][][]
Geographical coordinates of polygon points in format:
[outerEdges, cropEdges1, cropEdges2, ...]
.
The first section is
outerEdges
which describes an array of outer edges:
[firstPoint, secondPoint, ..., firstPoint]
.
Each point is a geographical point:
[longitude, latitude]
. The last point should be the same as the first.
Then optionally you can crop some polygons from the main one (outer) by specifying
cropEdges1
,
cropEdges2
and so on.
A format is the same as the main section:
[firstPoint, secondPoint, ..., firstPoint]
each point is
[longitude, latitude]
.
Important:
outerEdges
and
cropEdgesN
must not touch or intersect each other.
Only the first section (
outerEdges
) is required. There may be many
cropEdges
sections.
boolean
Allows the polygon to emit events (like
mouseover
).
true
by default.
number
Maximum display styleZoom.
number
Minimum display styleZoom.
string
Stroke color in hexadecimal RGB (
#ff0000
) or RGBA (
#ff0000ff
) format.
number
Stroke width in pixels.
any
User specific data.
number
Draw order.