http://developer.baidu.com/map/The key must be applied first.Map level: 3~18; the higher the level the more detailed
var point =new Bmap.point (116.404,39.915); it's the center of the map.
First, the public version
- Complete components, but the code is many, mainly facing the PC end, the mobile end consumption of traffic
Steps to use:
- Release--Tool support--map builder
- Create a map-get code
- Copy the code into the HTML file
- Copy your secret key to the corresponding location, behind "ak="
- The code can be modified to the appropriate content, such as: location title, location details, offset, center point, high map width
- Run the code, complete
- See the settings: Release--JavaScript API Volkswagen--Development guide
Second, the speed version
- With fewer components, facing the mobile side
Steps to use:
- Release--JavaScript API Speed--Development guide
- To add, adjust locations, delete controls, see: release -to- JavaScript API speed -up controls.
- You can also customize a control and remember to call it and add it to the map.
- Create an overlay (route, reminder landmark) for details, see: Release --the javascript API speed -up overlay .
- Location Events: Release --- javascript API speed --- events
- Open Browser Run
Third, components
- Components are added themselves, with their own component features for easy development
Steps to use:
- Release--Web Component api--> Development Guide. Note: The code on the mobile side is different.
Baidu Map API