Dear Justine,
Thank you for your question. Could you please share your current script to check if we could incorporate the functionality?
Otherwise you may use your own script into Collect Earth as a GEE App.
Basically the process is as follows:
1. Create **Create your own GEE App to
App** that takes the plot as an argument
2. Reference **Reference the GEE App from your survey, survey**, so that it is used when the user clicks on a plot instead of the default one.
Sounds easy, do not get excited yet :
Create a GEE App to be used by Collect Earth
----------------------------------------
You need to have a script that "receives" the plot polygon and uses it to generate the windows with the Sentinel and Landsat imagery and graphs.
The best would be for you to review the current code.
The code for the script used by default is one ( it uses the new ui.url.get method ) is here : https://code.earthengine.google.com/?scriptPath=users%2Fsanchezpauspro%2FApps%3ACollectEarthPlotAncillary
The GEE App results on this once the script is published (see how the polygon is passed as a parameter): https://collectearth.users.earthengine.app/view/plot#geoJson={%22type%22:%22MultiLineString%22,%22coordinates%22:[[[100.0,%200.0],[101.0,%201.0]],[[102.0,2.0],[103.0,3.0]]]}
Here is how to publish apps if you haven’t done it before: https://developers.google.com/earth-engine/apps
The main script refers to this other script that actually does most of the work (using the *require* construct ): https://code.earthengine.google.com/?scriptPath=users%2Fcollectearth%2Fce_scripts%3Aframes_landsat_v4
The scripts are contained in this public repository: https://code.earthengine.google.com/?accept_repo=users/collectearth/ce_scripts
Integrate this new GEE App into your Collect Earth survey
----------------------------------------
Once you have published your script as a GEE App, say the result is https://myuser.users.earthengine.app/view/myapp
Then you need to link it to your survey. As this is a "newish" feature we have not incorporated the parameter yet in the GUI so you need to edit the *earth.properties* file inside the Collect Earth folder:
*C:\Users\YOUR USERNAME\AppData\Roaming\CollectEarth* ( remember AppData is a hidden folder so you need to activate the visualization of hidden folders in Windows [SEE HOW TO VIEW HIDDEN FOLDERS][1])
Where it says :
gee_app_url=https\://collectearth.users.earthengine.app/view/plot
change it to your URL and save the file:
gee_app_url=https\://myuser.users.earthengine.app/view/myapp
So now after you start Collect Earth again this new GEE App will be used.
We will add an easier way to configure this in the coming weeks.
Hope that the answer was not too difficult to follow.
Let us know if you have more doubt. Remember to always share your scripts so that is it is easier to support you.
[1]: https://support.microsoft.com/en-us/help/4028316/windows-view-hidden-files-and-folders-in-windows-10