map
This commit is contained in:
@@ -373,6 +373,7 @@ const PropertyMap = ({
|
||||
return null;
|
||||
}
|
||||
|
||||
// Your coordinates are already in [lng, lat] format, so we need to swap them for Leaflet
|
||||
const coordinates = polygonData.coordinates[0].map(([lng, lat]) => [lat, lng]);
|
||||
console.log('Mapped coordinates:', coordinates);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user