latlng error

This commit is contained in:
Jake Kasper
2025-09-05 08:15:21 -04:00
parent 833cc730d4
commit 7e05fa7484

View File

@@ -305,7 +305,16 @@ const Watering = () => {
) )
)} )}
{cov?.kind==='rect' && ( {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> </React.Fragment>
); );