Points appear/dissapear with zoom levels (Maps API)
Hi,
I am using Maps API v2 with Mapbox GL JS to map occurrence data with two parameters; taxonKey and country. When I zoom in on the map, some points (hex in my case) dissappear and appear. Could you think of any idea why this happens?
GBIF Maps API https://api.gbif.org/v2/map/occurrence/density/%7Bz%7D/%7Bx%7D/%7By%7D@1x.pn...
Base map https://tile.gbif.org/3857/omt/%7Bz%7D/%7Bx%7D/%7By%7D@1x.png?style=gbif-dar...
Image of the map with different zoom levels and the source file https://nieseicmg-my.sharepoint.com/:f:/g/personal/totsu_kumiko_nies_go_jp/E...
Best regards,
Kumiko -------------------------------------------------------- Kumiko Totsu Center for Environmental Biology and Ecosystem Studies National Institute for Environmental Studies, Japan totsu.kumiko@nies.go.jp --------------------------------------------------------
Hi Kumiko,
Thank you for raising this issue.
We calculate two maps (occurrences of Archaea, and occurrences in Japan) and use them to produce this map (occurrences of Archaea in Japan). Unfortunately, due to the different way dense maps (Japan) and sparse maps (Archaea) are calculated, this comparison is failing.
I have an issue for this here: https://github.com/gbif/maps/issues/29
Until this is fixed, I suggest not filtering for only Japan, or else clipping the tiles to Japan client-side -- though I'm not sure if this can be done with MapBox. Using the ad-hoc API is another option, but that has different limitations (e.g. restriction to WGS84 projection).
Best regards
Matthew Blissett
On 06/03/2020 03:12, 戸津 久美子 wrote: Hi,
I am using Maps API v2 with Mapbox GL JS to map occurrence data with two parameters; taxonKey and country. When I zoom in on the map, some points (hex in my case) dissappear and appear. Could you think of any idea why this happens?
GBIF Maps API https://api.gbif.org/v2/map/occurrence/density/%7Bz%7D/%7Bx%7D/%7By%7D@1x.pn...mailto:y}@1x.png?style=classic.poly&bin=hex&hexPerTile=79&country=JP&taxonKey=2
Base map https://tile.gbif.org/3857/omt/%7Bz%7D/%7Bx%7D/%7By%7D@1x.png?style=gbif-dar...mailto:y}@1x.png?style=gbif-dark
Image of the map with different zoom levels and the source file https://nieseicmg-my.sharepoint.com/:f:/g/personal/totsu_kumiko_nies_go_jp/E...
Best regards,
Kumiko -------------------------------------------------------- Kumiko Totsu Center for Environmental Biology and Ecosystem Studies National Institute for Environmental Studies, Japan totsu.kumiko@nies.go.jpmailto:totsu.kumiko@nies.go.jp --------------------------------------------------------
_______________________________________________ API-users mailing list API-users@lists.gbif.orgmailto:API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users
participants (2)
-
Matthew Blissett
-
戸津 久美子