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
Frequent Contributor
Posts: 118
Registered: ‎10-13-2015

MapMoved event

 

We need to capture the mapMoved event after called the zoom method. (We send the token)

Can you send to us an exemple?

 

Highlighted
Technical Evangelist
Posts: 132
Registered: ‎08-05-2015

Re: MapMoved event

function mapMovedHandler() {
    $GP.map.info({}, function(ret) {
        $GP.ui.info($GP.utils.serialize(ret));
    });
}

var token = $GP.events.mapMoved.register(mapMovedHandler);

If you need to perform an action only if the zoom has changed, then you can compare scaleDenominator or height values (depending on whether it is Geospatial Portal or Consumer Portal).

Polls
Please register to vote
Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.