Aller au contenu principal

Feature layer not clickable

Commentaires

3 commentaires

  • Gareth Evans

    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
  • William Walker

    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
  • William Walker

    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.