Feature layer not clickable
Hi all,
I have created a workflow that gets data from an API via a web request, creates a feature layer and adds it to a map. The points are showing in the map but are not clickable and the layer does not get added to the layer list. Any ideas?
Thanks!
-
Hey William Walker, thanks for reaching out!
It sounds like you're making great progress with your workflow. To help pinpoint the issue, could you clarify how you’re creating your feature layer? Are you using the Create Feature activity? If so, are you adding it to an existing layer? I am inferring you are looking to create a new layer client-side though wanted to be certain.
Additionally, if your intent is to have the layer appear in the layer list, you might need to use the map.add-layers Command. This command allows you to add your layer to the map explicitly by using a layer definition object.
For a more detailed guide on working with feature sets and setting component values, check out these resources:
Let me know if you’re still running into issues or need further clarification. Happy to help!
0 -
Hi,
Yes I am trying to create a new client side layer using Get Symbol From Json, Create Feature, Create Feature Set and Add Feature Layer. I have just noticed a mistake in my workflow, I had an Add Graphics activity which was creating the points on the map. Now that I have removed that I no longer have points on the map. I can see in the log that the feature set contains the features but the feature layer is not working (is undefined), I do not get any errors in the log.
I have also tried to create the feature set manually using a Create Value activity containing json, that also looked ok in the log but the create feature layer gave the same result as above.0 -
Hi again,
I have solved this, I was trying to create the geometry of the points by inserting the coordinates directly into the json, I replaced this with a Create Point activity and used the geometry from that in the Create Feature activity. The layer is now showing in the map and legend and is now clickable.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires