Hi guys, I’m exploring ChartFactor, and I’m working on a web application in which I have the ChartFactor Toolkit integrated. In one of the interfaces I have a map created.
When starting the map I am calling a function that is responsible for creating 2 subscriptions to the mapzoom
and mapmove
events of the map. This is my function:
addMapEvents() {
this.map.on('mapzoom', function (e) {
//...
});
this.map.on('mapmove', function (e) {
//...
});
}
The problem is that the logic inside each listener is being executed multiple times generating undesirable behavior. Any suggestion about it?