3.21.3 • Published 8 years ago
udian-map v3.21.3
angular2-baidu-map
Baidu-Map module for Angular8
Read full documentation here: documentation
Read code example here: example
Be aware that it is a totally rewrite version, therefore, backward compatibility is not considered
- If you are using the previous version
3.x
, read it here - If you are using the previous version
4.x
, read it here
Getting started
npm install angular2-baidu-map
Usage
app.module.ts
import { BrowserModule } from '@angular/platform-browser'
import { NgModule } from '@angular/core'
import { AppComponent } from './app.component'
import { BaiduMapModule } from 'angular2-baidu-map'
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, BaiduMapModule.forRoot({ ak: 'your ak' })],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
app.component.ts
import { Component } from '@angular/core'
import { MapOptions } from 'angular2-baidu-map'
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: []
})
export class AppComponent {
options: MapOptions
constructor() {
this.options = {
centerAndZoom: {
lat: 39.920116,
lng: 116.403703,
zoom: 16
},
enableKeyboard: true
}
}
}
app.component.html
<baidu-map [options]="options" style="display: block; width: 550px; height: 350px;"></baidu-map>
For more information, see documentation
LICENSE
3.21.3
8 years ago
3.21.1
8 years ago
3.20.29
8 years ago
3.20.28
8 years ago
3.20.27
8 years ago
3.20.26
8 years ago
3.20.25
8 years ago
3.20.23
8 years ago
3.20.22
8 years ago
3.20.21
8 years ago
3.20.20
8 years ago
3.20.18
8 years ago
3.20.17
8 years ago
3.20.16
8 years ago
3.20.15
8 years ago
3.20.13
8 years ago
3.20.11
8 years ago
3.20.10
8 years ago
3.20.9
8 years ago
3.20.8
8 years ago
3.20.7
8 years ago
3.20.6
8 years ago
3.20.5
8 years ago
3.20.4
8 years ago
3.20.3
8 years ago
3.20.2
8 years ago
3.20.1
8 years ago
3.1.0
8 years ago
3.0.6
8 years ago
3.0.4
8 years ago
3.0.3
8 years ago
3.0.2
8 years ago