5 changed files with 54 additions and 25 deletions
@ -0,0 +1,28 @@
|
||||
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, |
||||
}; |
Loading…
Reference in new issue