Select to view content in your preferred language

Creating and saving to feature layer service

529
3
01-06-2023 10:57 PM
Aeseir
by
Frequent Contributor

I am trying to figure out if there is a way to dynamically create a feature layer on our arcgis online instance, and save features to this layer.

Scenario 1

User does a button click and it creates a dedicated feature service named FS_A with polygon/polyline/point layers.

Scenario 2

User creates a graphic and saves it as a feature in previously created feature layer service FS_A with all relevant meta data.

Scenario 3

User loads map, on load, it then loads feature service FS_A programmatically thus showing all the saved features on the map.

 

I've currently hacked this by generating Feature Layer locally, and storing "feature" data in local PostgreSQL, which then loads it to the layer.

 

0 Kudos
3 Replies
jauhari_mani
Regular Contributor

Hi Aeseir,

I also have the same issue.

But for the time being can you help me with how can I create feature layer locally from my local database through javascript sdk.

 

0 Kudos
Aeseir
by
Frequent Contributor

Send me link to your question and i'll have a look

0 Kudos
jauhari_mani
Regular Contributor

I tagged in your issue because I am also looking for the same solution But for the time being I wanted to know How you are storing data in your local machine and creating a feature layer locally.

0 Kudos