Data about country map should zoom to the country ...
13706
Reporter: mdoering
Assignee: hoefft
Type: Improvement
Summary: Data about country map should zoom to the country ...
Description: Data about country map should zoom to the country cause there is by nature never any data outside of that country.
Priority: Minor
Resolution: Fixed
Status: Closed
Created: 2013-08-30 12:02:34.898
Updated: 2015-09-22 11:45:02.432
Resolved: 2015-09-22 11:45:02.378
Author: trobertson@gbif.org
Comment: This is unlikely to be done pre GB. How do we manage the correct zoom for the country?
Created: 2013-09-11 16:28:03.158
Updated: 2013-09-11 16:28:03.158
Author: trobertson@gbif.org
Created: 2015-07-14 09:03:07.236
Updated: 2015-07-14 09:03:07.236
Ideally any map should pick a sensible zoom level and centre based on the content held within.
Zoom should be limited to something like zoom level 5 or 6 to make sure you still get some context - there is a danger some maps with a few points will zoom straight to zoom 14 and then the user will simply see green with some points and no idea where in the world it is.
Author: hoefft
Created: 2015-09-22 11:42:38.961
Updated: 2015-09-22 11:42:38.961
The api now supports asking for the extend of a tile. So asking for til 0-0-0 will return the extend of everything.
{{/v1/map/density/tile.json?key=312&x=0&y=0&z=0&type=TAXON}}
will return
{{count, minimumLatitude, minimumLongitude, maximumLatitude, maximumLongitude}}.
This is used in the new map to zoom to extent.