i'm creating class extending base class Map...
all works, but errorMessage...
when zoom level is big and there is no tiles flash eats at least 500Mb
of memory... very bad...
i think it's because of errorMessage... pls help me...
there is class code...
package objects {
import flash.events.*;
import flash.geom.*;
import com.google.maps.*;
import com.google.maps.interfaces.*;
public class GoogleMap extends Map {
public function GoogleMap(apiKey:String,lang:String):void {
key = apiKey;
language = lang;
addEventListener(MapEvent.MAP_PREINITIALIZE,
on_preinit);
addEventListener(MapEvent.MAP_READY, on_ready);
}
private function on_preinit(e:MapEvent):void {
var options:MapOptions = new MapOptions();
var SATELLITE:IMapType = new MapType
(MapType.SATELLITE_MAP_TYPE.getTileLayers(),
MapType.SATELLITE_MAP_TYPE.getProjection(),
'SATELLITE',
new MapTypeOptions
({maxResolution: 19, minResolution: 1, errorMessage: 'no tile'}));
options.mapTypes = [SATELLITE];
options.center = new LatLng(0,0);
options.zoom = 1;
setInitOptions(options);
}
private function on_ready(e:MapEvent):void {
enableContinuousZoom();
enableScrollWheelZoom();
}
public function realign():void {
setSize(new Point(stage.stageWidth, stage.stageHeight));
}
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---