Circle

March 20, 2026 ยท View on GitHub

Circle component for drawing circular overlays on the map.

Usage

import { MapView, Circle } from '@lugg/maps';

<MapView style={{ flex: 1 }}>
  <Circle
    center={{ latitude: 37.78, longitude: -122.43 }}
    radius={500}
    fillColor="rgba(66, 133, 244, 0.3)"
    strokeColor="#4285F4"
    strokeWidth={2}
    onPress={() => console.log('Circle pressed')}
  />
</MapView>

Props

PropTypeDefaultDescription
centerCoordinaterequiredCenter coordinate of the circle
radiusnumberrequiredRadius in meters
fillColorColorValue-Fill color of the circle
strokeColorColorValue-Stroke (outline) color
strokeWidthnumber-Stroke width in points
zIndexnumber-Z-index for layering
onPress() => void-Called when the circle is tapped