<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Dear Mauro,</p>
<p>I'm afraid this isn't possible in a single API call. You need
two calls, one for the land/sea basemap, and another for the
occurrences:</p>
<p><a class="moz-txt-link-freetext" href="https://tile.gbif.org/3875/omt/0/0/0@1x.png?style=gbif-classic">https://tile.gbif.org/3875/omt/0/0/0@1x.png?style=gbif-classic</a><br>
</p>
<p><a class="moz-txt-link-freetext" href="https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?taxonKey=2974832">https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?taxonKey=2974832</a></p>
<p>This can be done in static HTML but it requires an inline CSS
property:<br>
</p>
<pre id="line1"><span><<span class="start-tag">img </span><span class="attribute-name">style</span>="<a class="attribute-value">background-image: url(https://tile.gbif.org/3875/omt/0/0/0@1x.png?style=gbif-classic);</a>"
<span id="line476"></span> <span class="attribute-name">src</span>="<a class="attribute-value">https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png</a>?taxonKey=2974832" ></span><span></span><span></span></pre>
<p></p>
<p>I hope that helps,</p>
<p>Matt<br>
</p>
<div class="moz-cite-prefix">On 28/07/2023 22:07, Mauro Cavalcanti
via API-users wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAC1JhZYa3KqUvXGW+9UgPVVC1SmT-BaRDcqcsk=TOxcUvGnP=g@mail.gmail.com">
<div dir="ltr">
<div>Dear ALL,</div>
<div><br>
</div>
<div>I have already spent some hours now attempting to generate
simple distribution maps using the GBIF 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>).</div>
<div><br>
</div>
<div>I have seen the base map examples (<a href="https://tile.gbif.org/ui/" moz-do-not-send="true" class="moz-txt-link-freetext">https://tile.gbif.org/ui/</a>)
and the raster style demos (<a href="https://api.gbif.org/v2/map/demo.html" moz-do-not-send="true" class="moz-txt-link-freetext">https://api.gbif.org/v2/map/demo.html</a>),
but could not understand how I could get just a simple
distribution map, overlaid on a base map in Mercator
projection and 'classic' GBIF style, as a PNG (or JPEG) image,
<b>with a single API call</b> (that is, without css,
javascript, etc.). Is this possible?</div>
<div><br>
</div>
<div>Thanks in advance!</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>