Hello,
I would like to show Earth Map within my own website, is that possible? The idea would be to show Earth Map already focus on an area of interest and loading a couple of the Forestry layers.
Thanks!
Hello,
I would like to show Earth Map within my own website, is that possible? The idea would be to show Earth Map already focus on an area of interest and loading a couple of the Forestry layers.
Thanks!
Accepted answer
The easiest way to embed Earth Map into your own website would be to use the embed parameter in the URL. This allows the user to sign-in automatically as anonymous, making the interaction a bit easier.
You should first go into Earthmap.org and generate the best "view" with your Area of Interest, layers and even statistics that you want to show. Then you can just copy the URL from the browser window and add this to the end &embed=true
The URL would then look like this :
https://earthmap.org/?aoi=cd&boundary=nationalParks&feature=00040000000000001618**&embed=true**
Then you can use that URL inside an HTML IFrame (or however you prefer to do it). This is an example of a very simple HTML page with an iframe referencing Earth Map. EMBEDDED EARTH MAP IFRAME
This is the code
<html>
<table width="100%" height="100%" >
<tr><td>TEST Embedding in another HTML ( add the embed=true parameter in the URL)</td></tr>
<tr><td><iframe width="100%" height="100%" src=https://www.earthmap.org/?aoi=ao&boundary=level0&feature=union_result&layers=%7B%22RADDAlert%22%3A%7B%22opacity%22%3A1%2C%22date%22%3A2022%7D%2C%22IntactForestLandscapes%22%3A%7B%22opacity%22%3A1%7D%2C%22CanopyHeight%22%3A%7B%22opacity%22%3A1%2C%22date%22%3A2019%7D%7D&map=%7B%22center%22%3A%7B%22lat%22%3A-10.73660828494437%2C%22lng%22%3A17.38864279897685%7D%2C%22zoom%22%3A8%2C%22mapType%22%3A%22roadmap%22%7D&statisticsOpen=false&embed=true"/></td></tr>
<tr><td>FOOTER</td></tr>
</table>
</html>
UPDATE: If you want to pass your own Polygon (GeoJSON) to Earth Map for the statistics to be extracted for that area you need to use the polygon parameter. This is an example :

The GET parameters accepted by Earth Map URL are :
Accepted answer
Just to clarify, you need to add the polygon parameter in the URL if you want to send a polygon directly to Earth Map. the feature name will be shown on the statistics.
You can choose aoi=global if you don´t know where the polygon is or aoi=ISO CODE 2 country code if you know the country where the polygon is, like this one aoi=it (Italy)
Once you sign in you will be able to subscribe for any updates here