UNPKG
@react-leaflet/core
Version:
latest (3.0.0)
next (3.0.0-rc.2)
3.0.0
3.0.0-rc.2
3.0.0-rc.1
2.1.0
2.0.1
2.0.0
2.0.0-beta.1
2.0.0-beta.0
2.0.0-alpha.1
2.0.0-alpha.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
1.0.0-rc.0
1.0.0-beta.5
1.0.0-beta.4
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
1.0.0-alpha.1
React Leaflet core
react-leaflet.js.org/docs/core-introduction
PaulLeCam/react-leaflet
@react-leaflet/core
/
lib
/
circle.js
9 lines
(8 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export function
updateCircle
(layer, props, prevProps) { if (props.center !== prevProps.center) { layer
.setLatLng
(props.center); } if (props.radius != null && props.radius !== prevProps.radius) { layer
.setRadius
(props.radius); } }