Add clickable graphic to the map
Say I have a workflow where a feature with attributes is created, and that feature is added to the map using the Add Graphics activity.
Is it possible to add the feature in a way so that a user can later identify it? The feature is not associated with a layer.
-
Hi Berend Veldkamp no, I believe you must add your feature to an ArcGIS Server backed feature service.
See the Maps SDK for JS on identify: “Performs an identify operation on the layers of a map service exposed by the ArcGIS Server REST API.” From that, I infer it is only map service layers and not the graphics layer.
See also GraphicsLayer where they mention “It is generally preferred to construct a FeatureLayer with its source property when working with client-side graphics since the FeatureLayer has more capabilities than the GraphicsLayer, including rendering, querying, and labeling.”
I would suggest you make a Feature layer, even a dummy one, to throw your feature in. Another thought there is if this is an un-authenticated context you could allow public editing on your dummy layer.
0 -
Hi @...
I'm not sure if that's going to work for us. None of the users for this viewer have an Editor license, so storing features is not an option here.
I'm not sure if we can use Add Graphics in a workflow to add the features to a dummy layer client-side only? Would an Identify work in that case?
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare