<!DOCTYPE HTML><HTML><Head> <Metaname= "Viewport"content= "initial-scale=1.0, User-scalable=no" /> <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /> <Scripttype= "Text/javascript"src= "http://api.map.baidu.com/api?v=1.4"></Script> <Scripttype= "Text/javascript"src= "Http://api.map.baidu.com/library/TextIconOverlay/1.2/src/TextIconOverlay_min.js"></Script> <Scripttype= "Text/javascript"src= "Http://api.map.baidu.com/library/MarkerClusterer/1.2/src/MarkerClusterer_min.js"></Script> <Scripttype= "Text/javascript"src= "Http://api.map.baidu.com/library/LuShu/1.2/src/LuShu_min.js"></Script> <title>28.1 Creating a Map</title></Head><Body> <Divclass= "wrapper"> <Divclass= "Container Clearfix"> <Divclass= "Clearfix"> <Divstyle= "Clear:both;"> <Divstyle= "float:left; width:500px; height:340px; border:1px solid Gray"ID= "Container"> </Div> <Divstyle= "float:right; width:400px;"> <P>Turn on Wheel zoom</P> <P>close Double click to enlarge</P> <P>Turn on keyboard operation</P> <P>Description: The top, bottom, left, and right keys of the keyboard can move the map continuously. Press one of the two keys simultaneously to move the map diagonally. The PgUp, PgDn, home, and end keys translate the map to its 1/2 size. The +,-key will make the map zoom in or out one level. </P> </Div> </Div> </Div> </Div> </Div></Body></HTML><Scripttype= "Text/javascript"> varMap= NewBmap.map ("Container"); //Create a Map instance var Point= NewBmap.point (116.404, 39.950507); //Create point coordinatesMap.centerandzoom (Point, -); //initialize map, set center point coordinates and map levelMap.setmaptype (bmap_perspective_map);//Modify map type to 3D mapmap.setcurrentcity ("Beijing"); //Set Current Citymap.enablescrollwheelzoom ();//turn on the wheel zoom functionmap.disabledoubleclickzoom ();//turn off double-click Zoom functionMap.enablekeyboard ();//Turn on keyboard operation function </Script>
Baidu Map Create 3D Map