Automated search for, and opening of an ‘unknown’ map service
A strange request, maybe but we are trying to automate the Add Layer function. Why? We have 600+ map services in our library and want to refine the list based on a spatial search on map service extent. We can successfully determine which map services are applicable for a location selected on a base map, but now having identified the map service to open, we need to connect to and open the map service.
We have tried using RunExternalCommand "AddMapLayerInteractive" <map service name>, to no avail.
So we're asking how do you automate the opening of a known map service at runtime that is not configured within the Site during design? Can this be done? Are we missing something obvious? Any guidance on this is appreciated.
-
Hi Alan,
I don't believe it's currently possible to add new map layers to your site through Workflow. However, you may find the following Code Gallery sample helpful - it demonstrates a custom Silverlight module that adds a few different types of services and feature layers to the map at runtime.
-Victoria
0 -
Victoria,
Thanks for the reply, unfortunately the IT environment we work in prevents us from adding custom code so we're restricted to what can be achieved via Workflows.
Alan
0
Please sign in to leave a comment.
Comments
2 comments