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?
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?