Hexagon Geospatial

GeoMedia Smart Client

GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client. Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.
Showing results for 
Search instead for 
Do you mean 
Frequent Contributor
Posts: 81
Registered: ‎09-18-2018
Accepted Solution

GMSC 2015 : Standalone Workflow with FormMapViewer : property 'getCenterLonLat' of undefined or nul



I'm using GMSC 2015 and please consider my workflow with the following  FormMapviewer element:


<?xml version="1.0" encoding="UTF-8" ?>
<FormList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../XSD/Forms/FormSettings.xsd">
<Form name="EnquireForm" table="TBL_NAME" idfield="H_id"> <FormTab name="EnquireTab" label="Details"> <FormGroup name="EnquireGroup" label="Enquire Details"> <FormField name="H_id" datatype="number" visible="hidden"></FormField> <FormSingleRow name="FirstName" template="FormSingleRowMiddleTemplate"> <FormField name="LastName" visible="form"></FormField> <FormField name="Comments" type="textfield" visible="form"> </FormField></FormSingleRow> </FormGroup> <FormGroup name="MapGroup" label="Public Maps"> <FormMapViewer name="MapViewer" label=" " baseurl="http://serverurl/GMSC/Public/" site="GMSC" project="my_project"> <FormAction name="SetEnquire" label="Set Event Position" action="SCRIPT[IG.getItemById('MapViewer').activatePointDraw()]" /> </FormMapViewer> </FormGroup> </FormTab>
<FormAction name="Cancel" label="Cancel" action="abort" visible="form" /> <FormAction name="Save" action="SCRIPT[IG.getItemById('MapViewer').saveGeometry().done(function(){IG.navigate();})]" visible="form" /> </Form> </FormList>

On webbrowser:
(Please check the attached picture)


ig.publicmaps.workflows.js:1612 Uncaught TypeError: Cannot read property 'getCenterLonLat' of null
at initialize.moveTo (ig.publicmaps.workflows.js:1612)
at initialize.setCenter (ig.publicmaps.workflows.js:1612)
at read (ig.publicmaps.workflows.js:1776)
at evaluateImmediate (knockout-2.2.0.js:1235)
at Object.ko.dependentObservable (knockout-2.2.0.js:1312)
at init (ig.publicmaps.workflows.js:1749)
at ko.dependentObservable.disposeWhenNodeIsRemoved (knockout-2.2.0.js:2074)
at evaluateImmediate (knockout-2.2.0.js:1235)
at Object.ko.dependentObservable (knockout-2.2.0.js:1312)
at applyBindingsToNodeInternal (knockout-2.2.0.js:2045)


Do you know if I am missing something here? 




Posts: 1,036
Registered: ‎10-18-2015

Re: GMSC 2015 : Standalone Workflow with FormMapViewer : property 'getCenterLonLat' of undefined or



are you able to load Public Maps on a separated browser window? It looks like your map is not correctly rendered.



Stefano Turcato
Presale Engineer
Hexagon Geospatial
Frequent Contributor
Posts: 81
Registered: ‎09-18-2018

Re: GMSC 2015 : Standalone Workflow with FormMapViewer : property 'getCenterLonLat' of undefined or

[ Edited ]

Hi Stefano,


Yes, I load my public map ok. Considering my public maps as:




My FormMapViewer is defined like this.


<FormMapViewer name="MapViewer" label=" " baseurl="http://servename/GMSC/Public/" site="GMSCTEST" project="Projectname">



It seems to be a coordinate system problem. It is expecting a WMTS with geographic coordinates.


I tried with openstreetmaps and worked .



Thank you anyway for your answer on this.


Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.