<div dir="ltr"><div>Hi, Matt!</div><div><br></div><div>Of course! I just blindly copied the example provided, without noticing that the coordinates were missing...</div><div><br></div><div>Sorry for the trouble.</div><div><br></div><div>Thanks a lot.</div><div><br></div><div>With warmest regards,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sex., 28 de jul. de 2023 às 13:24, Matthew Blissett via API-users <<a href="mailto:api-users@lists.gbif.org">api-users@lists.gbif.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Dear Mauro,</p>
<p>You need to replace the {z}/{x}/{y} with coordinates of a tile on
the map, for example 0/0/0:</p>
<p><a href="https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?taxonKey=212&bin=hex&hexPerTile=30&style=classic-noborder.poly" target="_blank">https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?taxonKey=212&bin=hex&hexPerTile=30&style=classic-noborder.poly</a></p>
<p>Depending what software or libraries you are using (if any), you
can probably find further information by searching for "tile maps"
or "slippy maps". Open Street Map have examples for calculating
the required tile(s) for a given location:
<a href="https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames" target="_blank">https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames</a></p>
<p>Best,</p>
<p>Matt Blissett<br>
</p>
<div>On 28/07/2023 16:38, Mauro Cavalcanti
via API-users wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Dear ALL,</div>
<div><br>
</div>
<div>I have been trying the Maps API (<a href="https://www.gbif.org/developer/maps" target="_blank">https://www.gbif.org/developer/maps</a>),
but when attempting to run one of the demos at <code><a href="https://api.gbif.org/v2/map/occurrence/density/%7Bz%7D/%7Bx%7D/%7By%7D@1x.png?taxonKey=212&bin=hex&hexPerTile=30&style=classic-noborder.poly" target="_blank">https://api.gbif.org/v2/map/occurrence/density/{z}/{x}/{y}@1x.png?taxonKey=212&bin=hex&hexPerTile=30&style=classic-noborder.poly</a></code>
<br>
</div>
<div><br>
</div>
<div>I keep getting back an empty ("400") image. What may be the
problem?</div>
<div><br>
</div>
<div>Thanks in advance for any assistance you can provide.<br>
</div>
<div><br>
</div>
<div>With warmest regards,<br>
</div>
<div><br>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">Dr. Mauro J. Cavalcanti<br>
E-mail: <a href="mailto:maurobio@gmail.com" target="_blank">maurobio@gmail.com</a><br>
Web: <a href="https://github.com/maurobio" target="_blank">https://github.com/maurobio</a><br>
"Life is complex. It consists of real and imaginary
parts."</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
API-users mailing list
<a href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a>
<a href="https://lists.gbif.org/mailman/listinfo/api-users" target="_blank">https://lists.gbif.org/mailman/listinfo/api-users</a>
</pre>
</blockquote>
</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><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Dr. Mauro J. Cavalcanti<br>E-mail: <a href="mailto:maurobio@gmail.com" target="_blank">maurobio@gmail.com</a><br>Web: <a href="https://github.com/maurobio" target="_blank">https://github.com/maurobio</a><br>"Life is complex. It consists of real and imaginary parts."</div></div>