Is there an easier way to embed the Google Earth Engine (javascript) application in a web page without following the painful route presented by the Google EE demos ?
Earth Engine Code allows you to quickly and quickly develop a core GEE application. However, it will take me 10 times to embed the GEE application in the web page than was required for the GEE application.
All demo applications seem to require (a) using the Google App Engine , (b) transcoding the GEE application in Python, (c) using the jinja2 templating engine to link the python code to the web page, and (d) still some lingering javascript.
For example, in the Trendy Lights demo , the server.py App Engine server script runs everything, and it gets complicated quickly. (Even simpler demonstrations follow this route.)
When the user first downloads the application to his browser, their request is sent to the get () function in the MainHandler class of the framework we use, webapp2.
The get () function sends back the main web page (from index.html) along with the information that the browser must display on the Earth Engine map and the polygon identifiers to display on the map. This information is entered into the index.html template through a template engine called Jinja2, which puts information from the Python context into HTML to produce a custom browser.
javascript google-earth-engine
Biofloat
source share