Closed djbusstop closed 3 years ago
The map should not allow the user to pan or zoom further West than Hawaii, or further east than Japan/Russia/New Zealand.
These are the bounds we currently use:
[ [-85.05, -220], // lower left [85.05, 230], // upper right ],
Put these in the map-config.js file, import them to components/Map.js and implement them with the react-leaflet map however that is done.
map-config.js
components/Map.js
react-leaflet
Done :)
The map should not allow the user to pan or zoom further West than Hawaii, or further east than Japan/Russia/New Zealand.
These are the bounds we currently use:
Put these in the
map-config.js
file, import them tocomponents/Map.js
and implement them with thereact-leaflet
map however that is done.