---
title: "Using own GEE scripts and own plots in GEE app and integrating collect earth"
url: "https://openforis.support/questions/3812/using-own-gee-scripts-and-own-plots-in-gee-app-and-integrating-collect-earth"
tags: ["collectearth"]
status: "answered"
score: 0
answer_count: 1
asked: "2023-09-03T13:58:41"
last_activity: "2023-09-07T17:37:03"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Using own GEE scripts and own plots in GEE app and integrating collect earth

Asked by sevvalbulut on 2023-09-03

Hello ,
I reviewed the existing codes (https://openforis.support/questions/2813/how-to-use-your-own-gee-script-in-the-gee-app-window#gsc.tab=0) and made some additions and created a new GEE app to be used by collect earth. And I integrate this new GEE App into my Collect Earth survey. Here is what I don't fully understand and want to ask: 

How should I integrate the points in my own plot? How can I get my new GEE app to zoom into points for each plot? 

I guess, I need to change something on line 51 of the code in the link. (https://code.earthengine.google.com/?scriptPath=users%2Fsanchezpauspro%2FApps%3ACollectEarthPlotAncillary  )

How should I create an input to the following part, what should I change. I don't understand the logic, if you can help me I would be very grateful.Thanks!


    var plotId = ui.url.get('plotId', 'Plot');
    
    var geoJson = ui.url.get('geoJson', 
    '{"type":"MultiLineString","coordinates":[[[-61.79819,17.624234],[-61.796098,17.624234],[-61.796098,17.622228],[-61.79819,17.622228],[-61.79819,17.624234]]]}'
    );
    var obj = JSON.parse(geoJson);
    var geometry = ee.Geometry( obj );
    
    script.processPlotInfo( geometry, startTime, endTime, lastYearToday, null, plotId  );


## Answer (score 0, by Open Foris on 2023-09-07)

Link: https://openforis.support/questions/3812/using-own-gee-scripts-and-own-plots-in-gee-app-and-integrating-collect-earth/3814

Dear user,
This is a pretty complex topic, we will contact you directly to get some more context information.
Excuse the late reply!
