简体   繁体   English

将其他创建的地图添加到我的网站谷歌地球引擎?

[英]Add map created from other to my website google earth engine?

I want to add this map to my website.我想 将此地图添加到我的网站。 Is it possible to do it?有可能做到吗?

One option is to make a free account with datapane ( https://datapane.com/ ) and use the geemap package ( https://geemap.org/ ) which has functions for turning a GEE layer into an interactive datapane object, which can then be imbedded in html.一种选择是使用 datapane ( https://datapane.com/ ) 创建一个免费帐户并使用 geemap 包 ( https://geemap.org/ ),它具有将 GEE 层转换为交互式 datapane 对象的功能,它然后可以嵌入到html中。

See here for a tutorial on using geemap to make an interactive datapane object: https://colab.research.google.com/github/giswqs/geemap/blob/master/examples/notebooks/24_publish_maps.ipynb有关使用 geemap 制作交互式数据窗格对象的教程,请参见此处: https ://colab.research.google.com/github/giswqs/geemap/blob/master/examples/notebooks/24_publish_maps.ipynb

Once the map has been created, the map widget will be in your datapane account along with a code snippet for imbedding in html!创建地图后,地图小部件将与嵌入 html 的代码片段一起出现在您的数据窗格帐户中!

I noticed that the link you sent is using GEE in the Java environment, so this answer would require you to engage with the Python API, however I have personally hosted interactive maps this way and it is fairly simple.我注意到您发送的链接是在 Java 环境中使用 GEE,所以这个答案需要您使用 Python API,但是我个人以这种方式托管交互式地图,它相当简单。 One caveat is that the maps will need to be re-updated every few days when the token expires.一个警告是,当令牌过期时,地图将需要每隔几天重新更新一次。

Google Earth Engine APP - build inside https://code.earthengine.google.com/ may provide a easy to build app environment but it has it's limitations, to make aplications that can do things like access external websites, api's or databases, the best way is building or own solution that uses GEE as Service to authenticate and make it possible do use GEE tools and functions together with external tools as you need. Google Earth Engine APP - 在https://code.earthengine.google.com/内构建可以提供一个易于构建的应用程序环境,但它有其局限性,可以制作可以访问外部网站、api 或数据库等操作的应用程序,最好的方法是构建或拥有使用 GEE 即服务进行身份验证的解决方案,并根据需要将 GEE 工具和功能与外部工具一起使用。 To Know how to config GEE as Service follow the example: https://youtu.be/W2F4z-mt7yc要了解如何将 GEE 配置为服务,请遵循以下示例: https ://youtu.be/W2F4z-mt7yc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM