<div dir="ltr"><div>Thanks Tim/Matt, <br></div><div><br></div><div>Right, the BOTH example is what I'm looking for. Great, didn't realize that adhoc would work! The use case is this WIP project <a href="https://github.com/ropensci/phylodiv">https://github.com/ropensci/phylodiv</a> where the idea is to let users quickly visualize biodiversity of taxa of a phylogeny (e.g., comparing clade A vs. B, species A vs. B, genus X vs. genus Y, etc.), and there's a lot more possible user questions I can handle if I can include multiple taxa in a map API query. So I think adhoc may be fast enough to give users that quick response they'd need for exploring many questions quickly (much faster than downloading full occurrence data, and just a bit slower than density maps).<br></div><div><br></div><div>Best, Scott<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 10, 2018 at 9:30 AM Matthew Blissett <<a href="mailto:mblissett@gbif.org">mblissett@gbif.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>A tile for the western hemisphere showing:</p>
<p>House sparrows:
<a class="m_6586184388744324465moz-txt-link-freetext" href="http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&style=purpleYellow-noborder.poly" target="_blank">http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&style=purpleYellow-noborder.poly</a></p>
<p>Mackrel:
<a class="m_6586184388744324465moz-txt-link-freetext" href="http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=8596&style=purpleYellow-noborder.poly" target="_blank">http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=8596&style=purpleYellow-noborder.poly</a></p>
<p>Both:
<a class="m_6586184388744324465moz-txt-link-freetext" href="http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&taxonKey=8596&style=purpleYellow-noborder.poly" target="_blank">http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&taxonKey=8596&style=purpleYellow-noborder.poly</a></p>
<p>I think the both example is what Scott's asking for, and it <a href="https://github.com/gbif/maps/blob/master/vectortile-server/src/main/java/org/gbif/maps/resource/Params.java#L69" target="_blank">isn't
supported</a>.</p>
<p>It <i>is</i> supported with an ad-hoc search, but these are
usually much slower:
<a class="m_6586184388744324465moz-txt-link-freetext" href="http://api.gbif.org/v2/map/occurrence/adhoc/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&taxonKey=8596&style=purpleYellow-noborder.poly" target="_blank">http://api.gbif.org/v2/map/occurrence/adhoc/0/0/0@1x.png?srs=EPSG:4326&bin=hex&taxonKey=5231190&taxonKey=8596&style=purpleYellow-noborder.poly</a><br>
</p>
<p>I've made an issue for it: <a class="m_6586184388744324465moz-txt-link-freetext" href="https://github.com/gbif/maps/issues/27" target="_blank">https://github.com/gbif/maps/issues/27</a>
since it's not the first time this has been requested. The
previous request was for different colours to be applied to each
taxon, which is more complicated and different to just adding
several taxa's occurrences together.</p>
<p>Cheers,</p>
<p>Matt</p></div><div text="#000000" bgcolor="#FFFFFF">
<div class="m_6586184388744324465moz-cite-prefix">On 10/08/18 17:31, Tim Robertson wrote:<br>
</div>
</div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite">
<div id="m_6586184388744324465compose-container" style="direction:ltr">
<span><span></span></span>
<div>
<div>
<div style="direction:ltr">I’m not sure if this went
unanswered but the API has supported that since the
beginning Scott.
</div>
<div><br>
</div>
<div style="direction:ltr">Or have I misunderstood
something? </div>
<div style="direction:ltr">In haste,</div>
<div style="direction:ltr">Tim</div>
</div>
<div><br>
</div>
<div class="m_6586184388744324465acompli_signature">Get <a href="https://aka.ms/o0ukef" target="_blank">Outlook
for iOS</a></div>
</div>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_6586184388744324465divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b>
API-users <a class="m_6586184388744324465moz-txt-link-rfc2396E" href="mailto:api-users-bounces@lists.gbif.org" target="_blank"><api-users-bounces@lists.gbif.org></a> on behalf
of Scott Chamberlain <a class="m_6586184388744324465moz-txt-link-rfc2396E" href="mailto:myrmecocystus@gmail.com" target="_blank"><myrmecocystus@gmail.com></a><br>
<b>Sent:</b> Friday, August 10, 2018 4:02:35 AM<br>
<b>To:</b> <a class="m_6586184388744324465moz-txt-link-abbreviated" href="mailto:api-users@lists.gbif.org" target="_blank">api-users@lists.gbif.org</a><br>
<b>Subject:</b> [API-users] Multiple taxonKey values with maps
API ?</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hello!</div>
<div><br>
</div>
<div>Are there any plans to allow passing any of the primary
parameters (taxonKey, datasetKey, country, publishingOrg,
publishingCountry) more than once. e.g.
<br>
</div>
<div><br>
</div>
<div>...?taxonKey=1&taxonKey=2</div>
<div><br>
</div>
<div>or comma separated. Perhaps up to some max number?<br>
</div>
<div><br>
</div>
<div>Or is there a good reason not to suppor that? Woud it
lead to jobs that run too long on your servers?<br>
</div>
<div><br>
</div>
<div>Thanks! Scott<br>
</div>
</div>
</div>
<br>
<fieldset class="m_6586184388744324465mimeAttachmentHeader"></fieldset>
<br>
</blockquote></div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite"><pre>_______________________________________________
API-users mailing list
<a class="m_6586184388744324465moz-txt-link-abbreviated" href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a>
<a class="m_6586184388744324465moz-txt-link-freetext" href="https://lists.gbif.org/mailman/listinfo/api-users" target="_blank">https://lists.gbif.org/mailman/listinfo/api-users</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
API-users mailing list<br>
<a href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a><br>
<a href="https://lists.gbif.org/mailman/listinfo/api-users" rel="noreferrer" target="_blank">https://lists.gbif.org/mailman/listinfo/api-users</a><br>
</blockquote></div>