burritojustice / xyz_space_invader

HERE XYZ space and tag visualization and exploration tool
https://xyz-space-invader.netlify.com/?space=qPiMsAeX&token=AAO2JS9ES0NZhmvCCPUUerw&basemap=refill-dark&lines=2&roads=0&buildings=1&randomColors=0&points=0&outlines=0&highlight=0&water=0&tags=railroads%2Cne_10m_urban_areas%2Cne_10m_roads%2Bmin_zoom%406%2C
MIT License
6 stars 4 forks source link

provide guidance on how to view large datasets #5

Open burritojustice opened 5 years ago

burritojustice commented 5 years ago

For large datasets (say > 1 million), we should provide guidance that the dataset is large and is best viewed when zoomed in.

Where to zoom to is a different question. Viewing a million points distributed globally is different than viewing a million points in San Francisco.

Longer term possibilities include redirecting to a simplified data view if they exist (if a space has hexbins, or Tippecanoe), or even initiate a session to generate such a simplified view...

burritojustice commented 5 years ago

We should look to see if the space has hexbins.

Also, it would be nice to initiate a hexbin run but not sure how that would work client-side.

bcamper commented 5 years ago

Note: space client object has hexbin info:

https://xyz.api.here.com/hub/spaces/uFjNTqGV

{
  "id": "uFjNTqGV",
  "title": "hexbin space of NOAA tornados 1950-2017",
  "description": "via maP1Z7fj, hexbins zoom 3-5",
  "owner": "HERE-da1876a7-3ffe-4801-a793-fc7b447e6b33",
  "client": {
    "type": "hexbin",
    "cellSizes": [
      "204800",
      "102400",
      "51200",
      "25600",
      "6400",
      "3200"
    ],
    "zoomLevels": [
      "2",
      "3",
      "4",
      "5",
      "7",
      "8"
    ],
    "hexbinSpaceId": "ZFko307v",
    "sourceSpaceId": "maP1Z7fj"
  },
  "cid": "0VeWPmMuUeMebnjNVGz9"
}
burritojustice commented 5 years ago

so if hexbins by zoom are available, we: