aodn / aodn-portal

AODN Open Geospatial Portal
https://portal.aodn.org.au/
GNU General Public License v3.0
21 stars 13 forks source link

Autozoom to layer extent for layers that have no bbox area #154

Closed pmbohm closed 11 years ago

pmbohm commented 11 years ago

The portal does not auto zoom to layers whose geometries are points and where the data points are all in exactly the same location.

Example layers are on the AODN portal: Universities -> University of Sydney -> Phytoplankton Sydney harbour. Universities -> Australian National University -> Core data - New Caledonian Basin

Possible Solution: Where the bbox of a layer contains no area, zoom to the point at an arbitrary zoom level

akashisama commented 11 years ago

Won't catch the case where there are two points at same longitude or same latitude(and not in same spot), but that is very unlikely and can be worked around with the custom zoom in admin section. So reviewed and okay'd.