Draggable Graphic/Marker
Hi,
I'm currently evaluating Geocortex Essentials for possible purchase, for integration with ASP.NET application.
As I'm new to Workflow Designer and my knowledge of it is nil, I'd like to ask experts if it's possible at all to create a draggable graphic/marker in Essentials, using Workflow Designer?
I couldn’t find anything on forum threads but here's Google Maps API example of what I'm looking for: https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/draggable-markers/draggable-markers.html?r=49
Essentials application would need to retrieve URL parameter, query map service based on URL parameter, allow user to drag graphic/marker and generate current lat/lng position on drop event, and finally save to SQL database. I managed to get workflow run on load and retrieve URL parameter, and working on query part but have no idea if draggable graphic functionality is even possible.
Any clarifications/ideas would be greatly appreciated. Thank you.
- Steve
-
Anyone?
0 -
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 -
Ralph - thank you very much for the reply.
That's exactly what I'm looking for:
- Grab an URL parameter (ID in this case) that is being passed to Geocortex from ASP.NET application.
- Query/filter map service based on retrieved above ID and place a graphic on map.
- Allow user to edit graphic location by dragging/moving it to new position.
- 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 -
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 -
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 -
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 -
Glad you got it sorted
regards
Ralph
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
7 Kommentare