Merge pull request #24249 from MaShizhen/master

baidumap-web-sdk
This commit is contained in:
Arthur Ozga
2018-03-16 13:54:25 -07:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
@@ -20,5 +20,8 @@ namespace BMapTests {
map.addOverlay(marker);
marker.setAnimation(BMAP_ANIMATION_BOUNCE);
}
public create_map(map: BMap.Map, city: string) {
map.centerAndZoom(city);
}
}
}
+1
View File
@@ -56,6 +56,7 @@ declare namespace BMap {
getZoom(): number
getPanorama(): Panorama
centerAndZoom(center: Point, zoom: number): void
centerAndZoom(city: string): void
panTo(center: Point, opts?: PanOptions): void
panBy(x: number, y: number, opts?: PanOptions): void
reset(): void