I'm trying to load an image (through url) as a groundoverlay on a google map. I 
use a different url from the same domain like 
(http://www.lamma.rete.toscana.it/models/marevento/wind10m_A_3.png) it works 
perfectly but with the one I need (in the code) it doesn't. The only difference 
is the image dimension (27.7k the one that works, 477k the one that doesn't)


private function onMapReady(event:Event):void {
        map.setCenter(new LatLng(42.25, 9.75), 7, MapType.NORMAL_MAP_TYPE);
        map.addControl(new ZoomControl());
        map.addControl(new MapTypeControl());
        
                
                Security.loadPolicyFile("/crossdomain.xml");
                
        var testLoader:Loader = new Loader();
        var urlRequest:URLRequest = new 
URLRequest("http://www.lamma.rete.toscana.it/models/googlemaps/wind10m_google_1.png";);
        testLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, 
function(e:Event):void 
        {
            var groundOverlay:GroundOverlay = new GroundOverlay(testLoader,new 
LatLngBounds(new LatLng(33.89,-0.8), new LatLng(47.28,20)));
            map.addOverlay(groundOverlay);
        });
        testLoader.alpha = 0.5;
        testLoader.load(urlRequest);  
    }


what am I doing wrong??? please help my head hurts! :)

Reply via email to