好文档 - 专业文书写作范文服务资料分享网站

ArcGIS Flex API 调用天地图和Google地图服务

天下 分享 时间: 加入收藏 我要投稿 点赞

33. {

34. return new SpatialReference(102113); 35. } 36.

37. override public function get tileInfo():com.esri.ags.layers.supportClasses.TileInfo 38. {

39. return _tileInfo; 40. } 41.

42. //获取矢量地图

43. override protected function getTileURL(level:Number, row:Number, col:Number):URL

Request 44. {

45. var url:String=_baseURL&+ 46. \47. \48. \49.

50. return new URLRequest(url); 51. }

52. public function set url(val:String):void 53.

54. this._baseURL = val; 55.

56. private function buildTileInfo():void 57. {

58. _tileInfo.height=256; 59. _tileInfo.width=256;

60. _tileInfo.origin=new MapPoint(-20037508.342787, 20037508.342787); 61. _tileInfo.spatialReference=new SpatialReference(102113); 62. _tileInfo.lods = [

63. new LOD(0, 156543.033928, 591657527.591555), 64. new LOD(1, 78271.5169639999, 295828763.795777), 65. new LOD(2, 39135.7584820001, 147914381.897889), 66. new LOD(3, 19567.8792409999, 73957190.948944), 67. new LOD(4, 9783.93962049996, 36978595.474472), 68. new LOD(5, 4891.96981024998, 18489297.737236), 69. new LOD(6, 2445.98490512499, 9244648.868618), 70. new LOD(7, 1222.99245256249, 4622324.434309), 71. new LOD(8, 611.49622628138, 2311162.217155), 72. new LOD(9, 305.748113140558, 1155581.108577), 73. new LOD(10, 152.874056570411, 577790.554289), 74. new LOD(11, 76.4370282850732, 288895.277144), 75. new LOD(12, 38.2185141425366, 144447.638572),

76. new LOD(13, 19.1092570712683, 72223.819286), 77. new LOD(14, 9.55462853563415, 36111.909643), 78. new LOD(15, 4.77731426794937, 18055.954822), 79. new LOD(16, 2.38865713397468, 9027.977411), 80. new LOD(17, 1.19432856685505, 4513.988705), 81. new LOD(18, 0.597164283559817, 2256.994353), 82. new LOD(19, 0.298582141647617, 1128.497176) 83. ]; 84. } 85. }

使用方法:

[plain] view plaincopyprint?

1. var wmslayer:GoogleMapLayer =new GoogleMapLayer(); 2. wmslayer.url=\3. map.addLayer(wmslayer);

ArcGIS Flex API 调用天地图和Google地图服务

33.{34.returnnewSpatialReference(102113);35.}36.37.overridepublicfunctiongettileInfo():com.esri.ags.layers.supportClasses.Til
推荐度:
点击下载文档文档为doc格式
0wkh98cm364mn0g1lugh
领取福利

微信扫码领取福利

微信扫码分享