API
API
a)Map
API
Map(container:String|HTMLElem
ent[,opts:MapOptions])
enableDragging()
disableDragging(
)
enableScrollWhee
lZoom()
End
disableKeyboard( )
enableInertialDr agging()
disableInertialD ragging()
enableContinuous none
(自1.1
(自1.1 none
none
none
disableScrollWhe elZoom()
enableDoubleClic kZoom()
disableDoubleCli ckZoom()none none none none none none
enableKeyboard()none
PgUp、PgDn、Home
API Zoom()
disableContinuou sZoom()
enablePinchToZoo m()
disablePinchToZo om()none
(自1.1
(自1.1
(自1.1
(自1.1 none
none
getBounds()Bou nds
Poi nt
Num ber
Map
getMapType()Typ
es
getSize()Siz e
getCenter()
getDistance(start:Point,
end:Point)(自1.1
(自1.1
getViewport(view:Array<Point>[, viewportOptions: ViewportOptions])Vie
wpodi palomo
rt
center zoom
(自1.1
getZoom()Num ber
Str ing
toString()
centerAndZoom(center:Point, zoom:Number)no
ne
x
y
BMAP_PERSPECTIVE_MAP centerAndZoom
no
ne
no
ne
zoomIn()var map=new BMap.Map(“container”, {mapType:BMAP_PERSPECTIVE_MAP});
map.tCurrentCity(“北京市”);
图书馆英语
BMAP_NORMAL_MAP,则在调tMapType
(自1.1
panTo(center:Point)no ne
panBy(x:Number,y:Number)no ne
no ne
no ne
ret()
tCenter(center:Point)
tCurrentCity(city:String)no ne
men in black
tMapType(mapType:MapTypes) tViewport(view:Array<Point>|View
port[, ViewportOptions])viewportOptions:
no
ne
no
ne
(自1.1
(自1.1
zoomTo(zoom:Number)
zoomOut()
no ne
addControl(control :Control)
removeControl(cont rol:Control)
none
Control.initialize()方法,并将控件的容器元素添加到
none
getContainer()
HTMLEl ement
addContextMenu(menu:ContextMenu)removeContextMenu(menu:ContextMenu)
none none
addOverlay(overlay:Overl ay)
removeOverlay(overlay:Ov erlay)九年级英语unit9
clearOverlays()
openInfoWindow(infoWnd:I nfoWindow,point:Point)
bloom是什么意思
cloInfoWindow()none
Pixel
(自1.1
Point
InfoWin dow|Nul
(自1.1
null 。none
nonepolyester是什么意思
none
none
pointToOverlayPixel(poin t:Point)
overlayPixelToPoint(pixe l:Pixel)
getInfoWindow()
l
getOverlays()Array<O
verlay>
(自1.1
(自1.1
HTML
{
floatPane,
markerMouTarget,
floatShadow,
labelPane,
markerPane,
mapPane
百度英文词典
}
(自1.1
getPanes()Object
addTileLayer(tileLayer:TileLayer)
removeTileLayer(tilelayer:TileLay er)
getTileLayer(mapType:String)none none TileLayer
pixelToPoint(pixel:Pixel) pointToPixel(point:Point)Point Pixel
click event{type,target,
click click dblclick
(自1.1
browrdblclic k
bogourightcl ick event{type,
pixel,point}
event{type,target,
target, point,pixel,overlay} point,pixel,overlay}