Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 563 Bytes

polygon.md

File metadata and controls

36 lines (27 loc) · 563 Bytes

Polygon 多边形覆盖物

<MapView>
  <MapView.Polygon
    points={[
      { latitude: 39, longitude: 113 },
      ...
    ]}
    strokeWidth={2}
    strokeColor="rgba(0, 0, 255, 0.5)"
    fillColor="rgba(255, 0, 0, 0.5)"
  />
</MapView>

Props

points: LatLng[]

坐标列表


strokeWidth?: number

边框宽度


strokeColor?: color

边框颜色


fillColor?: color

填充颜色