EarthCubeGeochron / sparrow-uw-cosmo

Sparrow implementation for the UW Madison Cosmogenic Nuclides Lab
https://sparrow-cosmo.geoscience.wisc.edu/
0 stars 0 forks source link

Need to add a bounding box to the leaflet map #7

Open yeshancqcq opened 4 years ago

yeshancqcq commented 4 years ago

Otherwise, the marker might return lng values that are out of bounds.

The traditional way of defining bounds in leaflet does not work.

var southWest = L.latLng(-85, -200), northEast = L.latLng(85, 200), mybounds = L.latLngBounds(southWest, northEast);

and in the Tilelayer:

<TileLayer attribution='&copy; xxx>' url='xxx' minZoom = {3} bounds = {mybounds} />