antievictionmappingproject / covid-19-map-react

COVID-19 Emergency Tenant Protections Map (refactored to use React!)
13 stars 9 forks source link

Map bounds #8

Closed djbusstop closed 3 years ago

djbusstop commented 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.

djbusstop commented 3 years ago

Done :)