Hoppa till huvudinnehållet

Display Create Point result as graphic

Kommentarer

2 kommentarer

  • Amanda Frech

    Hi Adrian,

     

    if the user is specifying the spatial reference, they could be inputting points that are in a different projection than the viewer/app. You'll probably want to include a Project Geometry activity to convert the created point to the viewer/app's spatial reference (ie, 102100 if your basemap is in Web Mercator).

     

    It sounds like you might also be missing these two steps, which would go before Add Graphics Layer Features:

    • Get Symbol From JSON
    • Create Feature

     

    As it is, your workflow might be adding a point to the map that doesn't have any symbol information. We can use these two activities to create a point symbol, and then combine the geometry and symbol together into a feature to use in the Add Graphics Layer Features activity.

     

    If you're not familiar with JSON symbols/renderers, here's one that will work for points:

    ={ "color": [255,255,255,64], "size": 12, "angle": -30, "xoffset": 0, "yoffset": 0, "type": "esriSMS", "style": "esriSMSCircle", "outline": { "color": [0,0,0,255], "width": 1, "type": "esriSLS", "style": "esriSLSSolid" } }

     

    0
  • Permanently deleted user

    Hi Amanda,

     

    thanks for the super fast reply :).

    I played a little bit with spatial references and could get any results so I changed my flowchart from:

    create point >> add graphic layer features

    to:

    create point >> symbol from json >> create feature >> add graphic layer features.

    now this works fine.

     

    Best Regards.

    Adrian

    0

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