<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <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 class="moz-txt-link-freetext" href="https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?taxonKey=212&bin=hex&hexPerTile=30&style=classic-noborder.poly">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 class="moz-txt-link-freetext" href="https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames">https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames</a></p>
    <p>Best,</p>
    <p>Matt Blissett<br>
    </p>
    <div class="moz-cite-prefix">On 28/07/2023 16:38, Mauro Cavalcanti
      via API-users wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAC1JhZY8vwbu1uwPCV-3-W3PRBSscw=kaNaKtiuBPhDTYgmemA@mail.gmail.com">
      
      <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" moz-do-not-send="true" class="moz-txt-link-freetext">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/{z}/{x}/{y}@1x.png?taxonKey=212&bin=hex&hexPerTile=30&style=classic-noborder.poly" moz-do-not-send="true">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" data-smartmail="gmail_signature">
            <div dir="ltr">Dr. Mauro J. Cavalcanti<br>
              E-mail: <a href="mailto:maurobio@gmail.com" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">maurobio@gmail.com</a><br>
              Web: <a href="https://github.com/maurobio" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/maurobio</a><br>
              "Life is complex. It consists of real and imaginary
              parts."</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
API-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:API-users@lists.gbif.org">API-users@lists.gbif.org</a>
<a class="moz-txt-link-freetext" href="https://lists.gbif.org/mailman/listinfo/api-users">https://lists.gbif.org/mailman/listinfo/api-users</a>
</pre>
    </blockquote>
  </body>
</html>