style
Style properties to apply to the overlay.
Declaration
get style(): Style;
set style(style: Style);Discussion
The following example shows a new style object replacing the current style properties for a circle overlay:
circleOverlay.style = new mapkit.Style({
strokeColor: "#777",
lineWidth: 3,
fillColor: "#FFF",
fillOpacity: .2
});You can also change style properties individually, as this example shows:
circleOverlay.style.fillOpacity = .33;
circleOverlay.style.lineWidth = 4;