I am using @react-google-maps/api": "1.8.2"
and wanted to draw a dotted polygon and circleBut when I pass options ({icons: [icon: lineSymbol, repeat: '10px]})
to the or . its not working.
const lineSymbol = {
path: 'M 0,-1 0,1',
scale: 2,
strokeColor: 'green',
strokeOpacity: 1,
}
const polygonProps = {
options: {
fillOpacity: 0,
icons: [{
icon: lineSymbol,
offset: '0',
repeat: '10px',
}, ],
// strokeColor: polygonData.strokeColor,
// strokeWidth: 1,
zIndex: polygonData.zIndex || 10,
},
path: polygonData.pointList.map(item => ({
lat: item[0],
lng: item[1]
})),
title: polygonData.title,
}
<
Polygon {
...polygonProps
}
/>
here I found similar task on google map here