<div dir="ltr"><div>Hi Matt, <br></div><div><br></div><div>Thanks for this. I'll try combining multiple layers in a map. <br></div><div><br></div><div>Best, Scott<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 13, 2018 at 2:04 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>I tried simply concatenating vector tiles, this is supported by
the protocol but only works if the layers have different names.
The layer for these tiles is always "occurrence", so it doesn't
quite work.</p>
<p><a class="m_-8343343626773962509moz-txt-link-freetext" href="https://labs.gbif.org/~mblissett/2018/08/concatenate-vector-tiles/" target="_blank">https://labs.gbif.org/~mblissett/2018/08/concatenate-vector-tiles/</a>
has a hack to make this work, but it's probably just as easy to
add multiple layers to a map.</p>
<p>Matt<br>
</p></div><div text="#000000" bgcolor="#FFFFFF">
<br>
<div class="m_-8343343626773962509moz-cite-prefix">On 11/08/18 16:25, Scott Chamberlain
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Okay, sounds good, I will not use them. <br>
</div>
<div><br>
</div>
<div>Best, Scott<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Sat, Aug 11, 2018 at 3:57 AM Tim Robertson
<<a href="mailto:trobertson@gbif.org" target="_blank">trobertson@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 bgcolor="white" link="blue" vlink="purple" lang="EN-GB">
<div class="m_-8343343626773962509m_8903784357154925519WordSection1">
<p class="MsoNormal"><span>I’d advise against using the
“adhoc” maps. They are incredibly slow and anything
beyond small load really causes issue. A loop within
an R script will likely kill the server.</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>We are exploring alternatives
(elasticsearch based) but it will be a while before
ready.</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>Thanks</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span> </span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">API-users <<a href="mailto:api-users-bounces@lists.gbif.org" target="_blank">api-users-bounces@lists.gbif.org</a>>
on behalf of Scott Chamberlain <<a href="mailto:scott@ropensci.org" target="_blank">scott@ropensci.org</a>><br>
<b>Date: </b>Saturday, 11 August 2018 at 11.08<br>
<b>To: </b>Matthew Blissett <<a href="mailto:mblissett@gbif.org" target="_blank">mblissett@gbif.org</a>><br>
<b>Cc: </b>"<a href="mailto:api-users@lists.gbif.org" target="_blank">api-users@lists.gbif.org</a>"
<<a href="mailto:api-users@lists.gbif.org" target="_blank">api-users@lists.gbif.org</a>><br>
<b>Subject: </b>Re: [API-users] Multiple taxonKey
values with maps API ?</span></p>
</div>
</div>
</div>
<div bgcolor="white" link="blue" vlink="purple" lang="EN-GB">
<div class="m_-8343343626773962509m_8903784357154925519WordSection1">
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<div>
<p class="MsoNormal">Thanks Tim/Matt, </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">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" target="_blank">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).</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Best, Scott</p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On Fri, Aug 10, 2018 at 9:30 AM
Matthew Blissett <<a href="mailto:mblissett@gbif.org" target="_blank">mblissett@gbif.org</a>>
wrote:</p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p>Hi,</p>
<p>A tile for the western hemisphere showing:</p>
<p>House sparrows: <a 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 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 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 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></p>
<p>I've made an issue for it: <a 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>
<div>
<p class="MsoNormal">On 10/08/18 17:31, Tim
Robertson wrote:</p>
</div>
</div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div id="m_-8343343626773962509m_8903784357154925519m_6586184388744324465compose-container">
<div>
<div>
<div>
<p class="MsoNormal">I’m not sure if this
went unanswered but the API has
supported that since the beginning
Scott.
</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Or have I
misunderstood something? </p>
</div>
<div>
<p class="MsoNormal">In haste,</p>
</div>
<div>
<p class="MsoNormal">Tim</p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Get <a href="https://aka.ms/o0ukef" target="_blank">Outlook
for iOS</a></p>
</div>
</div>
</div>
<div class="MsoNormal" style="text-align:center" align="center">
<hr size="2" align="center" width="98%">
</div>
<div id="m_-8343343626773962509m_8903784357154925519m_6586184388744324465divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> API-users
<a href="mailto:api-users-bounces@lists.gbif.org" target="_blank"><api-users-bounces@lists.gbif.org></a>
on behalf of Scott Chamberlain
<a 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 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 ?</span> </p>
<div>
<p class="MsoNormal"> </p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Hello!</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Are there any plans to
allow passing any of the primary
parameters (taxonKey, datasetKey, country,
publishingOrg, publishingCountry) more
than once. e.g.
</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">...?taxonKey=1&taxonKey=2</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">or comma separated.
Perhaps up to some max number?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Or is there a good
reason not to suppor that? Woud it lead to
jobs that run too long on your servers?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Thanks! Scott</p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br>
</p>
</blockquote>
</div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>_______________________________________________</pre>
<pre>API-users mailing list</pre>
<pre><a href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a></pre>
<pre><a href="https://lists.gbif.org/mailman/listinfo/api-users" target="_blank">https://lists.gbif.org/mailman/listinfo/api-users</a></pre>
</blockquote>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal">_______________________________________________<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" target="_blank">https://lists.gbif.org/mailman/listinfo/api-users</a></p>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div></blockquote></div>