How to share Geocorext link for a location that contains the XY coordinates,
How to share Geocorext link for a location that contains the XY coordinates,
For example, in Google maps, the link includes information about the XY (or longitude\latitude) coordinates and thus when a link is shared it goes directly to that particular location. For instance, the link below will go to a specified location in the map
https://www.google.com/maps/@31.8954774,35.1949714,14z
is this doable in Geocortex?
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f2000000XbtA&feoid=Body&refid=0EMf2000000YAeI" _/_img_
0
-
Jama,
That is out-of-the-box functionality. Here is the syntax and two examples:
Syntax: ?center=x,y or ?center=x,y,wkid
http://MyServer.com/Html5Viewer/Index.html?center=-114.7993,30.9820,4326
http://MyServer.com/Html5Viewer/?viewer=base_app¢er=-114.7993,30.9820,4326
Cheers...Rick0 -
Dear Richard,
Thank you so much for your answer, but I am not sure why it doesn't work with me, unfortunitly it is luanched to unknown viewer. This is our Geocortex portal: http://geomolg.ps
I tried this URL "http://geomolg.ps/l5/Index.html?center=160000,170000" but it doesn't work. Attached
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000XdGU&feoid=Body&refid=0EMf2000000YAhg" _/_img_
What might be the issue here?
Best
Majdoleen
What might be the issue here?0 -
Hi Majdoleen,
I'm not sure if that documentation section is correct, I would have expected to see -
http://geomolg.ps/l5/Index.html?viewer=XYZ¢er=160000,170000
the viewer doesn't know which site/viewer to load. Please try your existing URL and add the parameters on the end.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Dear Wayne,
I tried this: http://geomolg.ps/L5/Index.html?configBase=http://geomolg.ps/Geocortex/Essentials/REST/sites/A3/viewers/V1/virtualdirectory/Resources/Config/Default?viewer=XYZ¢er=160000,170000
and I end with the same result as seen in my first screenshot above.
Do you have any idea or suggestion? and what might be the issue here?
Thank you in advance
Best
Majdoleen0 -
Dear Wayne and Richard,
I tried this and it works fine with me. we need to write the siteID.ViewerID and then the center:
http://geomolg.ps/l5/Index.html?viewer=A3.V1¢er=160000,170000
Thanks
Majdoleen0 -
In Google, the location information is embedded into the link AUTOMATICALLY. In Geocortex, we need to stick the XY information manually in the link!
Is there away to have the XY information automatically embedded in the Geocortex link?0 -
Majdoleen found it. The viewer tag points to the Viewer Site ID. I should have given these two examples on one of our public sites. The first URL uses the default extent and the second URL will be redirected to downtown Austin. Note that the second URL uses the WKID parameter as our apps use Windows Mercator 102100 projection for the basemap.
http://gis.lcra.org/Html5Viewer/index.html?viewer=ccn-cp
http://gis.lcra.org/Html5Viewer/index.html?viewer=ccn-cp¢er=-97.74754,30.26411,4326
Regards, Rick0 -
Hi Majdoleen,
Using your info, the correct URL would be -
http://geomolg.ps/L5/Index.html?viewer=V1¢er=160000,170000
but the URL - http://geomolg.ps/L5/Index.html?viewer=V1
does not load so you would need to look into why that URL is not loading. Check to see if the Global Unique ID is set to "V1", the help section is here - https://docs.geocortex.com/essentials/gvh/latest/admin-help/Default.htm#gvh/admin/mp/viewer-info-page-in-mp.htm
Regards,
Wayne0 -
Dear Wayne,
The correct URL is:http://geomolg.ps/l5/Index.html?viewer=A3.V1¢er=160000,170000.
We need to write the Site Id in addition to the viewer ID.
Thaanks
Majdoleen0 -
Hi Majdoleen,
I noticed your post after I posted mine. You would need to add the site name if the Global Unique ID is not populated. If you end up populating the Global Unique ID, you will need to adjust the URL as per my example.
Regards,Wayne
0 -
I got confused guys, here.
I need to click on a particular location to get a link with the XY coordinate embedded on it automatically, the same we do it in Google.
The generic link for our application is:
http://geomolg.ps/L5/index.html?viewer=A3.V1
What do you thing?
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000XdHh&feoid=Body&refid=0EMf2000000YAkL" _/_img_0 -
Hi All,
You can do this by follow the below steps:- Navigate to your site's viewer configuration folder. The file path should look something like this:
- Search for "shareOptions"
- Copy the below code, then save
{ "id": "copylink", "displayName": "Copy Map Link", "url": "javascript:prompt(\"Copy Map URL\",\"{ViewerUrl}\");e:preventDefault();", "iconUri": "Resources/Images/Icons/Toolbar/contact-24.png" }- Save your file
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000XdkK&feoid=Body&refid=0EMf2000000YC7z" _/_img_
Best,
Lubna0 -
Many thanks Lubna for the input.
It appears that the Geocortex needs to initialize (restart) as the link is clicked which will be taking much of time. Any ideas to avoid this?0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
14 Kommentare