latlng error
This commit is contained in:
@@ -305,7 +305,16 @@ const Watering = () => {
|
||||
)
|
||||
)}
|
||||
{cov?.kind==='rect' && (
|
||||
<Rectangle bounds={[[pt.lat - (cov.width/2)*0.00000274, pt.lng - (cov.length/2)*0.0000036], [pt.lat + (cov.width/2)*0.00000274, pt.lng + (cov.length/2)*0.0000036]]} pathOptions={{ color:'#2563eb', fillOpacity:0.2 }} />
|
||||
<Rectangle
|
||||
bounds={[[
|
||||
Number(pt.lat) - (cov.width/2)*0.00000274,
|
||||
Number(pt.lng) - (cov.length/2)*0.0000036
|
||||
], [
|
||||
Number(pt.lat) + (cov.width/2)*0.00000274,
|
||||
Number(pt.lng) + (cov.length/2)*0.0000036
|
||||
]]}
|
||||
pathOptions={{ color:'#2563eb', fillOpacity:0.2 }}
|
||||
/>
|
||||
)}
|
||||
</React.Fragment>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user