Developers Knowledge Base

Learn how to manipulate, modify, and tune your GeoMedia WebMap, Geospatial Portal and Consumer portal instances.
Showing results for 
Search instead for 
Do you mean 

Embedding Geospatial Portal

by Technical Evangelist on ‎09-09-2015 04:08 AM - edited on ‎04-06-2017 07:11 AM by Technical Evangelist (633 Views)


Portal can be easily embedded in a popup with keeping the communication between the popup and the parent window:

Example below creates popup window with Portal and synchronizes map between parent window and the popup. Of course it is easy to make a portal popup from any other application or page.

var spec="width=640,height=480,toolbar=no,status=no",
    popupname = "portal2",
    url = "Map.aspx";

// execute code when popup.$GP is available
function run (popup, fn) {
    if (popup.$GP) {, window, popup);
    } else {
        popup.onload = function () {
  , window, popup);

var popup =, popupname, spec, true);

run(popup, function (parent, child) {
    // fiddle with child $GP settings
        showNavigator: false,
        showCoords: false,
        showScale: false
    // synchronize parent with child
        handler: function () {            


And how does it look like?



Examples.aspx contain two examples that concern embedding portal in an iframe element.

Main concern when embedding portal in an iframe is communication between the hosting page and the portal. Fortunately both examples demonstrate how to perform that.


Evaluation of FeatureInfo on the hosting page

This example evaluates results of the feature info operation into a table within hosting page.

Take a look at the source code of \"Embedding01.htm\"



Synchronizing two portals

This example demonstrate how to embed more than 1 portal.

Take a look at the source code of \"Embedding02.htm\"