Embed a map from Geocortex into a website
Is there a way to embed a map from my Geocortex Site into another website (Generate an HTML code for an extent-defined map that can be plugged in a web page to view an interactive map), as in the Google maps in the attached screenshot?
Thank you and Best Regards,
Hani
/customer/servlet/servlet.FileDownload?file=00P6000000em1bvEAA
/customer/servlet/servlet.FileDownload?file=00P6000000em173EAA
-
Hi Hani,
We have used an iFrame to do this for both SL and HTML5 viewers. Add the code below into your HTML page and change width and height to fit your needs
<iframe src="{yourURL}" width="80%" height="80%"></iframe>
For Silverlight maps you can add '&extent=mixX,minY,maxX,maxY' to the end of your url to zoom into a particular extent if you are using the same map elsewhere at different extent. However, I don't know if that works for HTML5 though
Hope this helps.
Mick
0 -
I’m not sure if the “share current map” can be of help. I never tried to embed it in other web site
/customer/servlet/servlet.FileDownload?file=00P6000000elzgXEAQ
Let me know if it works!
0 -
Thank you Mick for your prompt response,
I tried your solution and it worked fine with Silverlight (an interactive map with defined extents).
With HTML5 viewer, adding the extents to the map did not work.
In my case, I need to embed a map with defined extents from an HTML5 viewer since the clients who access my website do not need to install plugins (Silverlight plugin) to view the map.
0 -
Thanks Jamal for your interest,
What I want is to embed the map in a web page so it becomes an element of the page, which previews an interactive map with a defined extent (this is done by inserting a block of HTML code in the page source code); your suggestion shares a link of a map with a defined extent but cannot be plugged in an html page.
0 -
Just looking into setting the extent for a HTML5 viewer. You can set the extent using a workflow, and then adding 'runWorkflow={workflowname}. Then that can go inside your iFrame.
check out this thread for more info.
https://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=9&thread=55654
0 -
Many Thanks Mick,
I'll try it and keep you posted
0 -
Hello guys,
I was trying to embed a map from Geocortex into a website, the URL of the site is copied then pasted as shown in the screenshots, but the viewer (Silverlight/HTML5) did not appear in the farm.
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XZuf&feoid=Body&refid=0EM60000000XqT1" _/_img_
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XZuf&feoid=Body&refid=0EM60000000XqT6" _/_img_
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XZuf&feoid=Body&refid=0EM60000000XqTB" _/_img_
Best regards,
Ahmad0 -
Hi Hani - Were you able to have any success with this? We can't seem to find any non-google map examples currently. 0 -
The admin guide for HTML5 has a section on embedding the viewer.
And the Citizen Service Request Demo in the code gallery shows how to embed a custom configuration (if you just wanted a basic map and not the full viewer).0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
9 Kommentare