Use the high-D map JS API to create a map app on your Web page.
1. Apply for a developer key first.
2. Introduce the map JS <script src= "http://webapi.amap.com/maps?v=1.3&key= your Application Key" in the page ></script>
By completing the above two steps, you can load the gold map on the page.
1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <MetaCharSet= "Utf-8">5 <Metahttp-equiv= "X-ua-compatible"content= "Ie=edge">6 <Metaname= "Viewport"content= "initial-scale=1.0, User-scalable=no, Width=device-width">7 8 <Scriptsrc= "http://webapi.amap.com/maps?v=1.3&key=efda1426d63ee7f7582d11fd6376cfed"></Script>9 <Scripttype= "Text/javascript"src= "Http://cache.amap.com/lbs/static/addToolbar.js"></Script>Ten <Scripttype= "Text/javascript"src= "Jquery.js"></Script> One <styletype= "Text/css"> A #container{ - Height:800px; - width:700px the } - </style> - </Head> - <Body> + <DivID= "Container"> - </Div> + <Script> A varMap= NewAmap.map ('Container', {zoom:Ten, resizeenable:true, center:[116.39757156,39.90973623]}); at varMarker= NewAmap.marker ({ - position:[121.62689209,38.91240739], - Map:map - }); - </Script> - </Body> in </HTML>
View Code
The German Map JS API uses