Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leftstick committed Jun 6, 2016
1 parent 6251e00 commit d4d4af8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm install angular2-baidu-map

```javascript
import {Component, OnInit} from '@angular/core';
import {BaiduMap, OfflineOptions} from 'angular2-baidu-map';
import {BaiduMap, OfflineOptions, ControlAnchor} from 'angular2-baidu-map';

@Component({
selector: 'map-presentation',
Expand Down Expand Up @@ -52,7 +52,10 @@ export class MainApp implements OnInit {
latitude: 31.245554,
title: 'Where',
content: 'Put description here'
}]
}],
geolocationCtrl: {
anchor: ControlAnchor.BMAP_ANCHOR_BOTTOM_RIGHT
}
};

this.offlineOpts = {
Expand Down

0 comments on commit d4d4af8

Please sign in to comment.