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.
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();
}
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi Mark,
Thanks for the bug report!
I'll take a look and see if those overlay classes can be improved, or if we should implement your fix.
If you find the redrawing an issue, try the MarkerClip and PolygonClip classes since they have been more robustly tested. PolygonClip uses scaling and translating to minimise redrawing, so you might find it more efficient.
Loading Profile...



EMPLOYEE