Hoppa till huvudinnehållet

Add clickable graphic to the map

Kommentarer

2 kommentarer

  • Gareth Evans

    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
  • Berend Veldkamp

    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

Du måste logga in om du vill lämna en kommentar.