# Earth Engine Layers

{% hint style="danger" %}
Your MapHubs portal must first be configured to support Earth Engine, contact <support@maphubs.com> to confirm
{% endhint %}

{% hint style="warning" %}
You will need a Google Account with access to Google Earth Engine to create and view maps with Earth Engine layers in MapHubs, you can find information and request an account at <https://earthengine.google.com/>&#x20;

MapHubs is not affiliated with Google or Google Earth Engine. We use Google Earth Engine's  API to display information from your account in the web browser on your computer.
{% endhint %}

Start by [creating a new layer in MapHubs](https://help.maphubs.com/data/uploading-data#step-1-create-a-new-layer), then select the Earth Engine option

![Choose the Earth Engine option in MapHubs during layer creation](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LclzHZHJc8EqZXKzd44%2F-Lcm-8tyBlMYfDkuvvx8%2Fimage.png?alt=media\&token=41db7e2d-f45e-4e90-a617-13d8381568a5)

Find the image ID from Google Earth Engine, this can be an image from a catalog or from a saved asset in your account.&#x20;

{% hint style="warning" %}
Assets in your account map also need to be shared with team members inside Earth Engine, or stored within a shared project in Earth Engine
{% endhint %}

![Example Image ID from Earth Engine](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LclzHZHJc8EqZXKzd44%2F-Lcm-OrtCDiONtwzHDgf%2Fimage.png?alt=media\&token=6557f75c-6583-4e19-ab0e-0285c0ad988a)

Paste the image ID into the form on MapHubs.&#x20;

Optionally set the min and max zoom levels on the map. Restricting the minZoom, may be useful to prevent attempts to render global-scale maps that may be too taxing for Google Earth Engine. These settings are usually not needed

![Entering the Image ID into MapHubs](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LclzHZHJc8EqZXKzd44%2F-Lcm00XuTl8hs9hQLCr6%2Fimage.png?alt=media\&token=036796b3-8c44-4f66-9638-176001ce0939)

Enter the name, description and source information for the layer

![Enter the layer information ](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LclzHZHJc8EqZXKzd44%2F-Lcm0bndNUci2KYXuOkT%2Fimage.png?alt=media\&token=e575e49e-102d-4aaa-8e63-30f71dfa5e7a)

{% hint style="warning" %}
The first time you view a map with a Google Earth Engine layer it will request that you allow access to your Google account, specifically your Google Earth Engine data.
{% endhint %}

![Allow Google Account access](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LclzHZHJc8EqZXKzd44%2F-LclzZGX0jXrCKa0pNlE%2Fimage.png?alt=media\&token=f70badf6-690e-4429-8925-80f0a2cdd672)

![Confirm permission for MapHubs to access your Google Earth Engine Data](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LclzHZHJc8EqZXKzd44%2F-LclzgagNT1IAl2J_i-O%2Fimage.png?alt=media\&token=ce4044a1-9cf4-4d39-b229-8c54541a922b)

The layer will then display in the preview map. You may need to pan/zoom the map to the location of the imagery if it is not global.

{% hint style="info" %}
In this screen the color and label settings will have no effect since the data is coming from Earth Engine. You can change the legend design under the Advanced section.
{% endhint %}

Click complete to save your layer.

![Choosing a preview map location and saving your layer](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LclzHZHJc8EqZXKzd44%2F-Lclzuk7uUeBQcSMY1fd%2Fimage.png?alt=media\&token=60951620-1450-46fb-aa30-d1e4248312a1)
