Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 65
Registered: ‎11-20-2015
Accepted Solution

Missing parameters for PublicMaps integration

Hi!

 

I'm integrating PublicMaps in my own page and there are a few parameters I can set:

baseUrl, site, project, language, hasFullTextSearch, hasNavigation, hasMapViewSwitch, hasShare

 

What I am definitely missing are parameters for

Center X and Y

ZoomLevel

MapViewId

 

Does anyone know, if those parameters are available (just not documented)?

 

regards

Wolfgang

Technical Evangelist
Posts: 927
Registered: ‎09-11-2015

Re: Missing parameters for PublicMaps integration

Hi Wolfgang,

 

By integration do you mean a web site out of Workflows scope? Then you should be able to set IFrame with URL like this:

http://yourServerName/ApplicationName/PathToPublicMaps/SiteName/ProjectName/#MapID/MapCenter(x)/MapCenter(y)/zoomlevel

 

When used in FormMapView then I guess you can use parameters zoomLevel (by default taken from the project settings), center. and mapview

 

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Contributor
Posts: 65
Registered: ‎11-20-2015

Re: Missing parameters for PublicMaps integration

I do not have an IFrame.

I'm using the official way described in the video at AddPublicMaps

In the video at 2:27 there is the Javascript I am using.

 

regards

Wolfgang

Technical Evangelist
Posts: 927
Registered: ‎09-11-2015

Re: Missing parameters for PublicMaps integration

I have digged into C:\Program Files\Intergraph\GeoMedia SmartClient\Program\Workflows\Content\Scripts\publicmaps\ig.publicmaps.workflows.js

 

 

...and found this configuration options for the IG.PublicMaps.Map() function:

var defaultPublicMapsConfig = {
    defaultMapViewId: undefined,
    center: undefined,
    zoomLevel: undefined,
    applyAfterInit: true,
    afterInit: function () { },
    poiInfoConfig: {},
    hasFullTextSearch: false,
    fullTextSearchConfig: { /* default config */ },
    hasNavigation: false,
    navigationConfig: { /* default config */    },
    hasMapViewSwitch: false,
    mapViewSwitchConfig: {  /* default config */},
    hasShare: false,
    shareConfig: {  /* default config */ },
    hasUrlRouting: true,
    notificationConfig: {  /* default config */ }
};

So the required parameters are there and default values are not defined, you can provide yours.

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Highlighted
Contributor
Posts: 65
Registered: ‎11-20-2015

Re: Missing parameters for PublicMaps integration

Thanks for the hint.

 

For the center you have to provide an object like:

var mycenter = new Object();
mycenter.x = 75000;
mycenter.y = 167500;

 

Wolfgang

pb
New Contributor
Posts: 2
Registered: ‎05-22-2017

Re: Missing parameters for PublicMaps integration

or inline as: 

 

center:{x:1570591,y:5180206},

pb
New Contributor
Posts: 2
Registered: ‎05-22-2017

Re: Missing parameters for PublicMaps integration

There is also a map view property to set the particular map to show.

Useful when hasMapViewSwitch is set to false

 

mapview:'YourMapNameHere',

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.