Select to view content in your preferred language

Mobile Flex: Fast Zoom Crash

658
3
08-19-2013 07:23 AM
MattSheehan
Deactivated User
We are seeing an issue on mobiles with fast zooms crashing the app. See the following example:

http://webmapsolutions.com/demos/iPadMobileCrash/iPadMobileCrash.html

We thought it might have something to do with dropshadows so we put in place:

(layer as FeatureLayer).filters = [new spark.filters.DropShadowFilter(1,90,0xffffff)];
(layer as FeatureLayer).filters = [new flash.filters.DropShadowFilter(1,90,0xffffff)];

But no joy. This may have something to do with the underlying technology, but we wondered if there might be any work arounds to get past this problem?

Thanks

--Matt
Tags (2)
0 Kudos
3 Replies
YannCabon
Esri Contributor
Hi Matt,

Yes the Flash Player is dealing really badly with filters and scaling display objects at the same time.
There is nothing we can do about it.

Yann
0 Kudos
JoachimPetersen
Emerging Contributor
attach a timer(delay) on it, that might prevent it from crashing?
http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/events/ZoomEvent.html

public function init():void {
    map.addEventListener(ZoomEvent.ZOOM_END, logZoomEvent);
   }

   public function logZoomEvent(event:ZoomEvent):void {
                                 //some delay here, like disable zoom function until a timer has finished?
   }
0 Kudos
MattSheehan
Deactivated User
Thanks Yann. Hope Adobe update the player in the near future to fix this issue. Avoiding finger pinches is a way around the problem. The crash is more rare with a single finger double tap (zoom in) and simultaneous double finger tap (zoom out).

--Matt
0 Kudos