Skip to main content

Embed a map from Geocortex into a website

Comments

9 comments

  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Permanently deleted user

    Many Thanks Mick,

    I'll try it and keep you posted

    0
  • Permanently deleted user
    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,

     

    Ahmad
    0
  • Permanently deleted user
    Hi Hani - Were you able to have any success with this?  We can't seem to find any non-google map examples currently.  
    0
  • Dan Giersz
    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

Please sign in to leave a comment.