I’m creating a template using R, Quarto, and the iNat API, to report stuff on projects on iNat. One of the things I want to display is a map with the observations of the project.
if you’re using R for just visualization (not interactivity), you probably need to use tmap or leaflet to display one of iNat’s observation map tilesets over some sort of basemap.
UTFGrids are only needed if you want to be able to interactively click on an XYZ tile map to show additional data or provide other functionality. that’s more complicated to do, and i’m not sure if anyone has already written something to do this in R, although i bet it would be possible (though maybe not easy) to extend leaflet in R to to use these.
you can also use the data from UTFGrids to make interesting custom maps, but that’s also more complex to do, and you’d probably have to extend leaflet or tmap to do this, as well.
I see that using the heatmap request will get me an png. So, I will need the UTFGrids call and to have some sort of map server to display this, right? I’ll keep exploring.
no. iNat serves up the map tiles. (those PNGs are the map tiles that iNat provides.) tmap or leaflet retrieves the appropriate map tiles and stitches them together as a map visualization when you’re using R. that version of my map page uses a HTML + Javascript version of leaflet to display the heatmap tiles over a Stamen basemap.