我正在尝试将mapquest地图添加到我的flash应用程序中,但它只发布一个空白的swf。我已经导入了最新的mapquest SWC文件,我有一个密钥,我正在使用我在mapquest网站上找到的代码:
import flash.display.Sprite;
import flash.display.StageScaleMode;
import com.mapquest.tilemap.*;
//turn scaling off
this.stage.scaleMode = StageScaleMode.NO_SCALE;
// create a new TileMap object, passing your platform key
var map:TileMap = new TileMap("MY KEY HERE");
//set the size of the map
map.size = new Size(600, 450);
//add the map to the sprite.
addChild(map);我哪里错了?
发布于 2015-05-18 23:14:13
您是否正在使用Open Flash Maps API与您的免费和开放API密钥?
https://stackoverflow.com/questions/30292651
复制相似问题