Zum Hauptinhalt gehen

Draggable Graphic/Marker

Kommentare

7 Kommentare

  • Permanently deleted user

    Anyone?

    0
  • Permanently deleted user

    Good morning Steve

    I will interpret you describe hopefully as you meant.

    Yes, you can run a workflow on startup that takes supplied parameters and then adds them as a point graphic.

    That point graphic is able to be edited by the user ie dragged to a new location (using Drawing Tools in Tasks toolbar tab)

    Another workflow could be written that takes such a point (or even points ) and add them to a published feature service with whatever attributes that you wish to capture including the opportunity for the user to specify those attribute values if required..

    Hope that helps

    Ralph

    PS maybe you would do well to describe the business case that ou are trying to solve and you might find that someone already has organised it.

    0
  • Permanently deleted user

    Ralph - thank you very much for the reply.

    That's exactly what I'm looking for:

    1. Grab an URL parameter (ID in this case) that is being passed to Geocortex from ASP.NET application.
    2. Query/filter map service based on retrieved above ID and place a graphic on map.
    3. Allow user to edit graphic location by  dragging/moving it to new position.
    4. Save graphic's last position (lat/lng pair) in editable feature service back to SQL server database. 

     

    Sorry if I didn't explain my goals better. I'm not a GIS person/developer but a system/web server administrator and educating myself on GIS as I go.

    Thanks again.

     

    -Steve

     

    0
  • Permanently deleted user

    Hi Ralph,

    Could you please tell me how to using the Drawing toolbar to edit graphics adding from workflow? as the screenshot the edtiing buttons are greyed out. Thanks.

    /customer/servlet/servlet.FileDownload?file=00P6000000em1CgEAI

    0
  • Permanently deleted user

    Hi Jack

    the problem may lie with the drawing layer that you have added your Graphics to being called My Drawings.

    I added a graphic point just now and it was added to a layer call Drawings.

    What External Command did you use to add the markup?

    Can you try using AddTemporaryMarkupGeometry which is supposed to Adds the given geometry to the temporary markup layer.

    Regards

    Ralph

     

    0
  • Permanently deleted user

    Hi Ralph,

    Thank you very much!! Tried your suggestion I got it working! However, in my founding AddTemporaryMarkupGeometry doesn't add the graphic to "Drawings", but AddMarkupGeometry does, and all the editing buttons working OK. This also helped me figure out what's the difference between AddTemporaryMarkupGeometry and AddMarkupGeometry...

    I was using the UpdateGraphicLayer tool in workflow, in which I can specify the Graphic layer ID/Name. I was assign the Graphic layer ID = "Drawings" in order to add the graphics to the specific graphic layer in order to edit, but it gives me all sorts of weird behaviour in Silverlight Viewer, though works all good in HTML5.

    Much appreicated!

    Jack

    0
  • Permanently deleted user

    Glad you got it sorted

    regards

    Ralph

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.