Baidu Map Create 3D Map

Source: Internet
Author: User

<!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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.