Spaces:
Runtime error
Runtime error
Commit
·
2258af3
1
Parent(s):
3708237
Enabled normal exploration with exploration sidebar closed
Browse files- Earlier closing the exploration sidebar meant that exploration was disabled.
- Keeping the exp. sidebar occupied a huge space, making some areas of the map inaccessible.
- Now closing the exp. sidebar will not affect any of its operations
frontend/src/components/Map.js
CHANGED
@@ -963,8 +963,9 @@ const Map = ( { onMapClick, searchQuery, contentType, setSearchQuery, setSubmitt
|
|
963 |
<button
|
964 |
onClick={() => {
|
965 |
setExplorationSidebarOpen(false);
|
966 |
-
setExplorationMode(false);
|
967 |
-
setExplorationMarkers([]);
|
|
|
968 |
}}
|
969 |
style={{
|
970 |
background: 'none',
|
|
|
963 |
<button
|
964 |
onClick={() => {
|
965 |
setExplorationSidebarOpen(false);
|
966 |
+
// setExplorationMode(false); // even with exp. sidebar closed, you can do exploration normally.
|
967 |
+
// setExplorationMarkers([]);
|
968 |
+
setShouldZoom(false); // If this line is removed, it map automatically zooms after re-opening/closing the exp. sidebar
|
969 |
}}
|
970 |
style={{
|
971 |
background: 'none',
|