All service products
Developer Channel
Service upgrade
Sign in

The document is completely updated

More scientific visual experience, more efficient page structure, go to experience!

Experience the new version
JavaScript API GL
Updated on: July 20, 2022
Product Introduction

Baidu Maps JavaScript API GL is a set of application program interface written in JavaScript language. It uses WebGL to render maps, covers, etc., and supports 3D view to display maps. Help developers build map applications with rich functions and strong interactivity on the website, and support browser based map application development on PC and mobile terminals. JavaScript API GL provides rich functional interfaces, including map display, positioning, coverage, retrieval, route planning, etc., to adapt to diverse business scenarios.

Baidu Maps JavaScript API supports HTTP and HTTPS and is open to the public for free. Before using, you need to Request Key (ak) Can be used. Before you use Baidu Maps JavaScript API, please read Baidu Map Open Platform Terms of Service For any non-profit application, please use it directly. For commercial application, please refer to Instructions

For the usage of JavaScript API GL, please refer to developer's guide For detailed interface class description, please refer to Class Reference For a quick understanding of the functions supported by JavaScript API GL, please refer to Sample Center The provided sample demo. If you encounter technical problems during use, you can view common problem Or through a work order contact us

Core function guidance
Getting Started Guide
Create Map
Covering
event processing
Dynamic effect
LBS service
Layer Services
Core function experience
  • The document is useless

  • Poor documentation

  • Average document level

  • Good documentation

  • The documentation is very good

If you find a document error, or have better suggestions for this document, please feedback below. Please go to Feedback platform Submit work order consultation.

Submit feedback

Drag dimension tool

Add Rectangular Callout

Add Arrow Callout

complete

cancel