gbif / hosted-portals

Support material for establishing the GBIF Hosted Portals
Apache License 2.0
10 stars 6 forks source link

Use Java maptiles #204

Closed MortenHofft closed 2 years ago

MortenHofft commented 2 years ago

Motivation The map tiles currently used are served by a quick implementation that works well with Mapbox, but not so well with OpenLayers. The reason is that it doesn't do any tile buffering and OpenLayers need that to show the points nicely (whereas MapBox can handle it and will draw on adjacent tiles if needed).

As we want to leave mapbox and use openlayers (because they support projections), then we need to either update the Node tileserver or start using the Java one which powers GBIF.org adhoc search.

So far using the Java one hasn't been an option because we need search by predicates, but that features has recently been implemented.

Changes needed To change this we need to use the new map endpoint. To do so we need to register a predicate first and then query the tiles. Changes needed are:

Status The backend API for registering predicates and for serving tiles are created. There is no API for exposing bin sizes per zoom level.

Some of the UI work has been started in a branch (v2maps), but isn't completed.