export const PolygonStroke = "#a5a5a5"; export const PolylineStroke = "#4CBDD9"; export const PolygonFill = "#35bbe6"; export const SelectedStroke = "#d80242"; type OverlayOptions = AMap.PolygonOptions & AMap.PolylineOptions; export const PolygonOptions: OverlayOptions = { strokeColor: PolygonStroke, strokeOpacity: 1, strokeWeight: 2, fillColor: PolygonFill, fillOpacity: 0.3, strokeStyle: "solid", cursor: "default", draggable: false, bubble: true, }; export const PolylineOptions: OverlayOptions = { strokeColor: PolylineStroke, strokeOpacity: 1, strokeWeight: 4, strokeStyle: "solid", cursor: "default", draggable: false, bubble: true, }; export const SelectedOptions: OverlayOptions = { strokeColor: SelectedStroke, draggable: true, cursor: "pointer", };