惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
云风的 BLOG
云风的 BLOG
小众软件
小众软件
雷峰网
雷峰网
博客园 - 【当耐特】
V
V2EX
WordPress大学
WordPress大学
IT之家
IT之家
Last Week in AI
Last Week in AI
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
The Cloudflare Blog
Jina AI
Jina AI
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

博客园 - jerry data

(转)三维管线自动建模工具PipelineCreator 招聘技巧一二 (转) python抓网页中文乱码问题 - jerry data - 博客园 星 ---- 谷村新司 arcgis flex api 访问 google 地图 iframe and margin - jerry data Difference method for Parse XML with C# PInvoke .NET ~ C++ how to call the member function?( C++ ) . or -> "con" function usage tip!! 转载 : flex3 中 Legend fontSize不起作用的bug解决 map service query result maxrecordcount Block development arcmap field calculator Michael F. Goodchild Talks about the Role of Volunteered Geographic Information in a Postmodern GIS World create user with custom profile 唐骏十年管理经验谈:管理者要学会让员工感动 mysql - tutorial 1 theme elements in the form - jerry data
(转载)arcgis flex api 访问 google 地图
jerry data · 2010-03-14 · via 博客园 - jerry data

package
{
import com.esri.ags.SpatialReference;
import com.esri.ags.geometry.Extent;
import com.esri.ags.geometry.MapPoint;
import com.esri.ags.layers.LOD;
import com.esri.ags.layers.TileInfo;
import com.esri.ags.layers.TiledMapServiceLayer;

import flash.net.URLRequest;

import mx.controls.Alert;


public class GoogleMapLayer extends TiledMapServiceLayer
{
public function GoogleMapLayer()
{
super();
buildTileInfo();
setLoaded(true);

}
private var _tileInfo:TileInfo=new TileInfo();
private var _baseURL:String="";


override public function get fullExtent():Extent
{
return new Extent(-9466091.13399388, 4610475.01946595, -8939371.68667449, 5183684.37031855, new SpatialReference(102113));
}
override public function get initialExtent():Extent
{
return new Extent(-9466091.13399388, 4610475.01946595, -8939371.68667449, 5183684.37031855, new SpatialReference(102113));
}

override public function get spatialReference():SpatialReference
{
return new SpatialReference(102113);
}

override public function get tileInfo():TileInfo
{
return _tileInfo;
}

private function buildTileInfo():void
{
_tileInfo.height=256;
_tileInfo.width=256;
_tileInfo.origin=new MapPoint(-20037508.342787, 20037508.342787);
_tileInfo.spatialReference=new SpatialReference(102113);
_tileInfo.lods = [

new LOD(0, 1222.99245256249, 4622324.434309),
new LOD(1, 611.49622628138, 2311162.217155),
new LOD(2, 305.748113140558, 1155581.108577),
new LOD(3, 152.874056570411, 577790.554289),
new LOD(4, 76.4370282850732, 288895.277144),
new LOD(5, 38.2185141425366, 144447.638572),
new LOD(6, 19.1092570712683, 72223.819286),
new LOD(7, 9.55462853563415, 36111.909643),
new LOD(8,1.19432856685505, 4513.988705)
];
}
}
}

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:esri="http://www.esri.com/2008/ags"
xmlns:google="*"
>
<mx:Text text="" width="100%"/>
<esri:Map>
<google:GoogleMapLayer id="googleMap" />
</esri:Map>
</mx:Application>