Feature/reports road items
This commit is contained in:
@@ -111,7 +111,7 @@ const MapInteraction = ({ setValue, startLat, startLng, endLat, endLng }) => {
|
||||
setStartPosition({ lat: center.lat, lng: center.lng });
|
||||
setIsStartLocked(true);
|
||||
setStartIconColor("#1CAC66");
|
||||
map.panBy([25, 25])
|
||||
map.panBy([25, 25]);
|
||||
}
|
||||
},
|
||||
}}
|
||||
@@ -183,13 +183,10 @@ const MapInteraction = ({ setValue, startLat, startLng, endLat, endLng }) => {
|
||||
setEndPosition({ lat: center.lat, lng: center.lng });
|
||||
setIsEndLocked(true);
|
||||
setEndIconColor("#D13131");
|
||||
map.fitBounds(
|
||||
[
|
||||
startPosition,
|
||||
map.getCenter(),
|
||||
],
|
||||
{ paddingTopLeft: [16, 16], paddingBottomRight: [16, 16] }
|
||||
);
|
||||
map.fitBounds([startPosition, map.getCenter()], {
|
||||
paddingTopLeft: [16, 16],
|
||||
paddingBottomRight: [16, 16],
|
||||
});
|
||||
}
|
||||
},
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user