JavaScript API v2.0
JavaScript API v2.0
Baidu Map JavaScript API is a set of application programming interfaces written in JavaScript language that can help you build functionality into your website A rich, highly interactive map application that supports browser-based map application development on PC and mobile, and supports map development with HTML5 features.
This API is free and open to the public. Starting from version v1.5, you need to apply for a key (ak) before you can use it. There is no limit on the number of times the interface can be used (except for the function of sending text messages).
Before you use the Baidu Map JavaScript API, please read the Baidu Map API Terms of Use. Please use it directly for any non-profit applications, and please refer to the instructions for use for commercial applications.
JavaScript API is the first to support HTTPS and is fully open. You can use it directly without applying. , it is also recommended that you authenticate your enterprise information. Web API products can obtain higher quotas.
Note: Only JavaScript API V2.0 and above support https, other JavaScript API versions do not support it. To use https service, please check your version and configuration precautions first.
- # Panoramic view display
- Supports the display of multiple city panoramas (street views, indoor real-life images)
- Visually display the data distribution by setting the heat map radius, color, transparency and other parameters
- Supports setting the display and hiding of map base map elements and display style (such as dark, light color)
- Supports the display, panning and zooming of 2D, 3D and satellite images , drag and drop operations
- One of the supported cities /Multi-keyword search
- ##Peripheral searchSupports the display of multiple city panoramas (street views, indoor real-life images)
- Region search Use visual range, circular area, and Bounds to perform area or Nationwide search
##Bus search- City-wide bus search, Return to multiple transfer options
#Drive search- Support nationwide Driving search, returns multiple transfer options
Support adding points, lines, surfaces, hot spots, labels, custom overlays, administrative divisions, etc.##Covering
#Reverse/Geocoding
Support conversion between Baidu coordinates and address informationReal-time traffic
Support real-time traffic display in multiple cities across the country##Cloud Pocket MapUser data is stored in the LBS cloud, and the map display of massive data can be realized using the Pocket Map function
##Sending location information via text messageSupports sending location point information through the retrieval information window.
POI details display# #Arc drawing functionOpen retrieval POI details (such as Descriptions, comments, flavors, etc.), supporting information windows, lists, and customized display
Supports arc drawing function, and the starting and end points can be dragged to change the shape of the arc.