Extent parameter in Geocortex Web URL
Is it possible to open a Geocortex Web viewer at a specific extent that is defined by an extent parameter in the url? I can open the source ESRI map by using the extent parameter in the URL, but if I include that parameter in my GVW url, the parameter is just ignored.
For the most part, users will just open the map and do what they need to do and look at the site locations that they need to. However, the users have asked if they can have a URL in their system of record that allows them to click a URL specific to each site location and have the map open and centered on the respective site.
I can easily generate the URL for each site, but I've yet to determine how best to utilize the URL using GVW.
For example, if I wanted to open the source ESRI map, the URL would be:
I would like to be able to do something like this for the GVW URL:
I have toyed with the idea of running a workflow at startup to zoom to the desired extent, but it still appears that the run at startup functionality is still not available in GW5, unless I'm missing that somewhere.
Any help is appreciated!
Brian
-
Hi Brian,
This functionality will be introduced in the 5.12, which will likely be available mid-April. Instead of using an extent or lat/long values, we will be using the center point of the map and the scale as the parameters.
On the Map component, you can configure a startup workflow through the Map Initialized even in the Events section.
Thanks, Stefan
0 -
Wonderful Stefan,
Thank you for the insight on the coming functionality, I look forward to that.
Thank you also for the insight on where to configure a startup workflow; that is much appreciated!
Brian
0 -
Also Brian - you can run a workflow on startup as well.
In Designer if you go to the Services tab in the component tree and open the App service you will find the hooks where you configure App Initializing and App Initialized workflows.
Alternatively if you go to the Services tab in the component tree and open the Launch Link Workflows service you can pre-configure a set of workflows you want to be able to access via at startup URL.
You generate the URLs using the Get Links dialog that is off the three-dot menu off of your Development / Test / Staging / Production app.
You'll end up with a URL that looks like this:
Lastly ... when you are looking for stuff don't forget to try Pinpoint Search in Designer. A search for Workflow will show you the Launch Link Workflows service and the Get Development Links as well.
Cheers!
Cam
p.s. In addition to the URL parameters in 5.12 there is also a simple interface for generating a 'sharing link' that includes the center point and map scale as well as capturing URL params for which basemap is selected and which layers are active.
0 -
Thanks @Cam Barnard? and @Stefan Schweigert? .
I was able to accomplish what I was looking to do with a workaround by calling a workflow at startup that does a feature query based on a dummy parameter that I can put in the URL, and then sets the map extent to the geometry of that query result.
I look forward to working with the center point and scale parameters in 5.12.
Thanks a ton guys!
0
Please sign in to leave a comment.
Comments
4 comments