PDA

Volledige versie bekijken : AIR+Yahoo AS3 Maps probleem


henry21
%Europe/Berlin %700 %2008, 16:48
Ik weet niet of vele mensen hier ervaring mee hebben, maar ik maak een AIR applicatie in samenwerking met de nieuwe Yahoo Maps AS3 API.

Alles gaat goed, ik kan de map inladen, maar de map heeft een rare grijze balk helemaal over het scherm:

http://i32.tinypic.com/242igyb.jpg


<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="757" height="613">
<mx:Script>
<![CDATA[
import com.yahoo.maps.api.core.location.LatLon;
import com.yahoo.maps.api.YahooMapEvent;
import com.yahoo.maps.api.YahooMap;

private static const APP_ID:String = privé;

private var _yahooMap:YahooMap;

private function handleMapInitialize(event:YahooMapEvent):void
{
_yahooMap.centerLatLon = new LatLon(37.5, -122.14);
}


private function drukKnop():void{
_yahooMap = new YahooMap(APP_ID,mapContainer.width,mapContainer.he ight);
_yahooMap.addEventListener(YahooMapEvent.MAP_INITI ALIZE, handleMapInitialize);

mapContainer.addChild(_yahooMap);


_yahooMap.addPanControl();
_yahooMap.addZoomWidget();
}

]]>
</mx:Script>
<mx:Button x="10" y="10" label="Button" click="drukKnop()"/>
<mx:UIComponent id="mapContainer" width="100%" height="100%" x="0" y="0"/>
</mx:WindowedApplication>



Als iemand een oplossing weet?

Maenderveld
%Europe/Berlin %696 %2008, 16:43
Heeft hij dit enkel op die locatie of op alle locaties die je bekijkt?

TheDutch
%Europe/Berlin %266 %2008, 06:23
In Flex 3.0 werkt alles goed maar in AIR 1.0 niet. Waarschijnlijk dus nog een bug in AIR 1.0. Ik zou zeggen ga naar http://bugs.adobe.com/ en stel ze ervan op de hoogte :).