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
Highlighted
Regular Contributor
Posts: 214
Registered: ‎07-27-2016
Accepted Solution

Geospatial Portal SDK:Visible Map Area

[ Edited ]

Hi All,

 

Is there a way to get the visible map extends in portal sdk?

I would like to use the extends as a geometry filter.

 

Thanks in advance.

 

Kind Regards

Jacques

Highlighted
Technical Evangelist
Posts: 1,181
Registered: ‎09-11-2015

Re: Geospatial Portal SDK:Visible Map Area

Hi Jacques,

 

Surely there is, check $GP.map.info() function.

 

For instance:

var bbox = $GP.map.info().bbox;
console.log(bbox);

Regards,

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Highlighted
Regular Contributor
Posts: 214
Registered: ‎07-27-2016

compleRe: Geospatial Portal SDK:Visible Map Area

Ha ha ha,

Thanks Jan,completly forgot that I was busy with that!

 

FYI:Works perfect!

 

Thanks

 

Kind Regards

Jacques