Get your own customer support community
 

Overlays not tweening

Not sure if I've missed something but when using TweenMap and an overlay the overlay doesn't zoom properly during the tween if the map isn't stage centre. It scales correctly but then jumps back into place when onEndZoom is called.

As a dirty fix I've added an extra refresh() into the onMapZoomedBy function in Overlay.as. Works fine but not sure if this adds too much of a performance hit by forcing a redraw at every tween step.

Using revision 752.


private function onMapZoomedBy(event:MapEvent):void {
polyCont.scaleX = polyCont.scaleY = Math.pow(2, event.zoomDelta);
refresh();
}
Inappropriate?
1 person has this problem

User_default_medium