Enviar pesquisa
Carregar
Ajax api(flash地图展现)用户手册—企业版—v2.3.4
•
0 gostou
•
195 visualizações
A
aethersg
Seguir
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 331
Baixar agora
Baixar para ler offline
Recomendados
云计算培训材料
云计算培训材料
koolea
Mexico
Mexico
sandrita1246
Expansion and decline of Southern California populations of Yucca brevifolia ...
Expansion and decline of Southern California populations of Yucca brevifolia ...
dreamingbearcat
El desarrollo cultural en méxico
El desarrollo cultural en méxico
desarrollomex
SACEOS Membership
SACEOS Membership
SACEOS
Steve Shepherd Resume
Steve Shepherd Resume
Clerin Consulting Group, Inc.
Vince Imperio-Project
Vince Imperio-Project
VinceImperio
Appendicografi
Appendicografi
Wira Kusuma
Recomendados
云计算培训材料
云计算培训材料
koolea
Mexico
Mexico
sandrita1246
Expansion and decline of Southern California populations of Yucca brevifolia ...
Expansion and decline of Southern California populations of Yucca brevifolia ...
dreamingbearcat
El desarrollo cultural en méxico
El desarrollo cultural en méxico
desarrollomex
SACEOS Membership
SACEOS Membership
SACEOS
Steve Shepherd Resume
Steve Shepherd Resume
Clerin Consulting Group, Inc.
Vince Imperio-Project
Vince Imperio-Project
VinceImperio
Appendicografi
Appendicografi
Wira Kusuma
After effects cs4_help
After effects cs4_help
estivenpg13
Maven definitive-guide zh
Maven definitive-guide zh
frank0079
Adobe premiere cs4
Adobe premiere cs4
cl17
Linux011 Heavily Documented Source Code
Linux011 Heavily Documented Source Code
htmlo0o
Curso
Curso
santoska
F5-Big_IP_LTM-Zh
F5-Big_IP_LTM-Zh
ceed100043
Oracle 经验操作
Oracle 经验操作
Bob Huang
codi Html osanroma
codi Html osanroma
Pedro Vilas
Memoria ap
Memoria ap
azorojo1
Cloud computing
Cloud computing
carlosperezruiz
Pla d'acció per al desenvolupament del contract manufacturing en el sector de...
Pla d'acció per al desenvolupament del contract manufacturing en el sector de...
Biocat, BioRegion of Catalonia
Mobile Gaming – Eine empirische Studie zum Spielverhalten und Nutzungserlebni...
Mobile Gaming – Eine empirische Studie zum Spielverhalten und Nutzungserlebni...
Stephan Engl
Protocollo informatico manuale_usp_mantova
Protocollo informatico manuale_usp_mantova
jamboo
Tiling
Tiling
Chhay Teng
12 версия m03 - введение в aveva pdms
12 версия m03 - введение в aveva pdms
marvinantonio
Otamotz aldizkariaren irakurleen azterketa
Otamotz aldizkariaren irakurleen azterketa
Zintzo Mintzo Euskaltzaleon Elkartea
Diseño subestacion transformadora
Diseño subestacion transformadora
jzunigav
Sun GlassFish Web Space Server 100 Administration Guide
Sun GlassFish Web Space Server 100 Administration Guide
webhostingguy
NTE E.060 CONCRETO ARMADO 2009 - PERU
NTE E.060 CONCRETO ARMADO 2009 - PERU
IngCivilPeru | Blog Oficial del Ingeniero Civil
PHP-Debug-Manual-public
PHP-Debug-Manual-public
wensheng wei
Mais conteúdo relacionado
Semelhante a Ajax api(flash地图展现)用户手册—企业版—v2.3.4
After effects cs4_help
After effects cs4_help
estivenpg13
Maven definitive-guide zh
Maven definitive-guide zh
frank0079
Adobe premiere cs4
Adobe premiere cs4
cl17
Linux011 Heavily Documented Source Code
Linux011 Heavily Documented Source Code
htmlo0o
Curso
Curso
santoska
F5-Big_IP_LTM-Zh
F5-Big_IP_LTM-Zh
ceed100043
Oracle 经验操作
Oracle 经验操作
Bob Huang
codi Html osanroma
codi Html osanroma
Pedro Vilas
Memoria ap
Memoria ap
azorojo1
Cloud computing
Cloud computing
carlosperezruiz
Pla d'acció per al desenvolupament del contract manufacturing en el sector de...
Pla d'acció per al desenvolupament del contract manufacturing en el sector de...
Biocat, BioRegion of Catalonia
Mobile Gaming – Eine empirische Studie zum Spielverhalten und Nutzungserlebni...
Mobile Gaming – Eine empirische Studie zum Spielverhalten und Nutzungserlebni...
Stephan Engl
Protocollo informatico manuale_usp_mantova
Protocollo informatico manuale_usp_mantova
jamboo
Tiling
Tiling
Chhay Teng
12 версия m03 - введение в aveva pdms
12 версия m03 - введение в aveva pdms
marvinantonio
Otamotz aldizkariaren irakurleen azterketa
Otamotz aldizkariaren irakurleen azterketa
Zintzo Mintzo Euskaltzaleon Elkartea
Diseño subestacion transformadora
Diseño subestacion transformadora
jzunigav
Sun GlassFish Web Space Server 100 Administration Guide
Sun GlassFish Web Space Server 100 Administration Guide
webhostingguy
NTE E.060 CONCRETO ARMADO 2009 - PERU
NTE E.060 CONCRETO ARMADO 2009 - PERU
IngCivilPeru | Blog Oficial del Ingeniero Civil
PHP-Debug-Manual-public
PHP-Debug-Manual-public
wensheng wei
Semelhante a Ajax api(flash地图展现)用户手册—企业版—v2.3.4
(20)
After effects cs4_help
After effects cs4_help
Maven definitive-guide zh
Maven definitive-guide zh
Adobe premiere cs4
Adobe premiere cs4
Linux011 Heavily Documented Source Code
Linux011 Heavily Documented Source Code
Curso
Curso
F5-Big_IP_LTM-Zh
F5-Big_IP_LTM-Zh
Oracle 经验操作
Oracle 经验操作
codi Html osanroma
codi Html osanroma
Memoria ap
Memoria ap
Cloud computing
Cloud computing
Pla d'acció per al desenvolupament del contract manufacturing en el sector de...
Pla d'acció per al desenvolupament del contract manufacturing en el sector de...
Mobile Gaming – Eine empirische Studie zum Spielverhalten und Nutzungserlebni...
Mobile Gaming – Eine empirische Studie zum Spielverhalten und Nutzungserlebni...
Protocollo informatico manuale_usp_mantova
Protocollo informatico manuale_usp_mantova
Tiling
Tiling
12 версия m03 - введение в aveva pdms
12 версия m03 - введение в aveva pdms
Otamotz aldizkariaren irakurleen azterketa
Otamotz aldizkariaren irakurleen azterketa
Diseño subestacion transformadora
Diseño subestacion transformadora
Sun GlassFish Web Space Server 100 Administration Guide
Sun GlassFish Web Space Server 100 Administration Guide
NTE E.060 CONCRETO ARMADO 2009 - PERU
NTE E.060 CONCRETO ARMADO 2009 - PERU
PHP-Debug-Manual-public
PHP-Debug-Manual-public
Ajax api(flash地图展现)用户手册—企业版—v2.3.4
1.
MapABC 地图应用程序编程接口-用户手册
MapABC 地图应用程序编程接口 用户手册 文件状态: 文件标识: MapABC-Map API-UM [ ] 草稿 当前版本: Ajax API(Flash 地图展现)2.3.4 企业版 [√] 正式发布 作 者: [ ] 正在修改 创建日期: 最后更新: 密 级: 秘密 版权说明: 版权© 2010 归北京图盟科技有限公司所有 北京图盟科技有限公司
2.
MapABC 地图应用程序编程接口-用户手册
版 本 管 理 【修改记录】 版本/状态 作者 起止日期 备注 【审 阅】 版本/状态 审阅时间 审阅人 职务 备注 北京图盟科技有限公司
3.
MapABC 地图应用程序编程接口-用户手册
说明 本文档是 Ajax API(Flash 地图展现)的用户使用手册,具体来讲,是 Mapabc 向广大 公众用户提供的地图和搜索调用接口方法的操作指南。Ajax API(Flash 地图展现)包括地 图 API 和搜索 API。地图 API 采用 Flash 地图展现,向用户提供 JavaScript 地图接口,能够 让用户在 HTML 页面中构建自己的 Flash 地图应用;搜索 API 向用户提供 JavaScript 的数据 检索计算接口,所有查询结果都可以展现在 Flash 地图中。 地图 API 中定义了若干个对象类。其中,地图类 MMap 是 API 的核心部分,它封装了 地图 flash 组件,通过创建该对象并使用该对象的方法可以实现地图的一些基本操作,与此 类性质类似的还有 MMapTool 类、MMenuItem 类、MTileLayer 类、MOverlay 对象类及其子 类 MLabel、MGroundImage、MMarker、MPolyline、MArea(包括其子类 MCircle、MRectangle、 MPolygon)等。MClusterOptions 类、MassOverlayOptions 类、MWMSLayerOptions 类、 MTileLayerOptions 类、MLabelOptions 类、MGroundImageOptions、MTipOptions 类、 MMapOptions 类、MMarkerOptions 类、MAreaOptions 类及 MLineOptions 类是针对不同对象 构建的参数选项对象,通过设置参数选项对象的属性值完成针对不同对象的选项参数的设置; MFontStyle 类、MLineStyle 类、MFillStyle 类及 MAreaStyle 类分别完成对字体样式、线样式、 填充样式及面样式的设置;MLngLat 类、MLngLats 类、MPoint 类、MPixelBounds 类、 MLngLatBounds 类及 MSize 类则是用来创建位置或边界对象;事件类 MEvent 主要是指执行 不同的事件时调用相应对象的函数操作。 搜索 API 中定义了若干个对象类,即 MLocalSearch 类、MLocalSearchOptions 类、 MRoutSearch 类及 MRoutSearchOptions 类。MLocalSearch 类封装了本地搜索功能,包括关 键字查询和周边查询。MLocalSearchOptions 类是 MLocalSearch 查询方法的可选参数。 MRoutSearch 封装了路径查询功能,包括公交查询和驾车查询。通过创建一个 MRoutSearch 对象并调用公交驾车的相应方法就可以实现路径查询功能。MRoutSearchOptions 类是 MRoutSearch 类的选项参数类。 用户在阅读下面的文档时,可以通过各个相似功能对象的对比加深对 API 类方法、属 性、用途的理解,从而更好地应用 API 类服务于自己的领域。 北京图盟科技有限公司
4.
MapABC 地图应用程序编程接口-用户手册 目录 MapABC 地图应用程序编程接口
......................................................................................................1 用户手册 .................................................................................................................................................1 地图 API: ......................................................................................................................................27 命名空间:com.mapabc.maps.api ......................................................................................................27 1 全局常量 .......................................................................................................................................27 1.1. 说明...............................................................................................................................27 1.2. 常量...............................................................................................................................27 地图类型 ..............................................................................................................................27 1.2.1 MAP_EN ..............................................................................................................27 1.2.2 MAP_CN ..............................................................................................................27 地图控件名称 ......................................................................................................................27 1.2.3 OVERVIEW_CTRL ............................................................................................27 1.2.4 TOOLBAR_CTRL ..............................................................................................28 1.2.5 SCALE_CTRL .....................................................................................................28 工具条样式 ..........................................................................................................................28 1.2.6 DEFAULT ............................................................................................................28 1.2.7 ROUND ................................................................................................................28 1.2.8 BLACK ................................................................................................................28 1.2.9 SMALL ................................................................................................................28 1.2.10 MINI .....................................................................................................................29 地图控件状态 ......................................................................................................................29 1.2.11 MINIMIZE ...........................................................................................................29 1.2.12 SHOW ..................................................................................................................29 1.2.13 HIDE.....................................................................................................................29 鼠标工具 ..............................................................................................................................29 1.2.14 PAN_WHEELZOOM ..........................................................................................29 1.2.15 ADD_MARKER..................................................................................................30 1.2.16 DRAW_LINE.......................................................................................................30 1.2.17 DRAW_POLYGON.............................................................................................30 1.2.18 DRAW_RECTANGLE ........................................................................................30 1.2.19 DRAW_CIRCLE .................................................................................................30 1.2.20 RULER .................................................................................................................30 1.2.21 COMPUTE_AREA .............................................................................................31 1.2.22 FRAME_ZOOMIN .............................................................................................31 1.2.23 FRAME_ZOOMOUT .........................................................................................31 事件类型 ..............................................................................................................................31 1.2.24 MAP_READY .....................................................................................................31 1.2.25 TIP_OPEN ...........................................................................................................31 1.2.26 TIP_CLOSE .........................................................................................................32 1.2.27 TIP_BEFORE_CLOSE .......................................................................................32 1.2.28 ADD_OVERLAY ................................................................................................32 1.2.29 REMOVE_OVERLAY .......................................................................................32 北京图盟科技有限公司
5.
MapABC 地图应用程序编程接口-用户手册
1.2.30 CLEAR_OVERLAYS .........................................................................................32 1.2.31 MOUSE_CLICK .................................................................................................32 1.2.32 MOUSE_DBCLICK............................................................................................33 1.2.33 MOUSE_DOWN .................................................................................................33 1.2.34 MOUSE_UP.........................................................................................................33 1.2.35 MOUSE_MOVING .............................................................................................33 1.2.36 MOUSE_OVER...................................................................................................33 1.2.37 MOUSE_OUT .....................................................................................................33 1.2.38 DRAG_START ....................................................................................................34 1.2.39 DRAGGING ........................................................................................................34 1.2.40 DRAG_END ........................................................................................................34 1.2.41 MAP_MOVE_START ........................................................................................34 1.2.42 MAP_MOVING ..................................................................................................34 1.2.43 MAP_MOVE_END.............................................................................................34 1.2.44 ZOOM_START....................................................................................................35 1.2.45 ZOOM_END ........................................................................................................35 1.2.46 ZOOM_CHANGED ............................................................................................35 1.2.47 ROLL_BACK ......................................................................................................35 1.2.48 MEASURE_STEP ...............................................................................................35 1.2.49 MEASURE_END ................................................................................................35 1.2.50 COMPUTE_AREA_END...................................................................................36 1.2.51 MENUITEM_CLICK..........................................................................................36 1.2.52 GPS_MOVEALONG_COMPLETE ..................................................................36 1.2.53 ADD_TILELAYER .............................................................................................36 1.2.54 TILE_MOUSE_OVER .......................................................................................36 1.2.55 OVERVIEWMAP_CHANGE ............................................................................36 1.2.56 RADAR_INITIALIZED .....................................................................................37 1.2.57 RADAR_POSITION_CHANGED ....................................................................37 1.2.58 RADAR_ROTATION_CHANGED ...................................................................37 切片图层 ..............................................................................................................................37 1.2.59 TL_TRAFFIC ......................................................................................................37 1.2.60 TL_USERMAP ....................................................................................................37 1.2.61 TL_SATELLITE ..................................................................................................37 1.2.62 TL_MASS_TRANSIT ........................................................................................38 1.2.63 TL_REAL_ESTATE ............................................................................................38 1.2.64 TL_CUSTOM_MAP ...........................................................................................38 信息窗体 ..............................................................................................................................38 1.2.65 FLASH_BUBBLE_TIP.......................................................................................38 1.2.66 HTML_BUBBLE_TIP ........................................................................................38 1.2.67 HTML_CUSTOM_TIP .......................................................................................39 1.2.68 IMG_BUBBLE_TIP............................................................................................39 线体类型 ..............................................................................................................................39 1.2.69 LINE_SOLID .......................................................................................................39 1.2.70 LINE_DASHED ..................................................................................................39 北京图盟科技有限公司
6.
MapABC 地图应用程序编程接口-用户手册
坐标类型 ..............................................................................................................................39 1.2.71 COORD_TYPE_ENCODE.................................................................................39 1.2.72 COORD_TYPE_OFFSET ..................................................................................40 焦点模式 ..............................................................................................................................40 1.2.73 NOFOCUS ...........................................................................................................40 1.2.74 FOCUS .................................................................................................................40 1.2.75 CENTER_FOCUS ...............................................................................................40 方向名称 ..............................................................................................................................40 1.2.76 EAST ....................................................................................................................40 1.2.77 WEST ...................................................................................................................41 1.2.78 SOUTH .................................................................................................................41 1.2.79 NORTH ................................................................................................................41 位置名称 ..............................................................................................................................41 1.2.80 TOP_LEFT ...........................................................................................................41 1.2.81 TOP_CENTER ....................................................................................................41 1.2.82 TOP_RIGHT ........................................................................................................41 1.2.83 MIDDLE_LEFT ..................................................................................................42 1.2.84 MIDDLE_CENTER ............................................................................................42 1.2.85 MIDDLE_RIGHT................................................................................................42 1.2.86 BOTTOM_LEFT .................................................................................................42 1.2.87 BOTTOM_CENTER ...........................................................................................42 1.2.88 BOTTOM_RIGHT ..............................................................................................42 弹跳效果定位方式 ..............................................................................................................43 1.2.89 BOUNCE_CROSS ..............................................................................................43 1.2.90 BOUNCE_CIRCLE.............................................................................................43 2 MMap ............................................................................................................................................43 2.1 说明...............................................................................................................................43 2.2 命名空间 ......................................................................................................................43 2.3 构造方法 ......................................................................................................................43 MMap(container,mapOption) .............................................................................43 2.3.1 2.4 方法...............................................................................................................................44 获取地图状态 ......................................................................................................................44 2.4.1 getCenter()............................................................................................................44 2.4.2 getZoomLevel() ...................................................................................................45 2.4.3 getSize()................................................................................................................45 2.4.4 getScale() ..............................................................................................................45 2.4.5 getPixelBounds() .................................................................................................46 2.4.6 getLngLatBounds() ..............................................................................................46 2.4.7 getLngLatByOffset(originalLngLat,WEOffset,SNOffset, radius) ...................47 2.4.8 isContinuousZoom() ............................................................................................47 2.4.9 getMapTilesId() ...................................................................................................48 2.4.10 getDragEnabled() .................................................................................................48 2.4.11 getZoomEnabled() ...............................................................................................48 2.4.12 getKeyboardEnabled().........................................................................................49 北京图盟科技有限公司
7.
MapABC 地图应用程序编程接口-用户手册
修改地图状态 ......................................................................................................................49 2.4.13 setCenter(center) ..................................................................................................49 2.4.14 setZoomLevel(zoomLevel) .................................................................................50 2.4.15 setZoomAndCenter(zoom,center) ......................................................................50 2.4.16 setContinuousZoom(isContinuous) ....................................................................51 2.4.17 setMapColor(color) .............................................................................................51 2.4.18 setDragEnabled(dragEnabled) ............................................................................52 2.4.19 setZoomEnabled(zoomEnabled) .........................................................................52 2.4.20 setLngLatBounds(bounds) ..................................................................................53 2.4.21 zoomIn(lnglat)......................................................................................................53 2.4.22 zoomOut(lnglat) ...................................................................................................54 2.4.23 panDirection(dx,dy) .............................................................................................54 2.4.24 panTo(center) .......................................................................................................55 2.4.25 panBy(position,speed) .........................................................................................55 2.4.26 setCtrlPanelState (ctrlName,state) ......................................................................56 2.4.27 setOverviewState(state) .......................................................................................56 2.4.28 loadCtrlPanel(ctrlName,opt) ...............................................................................57 2.4.29 setKeyboardEnabled(enabled) ............................................................................58 2.4.30 savePosition() .......................................................................................................58 2.4.31 returnToSavedPosition() ......................................................................................58 2.4.32 clearMap(clearType) ............................................................................................59 添加覆盖物 ..........................................................................................................................59 2.4.33 addOverlay(overlay,isToFitView).......................................................................59 2.4.34 addOverlays(overlays,azc) ..................................................................................61 2.4.35 createLightMarker(x,y,id,imageUrl,picAgent,alpha,isDimorphic,dimorphicCol or) 61 2.4.36 updateOverlay(overlay) .......................................................................................62 2.4.37 setOverlayEditableById(overlayId,isEditable) ..................................................63 2.4.38 setOverlayToTopById(overlayId) .......................................................................64 2.4.39 setOverlayVisibleById(overlayId,isVisible) ......................................................64 2.4.40 setOverlayDimorphicById(overlayId,dimorphic) .............................................65 2.4.41 setFitview(overlays) ............................................................................................65 2.4.42 setClusterState(state,clusterOption) ...................................................................66 2.4.43 getOverlayById(overlayId) .................................................................................66 2.4.44 getOverlaysByType(type) ...................................................................................67 2.4.45 expOverlay(overlayId) ........................................................................................68 2.4.46 removeOverlaysByType(type) ............................................................................69 2.4.47 removeOverlay(overlay) .....................................................................................69 2.4.48 removeOverlays(overlays) ..................................................................................69 2.4.49 removeOverlayById(overlayId)..........................................................................70 2.4.50 removeAllOverlays() ...........................................................................................70 2.4.51 setDefaultMarkerOption(option) ........................................................................71 2.4.52 setDefaultLineOption(option) .............................................................................72 北京图盟科技有限公司
8.
MapABC 地图应用程序编程接口-用户手册
2.4.53 setDefaultAreaOption(option) ............................................................................73 叠加层 74 2.4.54 addWMSLayer(options) ......................................................................................74 2.4.55 addTileLayer(tileLayer) ......................................................................................74 2.4.56 addDataLayer(dataLayer)....................................................................................75 2.4.57 addGradientMapLayer(options)..........................................................................75 2.4.58 updateGradientMapLayer(options) ....................................................................76 2.4.59 removeWMSLayer()............................................................................................77 2.4.60 removeTileLayer(layerType,tileLayerId) ...........................................................77 2.4.61 removeDataLayer(layerType,dataLayerId) ........................................................78 2.4.62 removeGradientMapLayer() ...............................................................................78 右键菜单 ..............................................................................................................................79 2.4.63 addMenuItems(arr) ..............................................................................................79 2.4.64 removeMenuItem (menuItemId).........................................................................79 信息窗口 ..............................................................................................................................80 2.4.65 openTip(position, tipOptions) .............................................................................80 2.4.66 openOverlayTip(overlayId) .................................................................................80 2.4.67 closeTip()..............................................................................................................81 鼠标工具 ..............................................................................................................................81 2.4.68 setCurrentMouseTool(ctrlName, option) ...........................................................81 GSP 行业应用 ......................................................................................................................83 2.4.69 markerMoveAlong(markerId,lnglatArr,speed) ..................................................83 2.4.70 startMoveAlong(markerId,isLoop).....................................................................84 2.4.71 pauseMoveAlong(markerId) ...............................................................................84 2.4.72 stopMoveAlong(markerId) .................................................................................85 2.4.73 setGPSFocus(focusType,markerIds) ..................................................................85 2.4.74 markerMoveTo(markerId,lnglat,rotation,speed)................................................86 注册(反注册)事件 ..........................................................................................................87 2.4.75 addEventListener(object,eventType,functionname) ..........................................87 2.4.76 removeEventListener(object,eventType,functionName)...................................88 2.4.77 removeClosuresListeners() .................................................................................89 地图工具 ..............................................................................................................................90 2.4.78 calculateDistance(IIs) ..........................................................................................90 2.4.79 fromLngLatToContainerPixel(lnglat).................................................................90 2.4.80 fromContainerPixelToLngLat(containerPt) .......................................................91 2.4.81 saveMap2JPG() ....................................................................................................91 2.4.82 printMap() ............................................................................................................91 3 MMapOptions() ............................................................................................................................92 3.1 说明...............................................................................................................................92 3.2 命名空间 ......................................................................................................................92 3.3 构造方法 ......................................................................................................................92 3.3.1MMapOptions() ...................................................................................................92 3.4 属性...............................................................................................................................92 3.4.1 zoom .....................................................................................................................92 北京图盟科技有限公司
9.
MapABC 地图应用程序编程接口-用户手册
3.4.2 center ....................................................................................................................93 3.4.3 toolbarUrl .............................................................................................................93 3.4.4 toolbar ...................................................................................................................93 3.4.5 toolbarPos .............................................................................................................94 3.4.6 overviewMap .......................................................................................................94 3.4.7 scale ......................................................................................................................94 3.4.8 isCongruence ........................................................................................................95 3.4.9 returnCoordType ..................................................................................................95 3.4.10 hasDefaultMenu ...................................................................................................95 3.4.11 OVZoomLevels ...................................................................................................95 3.4.12 language................................................................................................................96 3.4.13 fullScreenButton ..................................................................................................96 3.4.14 centerCross ...........................................................................................................96 3.4.15 minZoomLevel .....................................................................................................97 3.4.16 maxZoomLevel ....................................................................................................97 3.4.17 totalLevel ..............................................................................................................97 3.4.18 viewBounds ..........................................................................................................98 3.4.19 logoUrl..................................................................................................................98 3.4.20 groundLogo ..........................................................................................................98 3.4.21 mapComButton ....................................................................................................98 3.4.22 requestNum ..........................................................................................................99 3.5 方法...............................................................................................................................99 3.6 示例...............................................................................................................................99 4 MMenuItem() ..............................................................................................................................100 4.1 说明.............................................................................................................................100 4.2 命名空间 ....................................................................................................................100 4.3 构造方法 ....................................................................................................................100 4.3.1 MMenuItem() .....................................................................................................100 4.4 属性.............................................................................................................................100 4.4.1 menuType ...........................................................................................................100 4.4.2 objectType ..........................................................................................................101 4.4.3 overlayId.............................................................................................................101 4.4.4 order ....................................................................................................................101 4.4.5 menuText ............................................................................................................101 4.4.6 functionName .....................................................................................................102 4.4.7 isEnabled ............................................................................................................102 4.4.8 isHaveSeparator .................................................................................................102 4.4.9 id .........................................................................................................................102 命名空间:com.mapabc.maps.api.overlays .....................................................................................103 5 MOverlay() ..................................................................................................................................103 5.1 说明.............................................................................................................................103 5.2 命名空间 ....................................................................................................................103 5.3 构造方法 ....................................................................................................................104 5.3.1 MOverlay(id) .....................................................................................................104 北京图盟科技有限公司
10.
MapABC 地图应用程序编程接口-用户手册
5.4 属性.............................................................................................................................104 5.4.1 id .........................................................................................................................104 5.4.2TYPE ..................................................................................................................104 5.5 常量.............................................................................................................................105 5.5.1 TYPE_MARKER ..............................................................................................105 5.5.2 TYPE_RADAR .................................................................................................105 5.5.3 TYPE_LABEL ...................................................................................................105 5.5.4 TYPE_GROUNDIMAGE.................................................................................105 5.5.5 TYPE_POLYLINE ............................................................................................105 5.5.6 TYPE_POLYGON.............................................................................................106 5.5.7 TYPE_CIRCLE .................................................................................................106 5.5.8 TYPE_RECTANGLE ........................................................................................106 5.5.9 TYPE_AREA .....................................................................................................106 6 MMarker() ...................................................................................................................................106 6.1 说明.............................................................................................................................106 6.2 命名空间 ....................................................................................................................107 6.3 继承.............................................................................................................................107 6.4 构造方法 ....................................................................................................................107 6.4.1 MMarker(lnglat,option) .....................................................................................107 6.5 属性.............................................................................................................................107 6.5.1 id .........................................................................................................................107 6.5.2 TYPE ..................................................................................................................108 6.5.3 lnglat ...................................................................................................................108 6.5.4 option ..................................................................................................................108 6.5.5 size ......................................................................................................................108 7 MRadar () ....................................................................................................................................109 7.1 说明.............................................................................................................................109 7.2 命名空间 ....................................................................................................................109 7.3 继承.............................................................................................................................109 7.4 构造方法 ....................................................................................................................109 7.4.1 MRadar(lnglat,option) .......................................................................................109 8 MLabel()......................................................................................................................................110 8.1 说明.............................................................................................................................110 8.2 命名空间 ....................................................................................................................110 8.3 继承.............................................................................................................................110 8.4 构造方法 ....................................................................................................................110 8.4.1 MLabel(lnglat,option) .......................................................................................110 8.5 属性.............................................................................................................................111 8.5.1 id .........................................................................................................................111 8.5.2 TYPE ..................................................................................................................111 8.5.3 lnglat ...................................................................................................................111 8.5.4 option ..................................................................................................................112 9 MPolyline() .................................................................................................................................112 9.1 说明.............................................................................................................................112 北京图盟科技有限公司
11.
MapABC 地图应用程序编程接口-用户手册
9.2 命名空间 ....................................................................................................................112 9.3 继承.............................................................................................................................112 9.4 构造方法 ....................................................................................................................112 9.4.1 MPolyline(lnglatArr,option) .............................................................................112 9.5 属性.............................................................................................................................113 9.5.1 id .........................................................................................................................113 9.5.2 TYPE ..................................................................................................................113 9.5.3 lnglatArr .............................................................................................................113 9.5.4 option ..................................................................................................................114 10 MArea() .......................................................................................................................................114 10.1 说明.............................................................................................................................114 10.2 命名空间 ....................................................................................................................114 10.3 继承.............................................................................................................................114 10.4 构造方法 ....................................................................................................................115 10.4.1 MArea(lnglatArr, option) ..................................................................................115 10.5 属性.............................................................................................................................115 10.5.1 TYPE ..................................................................................................................115 11 MRectangle() ..............................................................................................................................115 11.1 说明.............................................................................................................................115 11.2 命名空间 ....................................................................................................................115 11.3 继承.............................................................................................................................116 11.4 构造方法 ....................................................................................................................116 11.4.1 MRectangle(lnglatArr, option)..........................................................................116 11.5 属性.............................................................................................................................117 11.5.1 id .........................................................................................................................117 11.5.2 TYPE ..................................................................................................................117 11.5.3 lnglatArr .............................................................................................................117 11.5.4 option ..................................................................................................................117 12 MCircle() .....................................................................................................................................118 12.1 说明.............................................................................................................................118 12.2 命名空间 ....................................................................................................................118 12.3 继承.............................................................................................................................118 12.4 构造方法 ....................................................................................................................118 12.4.1 MCircle(lnglat, radius, option) .........................................................................118 12.5 属性.............................................................................................................................119 12.5.1 id .........................................................................................................................119 12.5.2 TYPE ..................................................................................................................119 12.5.3 center ..................................................................................................................120 12.5.4 radius ..................................................................................................................120 12.5.5 option ..................................................................................................................120 12.5.6 bounds.................................................................................................................120 13 MPolygon() .................................................................................................................................121 13.1 说明.............................................................................................................................121 13.2 命名空间 ....................................................................................................................121 北京图盟科技有限公司
12.
MapABC 地图应用程序编程接口-用户手册
13.3 继承.............................................................................................................................121 13.4 构造方法 ....................................................................................................................121 13.4.1 MPolygon(lnglatArr, option) ............................................................................121 13.5 属性.............................................................................................................................122 13.5.1 id .........................................................................................................................122 13.5.2 TYPE ..................................................................................................................122 13.5.3 lnglatArr .............................................................................................................123 13.5.4 option ..................................................................................................................123 14 MGroundImage() ........................................................................................................................123 14.1 说明.............................................................................................................................123 14.2 命名空间 ....................................................................................................................123 14.3 继承.............................................................................................................................123 14.4 构造方法 ....................................................................................................................124 14.4.1 MGroundImage(lnglat,option) ..........................................................................124 14.5 属性.............................................................................................................................124 14.5.1 id .........................................................................................................................124 14.5.2 TYPE ..................................................................................................................124 14.5.3 lnglat ...................................................................................................................125 14.5.4 option ..................................................................................................................125 14.5.5 size ......................................................................................................................125 14.5.6 bounds.................................................................................................................125 命名空间:com.mapabc.maps.api.overlays.options .......................................................................126 15 MMarkerOptions()......................................................................................................................126 15.1 说明.............................................................................................................................126 15.2 命名空间 ....................................................................................................................126 15.3 构造方法 ....................................................................................................................126 15.3.1 MMarkerOptions().............................................................................................126 15.4 属性.............................................................................................................................126 15.4.1 imageUrl .............................................................................................................126 15.4.2 anchor .................................................................................................................127 15.4.3 imageAlign .........................................................................................................127 15.4.4 labelPosition .......................................................................................................128 15.4.5 labelAlign ...........................................................................................................128 15.4.6 labelOption .........................................................................................................128 15.4.7 isBounce .............................................................................................................128 15.4.8 bounceLocation ..................................................................................................129 15.4.9 tipOption.............................................................................................................129 15.4.10 canShowTip ........................................................................................................129 15.4.11 rotation................................................................................................................130 15.4.12 isEditable ............................................................................................................130 15.4.13 hasShadow..........................................................................................................130 15.4.14 picAgent .............................................................................................................130 15.4.15 zoomLevels ........................................................................................................131 15.4.16 isDimorphic ........................................................................................................131 北京图盟科技有限公司
13.
MapABC 地图应用程序编程接口-用户手册
15.4.17 dimorphicColor ..................................................................................................131 15.4.18 attributeValue .....................................................................................................131 16 MRadarOptions() ........................................................................................................................133 16.1 说明.............................................................................................................................133 16.2 命名空间 ....................................................................................................................133 16.3 构造方法 ....................................................................................................................133 16.3.1 MRadarOptions() ...............................................................................................133 16.4 属性.............................................................................................................................134 16.4.1 rotation................................................................................................................134 16.4.2 color ....................................................................................................................134 16.4.3 radius ..................................................................................................................134 16.4.4 fovea ...................................................................................................................134 16.4.5 isClosed ..............................................................................................................135 16.4.6 visible .................................................................................................................135 17 MLabelOptions() ........................................................................................................................136 17.1 说明.............................................................................................................................136 17.2 命名空间 ....................................................................................................................136 17.3 构造方法 ....................................................................................................................136 17.3.1 MLabelOptions() ...............................................................................................136 17.4 属性.............................................................................................................................136 17.4.1 fontStyle .............................................................................................................136 17.4.2 alpha....................................................................................................................136 17.4.3 hasBackground ...................................................................................................137 17.4.4 hasBorder ...........................................................................................................137 17.4.5 backgroundColor ...............................................................................................137 17.4.6 borderColor ........................................................................................................138 17.4.7 content ................................................................................................................138 17.4.8 zoomLevels ........................................................................................................138 18 MTipOptions() ............................................................................................................................139 18.1 说明.............................................................................................................................139 18.2 命名空间 ....................................................................................................................139 18.3 构造方法 ....................................................................................................................139 18.3.1 MTipOptions() ...................................................................................................139 18.4 属性.............................................................................................................................140 所有信息窗口共有属性 ...................................................................................................140 18.4.1 tipType ................................................................................................................140 18.4.2 content ................................................................................................................140 各种类型信息窗私有属性 ...............................................................................................140 18.4.3 title ......................................................................................................................140 18.4.4 hasShadow..........................................................................................................141 18.4.5 roundRectSize ....................................................................................................141 18.4.6 borderStyle .........................................................................................................141 18.4.7 titleFontStyle ......................................................................................................141 18.4.8 contentFontStyle ................................................................................................142 北京图盟科技有限公司
14.
MapABC 地图应用程序编程接口-用户手册
18.4.9 fillStyle ...............................................................................................................142 18.4.10 titleFillStyle ........................................................................................................142 18.4.11 tipHeight .............................................................................................................142 18.4.12 tipWidth ..............................................................................................................143 18.4.13 tipAlign ...............................................................................................................143 18.4.14 offset ...................................................................................................................143 19 MCorrectionTipOptions() ..........................................................................................................145 19.1 说明.............................................................................................................................145 19.2 命名空间 ....................................................................................................................145 19.3 构造方法 ....................................................................................................................145 19.3.1 MCorrectionTipOptions() .................................................................................145 19.4 属性.............................................................................................................................146 19.4.1 titleName ............................................................................................................146 19.4.2 address ................................................................................................................146 19.4.3 telephone ............................................................................................................146 19.4.4 details ..................................................................................................................146 19.4.5 imgUrl.................................................................................................................147 20 MLineOptions() ..........................................................................................................................147 20.1 说明.............................................................................................................................147 20.2 命名空间 ....................................................................................................................147 20.3 构造方法 ....................................................................................................................147 20.3.1 MLineOptions() .................................................................................................147 20.4 属性.............................................................................................................................148 20.4.1 lineStyle ..............................................................................................................148 20.4.2 tipOption.............................................................................................................148 20.4.3 canShowTip ........................................................................................................148 20.4.4 isEditable ............................................................................................................148 20.4.5 zoomLevels ........................................................................................................149 20.4.6 isDimorphic ........................................................................................................149 20.4.7 dimorphicColor ..................................................................................................149 21 MAreaOptions() ..........................................................................................................................151 21.1 说明.............................................................................................................................151 21.2 命名空间 ....................................................................................................................151 21.3 构造方法 ....................................................................................................................151 21.3.1 MAreaOptions() .................................................................................................151 21.4 属性.............................................................................................................................152 21.4.1 areaStyle .............................................................................................................152 21.4.2 tipOption.............................................................................................................152 21.4.3 canShowTip ........................................................................................................152 21.4.4 isEditable ............................................................................................................153 21.4.5 zoomLevels ........................................................................................................153 21.4.6 labelOption .........................................................................................................155 21.4.7 labelPosition .......................................................................................................155 21.4.8 isDimorphic ........................................................................................................155 北京图盟科技有限公司
15.
MapABC 地图应用程序编程接口-用户手册
21.4.9 dimorphicColor ..................................................................................................156 22 MGroundImageOptions() ...........................................................................................................157 22.1 说明.............................................................................................................................157 22.2 命名空间 ....................................................................................................................157 22.3 构造方法 ....................................................................................................................157 22.3.1 MGroundImageOptions() ..................................................................................157 22.4 属性.............................................................................................................................157 22.4.1 imageUrl .............................................................................................................157 22.4.2 picAgent .............................................................................................................158 22.4.3 originalLevel ......................................................................................................158 22.4.4 zoomLevels ........................................................................................................159 22.4.5 imageAlign .........................................................................................................159 23 MClusterOptions() ......................................................................................................................160 23.1 说明.............................................................................................................................160 23.2 命名空间 ....................................................................................................................160 23.3 构造方法 ....................................................................................................................160 23.3.1 MClusterOptions() .............................................................................................160 23.4 属性.............................................................................................................................160 所有类型点聚合通用属性 ...............................................................................................160 23.4.1 gridSize ...............................................................................................................160 23.4.2 maxZoom ...........................................................................................................161 23.4.3 attributeValue .....................................................................................................161 23.4.4 fontStyle .............................................................................................................161 绽放类型点聚合专用属性 ...............................................................................................161 23.4.5 centerMarkerURL ..............................................................................................161 23.4.6 aroundMarkerURL ............................................................................................162 23.4.7 flareDistance ......................................................................................................162 23.4.8 isUseMarkerIcon ................................................................................................162 23.5 常量.............................................................................................................................163 23.5.1 NORMAL_CLUSTER ......................................................................................163 23.5.2 FLARE_CLUSTER ...........................................................................................163 23.5.3 NO_CLUSTER ..................................................................................................163 23.5.4 TOTAL_NUMBER ...........................................................................................163 23.5.5 TOTAL_SUM ....................................................................................................164 命名空间:com.mapabc.maps.api.layers .........................................................................................164 24 MTileLayer () ..............................................................................................................................164 24.1 说明.............................................................................................................................164 24.2 命名空间 ....................................................................................................................164 24.3 构造方法 ....................................................................................................................164 24.3.1 MTileLayer (layerType,option) ........................................................................164 25 MDataLayer()..............................................................................................................................165 25.1 说明.............................................................................................................................165 25.2 命名空间 ....................................................................................................................165 25.3 构造方法 ....................................................................................................................165 北京图盟科技有限公司
16.
MapABC 地图应用程序编程接口-用户手册
25.3.1 MDataLayer(layerType,option) ........................................................................165 命名空间:com.mapabc.maps.api.layers.options............................................................................166 26 MTileLayerOptions()..................................................................................................................166 26.1 说明.............................................................................................................................166 26.2 命名空间 ....................................................................................................................166 26.3 构造方法 ....................................................................................................................166 26.3.1 MTileLayerOptions().........................................................................................166 26.4 属性.............................................................................................................................166 26.4.1 tileUrl ..................................................................................................................166 26.4.2 userId ..................................................................................................................167 26.4.3 tempId .................................................................................................................167 26.4.4 layerId .................................................................................................................167 26.4.5 alpha....................................................................................................................167 27 MDataLayerOptions() ................................................................................................................168 27.1 说明.............................................................................................................................168 27.2 命名空间 ....................................................................................................................168 27.3 构造方法 ....................................................................................................................168 27.3.1 MDataLayerOptions() .......................................................................................168 27.4 属性.............................................................................................................................168 27.4.1 layerId .................................................................................................................168 27.4.2 url ........................................................................................................................169 28 MGradientMapOptions() ............................................................................................................169 28.1 说明.............................................................................................................................169 28.2 命名空间 ....................................................................................................................169 28.3 构造方法 ....................................................................................................................169 28.3.1 MGradientMapOptions() ...................................................................................169 28.4 属性.............................................................................................................................170 28.4.1 pointsXMLString ...............................................................................................170 28.4.2 pointsXMLURL .................................................................................................170 28.4.3 radiusRatio .........................................................................................................170 28.4.4 maxRadius ..........................................................................................................170 28.4.5 minRadius...........................................................................................................171 28.4.6 maxValue ............................................................................................................171 28.4.7 colors ..................................................................................................................171 28.4.8 alpha....................................................................................................................171 29 MWMSLayerOptions() ..............................................................................................................172 29.1 说明.............................................................................................................................172 29.2 命名空间 ....................................................................................................................172 29.3 构造方法 ....................................................................................................................172 29.3.1 MWMSLayerOptions() .....................................................................................172 29.4 属性.............................................................................................................................173 29.4.1 WMSUrl .............................................................................................................173 命名空间:com.mapabc.maps.api.styles .........................................................................................173 30 MFontStyle() ...............................................................................................................................173 北京图盟科技有限公司
17.
MapABC 地图应用程序编程接口-用户手册
30.1 说明.............................................................................................................................173 30.2 命名空间 ....................................................................................................................173 30.3 构造方法 ....................................................................................................................173 30.3.1 MFontStyle() ......................................................................................................173 30.4 属性.............................................................................................................................174 30.4.1 name....................................................................................................................174 30.4.2 size ......................................................................................................................174 30.4.3 color ....................................................................................................................174 30.4.4 bold .....................................................................................................................175 31 MLineStyle() ...............................................................................................................................175 31.1 说明.............................................................................................................................175 31.2 命名空间 ....................................................................................................................175 31.3 构造方法 ....................................................................................................................175 31.3.1 MLineStyle() ......................................................................................................175 31.4 属性.............................................................................................................................176 31.4.1 thickness .............................................................................................................176 31.4.2 color ....................................................................................................................176 31.4.3 alpha....................................................................................................................176 31.4.4 lineType ..............................................................................................................176 32 MAreaStyle() ..............................................................................................................................177 32.1 说明.............................................................................................................................177 32.2 命名空间 ....................................................................................................................177 32.3 构造方法 ....................................................................................................................177 32.3.1 MAreaStyle() .....................................................................................................177 32.4 属性.............................................................................................................................178 32.4.1 borderStyle .........................................................................................................178 32.4.2 fillStyle ...............................................................................................................178 33 MFillStyle() .................................................................................................................................178 33.1 说明.............................................................................................................................178 33.2 命名空间 ....................................................................................................................178 33.3 构造方法 ....................................................................................................................178 33.3.1 MFillStyle() ........................................................................................................178 33.4 属性.............................................................................................................................179 33.4.1 color ....................................................................................................................179 33.4.2 alpha....................................................................................................................179 命名空间:com.mapabc.maps.api.basetypes ...................................................................................179 34 MLngLat() ...................................................................................................................................179 34.1 说明.............................................................................................................................179 34.2 命名空间 ....................................................................................................................180 34.3 构造方法 ....................................................................................................................180 34.3.1 MLngLat(longitude,latitude,TYPE) .................................................................180 34.4 属性.............................................................................................................................180 34.4.1 lngX ....................................................................................................................180 34.4.2 latY .....................................................................................................................181 北京图盟科技有限公司
18.
MapABC 地图应用程序编程接口-用户手册
34.4.3 TYPE ..................................................................................................................181 35 MLngLats() .................................................................................................................................181 35.1 说明.............................................................................................................................181 35.2 命名空间 ....................................................................................................................182 35.3 构造方法 ....................................................................................................................182 35.3.1 MLngLats(lnglatArr) .........................................................................................182 35.4 属性.............................................................................................................................182 35.4.1 lnglatArr .............................................................................................................182 36 MPoint() ......................................................................................................................................183 36.1 说明.............................................................................................................................183 36.2 命名空间 ....................................................................................................................183 36.3 构造方法 ....................................................................................................................183 36.3.1 MPoint(x,y) ........................................................................................................183 36.4 属性.............................................................................................................................183 36.4.1 x ..........................................................................................................................183 36.4.2 y ..........................................................................................................................184 37 MSize() ........................................................................................................................................184 37.1 说明.............................................................................................................................184 37.2 命名空间 ....................................................................................................................184 37.3 构造方法 ....................................................................................................................184 37.3.1 MSize(width,height) ..........................................................................................184 37.4 属性.............................................................................................................................185 37.4.1 width ...................................................................................................................185 37.4.2 height ..................................................................................................................185 38 MLngLatBounds() ......................................................................................................................185 38.1 说明.............................................................................................................................185 38.2 命名空间 ....................................................................................................................185 38.3 构造方法 ....................................................................................................................186 38.3.1 MLngLatBounds(southWest,northEast) ...........................................................186 38.4 属性.............................................................................................................................186 38.4.1 southWest ...........................................................................................................186 38.4.2 northEast.............................................................................................................186 39 MPixelBounds() ..........................................................................................................................187 39.1 说明.............................................................................................................................187 39.2 命名空间 ....................................................................................................................187 39.3 构造方法 ....................................................................................................................187 39.3.1 MPixelBounds(topLeftPt,rightBottomPt) ........................................................187 39.4 属性.............................................................................................................................187 39.4.1 maxX ..................................................................................................................187 39.4.2 maxY ..................................................................................................................188 39.4.3 minX ...................................................................................................................188 39.4.4 minY ...................................................................................................................188 命名空间:com.mapabc.maps.api.events ........................................................................................188 40 MEvent ........................................................................................................................................188 北京图盟科技有限公司
Baixar agora