VIDEO
Orchideen Lezing Christoph Brochard LaarX HBO Natuur en Landschap
Had some fun with it and made a nice rat Snakes (genus Pantherophis) in the US map:
https://bit.ly/2WTGc3t
Here’s an example using each approach:
“Compare” feature (doesn’t work with new tiles):
“Taxa map” feature (now also doesn’t work with new tiles)
i don’t think this is accurate. the color gradient heatmap still works (and is improved 2 since the new map tiles). the problem on the page noted in the original post is that it asks the map tiles to be generated in a single specific color, thereby losing the color gradient.
here’s a tile with default gradient colors:
http://api.inaturalist.org/v1/heatmap/3/2/3.png 5
here’s the same tile with a single color applied:
http://api.inaturalist.org/v1/heatmap/3/2/3.png?color=%23FF4500
https://forum.inaturalist.org/t/open-test-of-map-tile-improvements/7833/87
ust a heads up. it looks like code has been checked in that should solve this problem:
https://github.com/inaturalist/inaturalist/commit/ec9f0dfeb7ea9b751a34050b32a6e2687eada724 1. it doesn’t look the change has actually been deployed to the masses yet, but maybe if you take a look in a week or so (?), the orange blur problem will be resolved…
The heatmap should be working again in production. Apologies for the mixup - some other recent changes to map styles affected this map. We should now be back to where we were a few weeks ago with the heatmap working with the newish styles (released with the grids change)
https://www.inaturalist.org/observations/map#2/0/0 This is all I’m doing. But it is very cumbersome, and not really what I need. My ideal solution would be a heatmap of different layers (with each layer representing whatever species I select)
yes, now the Best Way is the map?taxa= method. I’ve taken to keeping a list of maps in a text file that I occasionally open to do some cleaning:
Acrida:
https://www.inaturalist.org/taxa/map?taxa=321672,358062,211055,154223,119684,622618,154222 2
Actaea:
https://www.inaturalist.org/taxa/map?taxa=49870,63062,119813,158004,133005,116343 1
Arisaema:
https://www.inaturalist.org/taxa/map?taxa=50310,84261,639675,276487,509076,483983,471722,416184
Baccharis:
https://www.inaturalist.org/taxa/map?taxa=84813,57913,545873,159127,155045,75729
Cichorieae:
https://www.inaturalist.org/taxa/map?taxa=77940,75956,49328,121998,68553,53193,135226,128733
Cladonia:
https://www.inaturalist.org/taxa/map?taxa=119778,54607,217093,460246,322661,125632
Clethra:
https://www.inaturalist.org/taxa/map?taxa=160747,52867,430824
Clintonia:
https://www.inaturalist.org/taxa/map?taxa=53794,76401,118725,51647 1
Cnidoscolus:
https://www.inaturalist.org/taxa/map?taxa=160765,133074,81817,273715
Coptis:
https://www.inaturalist.org/taxa/map?taxa=126251,160861,76436,160862,870898,702412,789253,745699
Crassulaceae:
https://www.inaturalist.org/taxa/map?taxa=79023,55734,58102,78846,127597,208245
Crassulaceae:
https://www.inaturalist.org/taxa/map?taxa=79023,79026,58886,55734
Diervilla:
https://www.inaturalist.org/taxa/map?taxa=161898,67983,52758
Elephantopus:
https://www.inaturalist.org/taxa/map?taxa=152133,119609,126570,162267 1
Eriocaulaceae:
https://www.inaturalist.org/taxa/map?taxa=162557,169501,164402,69685,162556
Goodyera:
https://www.inaturalist.org/taxa/map?taxa=62406,50719,62366,62407
Haemodoraceae:
https://www.inaturalist.org/taxa/map?taxa=277340,204338,428252,416342,119345,118972
Leucothoe:
https://www.inaturalist.org/taxa/map?taxa=127488,164664,77720
Lonicera:
https://www.inaturalist.org/taxa/map?taxa=53416,58100,164765,117329,82664,126145 1
Maianthemum:
https://www.inaturalist.org/taxa/map?taxa=67748,50247,565359,63939
Mangrove:
https://www.inaturalist.org/taxa/map?taxa=62853,75723,60335
Nuphar:
https://www.inaturalist.org/taxa/map?taxa=82504,204164,78234,204367,549989,355651,821332
Nymphaea:
https://www.inaturalist.org/taxa/map?taxa=51119,78236,165750,62009,165754
Conopholis
https://www.inaturalist.org/taxa/map?taxa=59980,59983
Aphyllon
https://www.inaturalist.org/taxa/map?taxa=739040,802714,802543,809373,802494
Parthenium:
https://www.inaturalist.org/taxa/map?taxa=83893,126424
Phyllodoce:
https://www.inaturalist.org/taxa/map?taxa=52131,78560,166760,166759,126558,764711
Physocarpus:
https://www.inaturalist.org/taxa/map?taxa=129048,57249,166852,78578,149008 1
Rubus:
https://www.inaturalist.org/taxa/map?taxa=51646,62377,132855
Saururus
https://www.inaturalist.org/taxa/map?taxa=60742,452025
Scutellaria:
https://www.inaturalist.org/taxa/map?taxa=127045,287004,79017,57122
Symphoricarpos:
https://www.inaturalist.org/taxa/map?taxa=48523,169448,128838,53456,79292
Syngnathus:
https://www.inaturalist.org/taxa/map?taxa=146828,113583,179449,179451,118624,118625,117570,54538
Victoria:
https://www.inaturalist.org/taxa/map?taxa=345545,179027
Wyethia:
https://www.inaturalist.org/taxa/map?taxa=56987,50798,56988,60843
y chance that the new map tiles could do multiple colors (once you get zoomed in enough?)
https://www.inaturalist.org/taxa/map?taxa=321672,358062,211055,154223,119684,622618,154222 2
is great on the “dot” maps, but not on tiles.
https://api.inaturalist.org/v1/docs/#/Observation_Tiles
iNaturalist’s tiles are a little bit uglier in most cases (in my opinion), but they can be set to any color using the color parameter. GBIF’s tiles look a little better (in my opinion), and the polygon tilesets in particular offer lots of options for formatting, though there are fewer color options available.
here are 4 quick examples of observation tilesets for Diloma concameratum (Wavy Top) that i pulled up in ArcGIS Online over a dark basemap (each snapshot is preceded by the tileset URL i used for that layer):
https://api.gbif.org/v2/map/occurrence/density/{level}/{col}/{row}@1x.png?srs=EPSG:3857&style=orange.marker&taxonKey=5797922 8
https://forum.inaturalist.org/t/looking-for-inaturalist-observation-map-visualisation-suggestions/7322/11
ok… i’ve been coding a bit, and i’m at a point of diminishing returns for further coding, i think. i didn’t get to the point of producing a mapping interface, but the code is here (
https://github.com/jumear/stirfry/blob/gh-pages/iNat_UTFgrid_based_custom_density_map.html 2), and hopefully it’s relatively easy to understand and tinker with. you’re welcome to adapt it as you please.
here are some examples of different custom maps i created using the UTFgrids:
https://jumear.github.io/stirfry/iNat_UTFgrid_based_custom_density_map.html?example=1 8
https://jumear.github.io/stirfry/iNat_UTFgrid_based_custom_density_map.html?example=2 1
https://jumear.github.io/stirfry/iNat_UTFgrid_based_custom_density_map.html?example=3 2
https://jumear.github.io/stirfry/iNat_UTFgrid_based_custom_density_map.html?example=4 1
https://jumear.github.io/stirfry/iNat_UTFgrid_based_custom_density_map.html?example=5 2
https://jumear.github.io/stirfry/iNat_UTFgrid_based_custom_density_map.html?example=6 2
https://jumear.github.io/stirfry/iNat_UTFgrid_based_custom_density_map.html?example=7 1
https://jumear.github.io/stirfry/iNat_UTFgrid_based_custom_density_map.html?example=8 1
https://jumear.github.io/stirfry/iNat_UTFgrid_based_custom_density_map.html?example=9 4
UPDATE:
one last contribution here:
https://jumear.github.io/stirfry/iNat_UTFgrid_based_density_map_for_Leaflet.html 2
(code:
https://github.com/jumear/stirfry/blob/gh-pages/iNat_UTFgrid_based_density_map_for_Leaflet.html 1)
the previous examples were built in a static map viewer that i cobbled together. but this new example is built as an extension of Leaflet.js. so it might be easier to tinker with for those who are familiar with Leaflet.js, and this example is also easier for exploration since you can pan and zoom. the markers are also created a little differently here, in a way that is less resource intensive but is a little less flexible (tradeoffs).
ecause maps can be so variable, it would take a lot more code than i’m willing to do to create a proper front-end to allow people to really configure their own maps.
that said, the Leaflet-integrated version of the map does allow you to specify parameters in the URL that will filter down the results (just like you can in the iNaturalist Explore and Identify pages), and i just added the ability to pass in custom scale factors, too (which will allow you to customize scaling ranges).
for example, this gives you Rudbeckia amplexicaulis observations scaled from 0-5 observations per cell at 0 zoom, down to just 1 observation per cell at the highest zoom levels:
https://jumear.github.io/stirfry/iNat_UTFgrid_based_density_map_for_Leaflet.html?taxon_id=200073&scale_factor=5,4,3,2,2,1 4
or this will apply scaling for 0-5 observations per cell across all zoom levels:
https://jumear.github.io/stirfry/iNat_UTFgrid_based_density_map_for_Leaflet.html?taxon_id=200073&scale_factor=5 3
if you need advice on how to tinker with either of my examples, let me know what you’re trying to achieve.
they’re both just HTML files. so you can begin tinkering by doing the following:
click on the Github code link of the example that you’re interested in
just above the code on that page, there’s a Raw button. click that.
select and copy all the text.
open a code or plain text editor. (i just use Notepad in Windows.)
paste the code into the code/text editor, and then save the file as an .html file.
now find the newly saved file, and open it in your favorite internet browser just to make sure it’s working.
if the browser opened up the file okay, you can go back to your code/text editor and start editing. when you’re ready to see changes. just save the changes, and then reload the page in your browser.
i’ve been thinking about a 3rd version of this that could take filter parameters in a URL and generate a static map that might scale automatically, automatically set the map extent, and provide the option to generate a proper heatmap, based on parameters entered, but i probably won’t get to that any time soon.
Comentários
Adicionar um Comentário