Skip to content

Commit

Permalink
Merge pull request huiyan-fe#57 from zenghongtu/master
Browse files Browse the repository at this point in the history
merge pr#57 add geolocation-control
  • Loading branch information
Junior2Ran authored Jan 17, 2019
2 parents 45333e5 + db9b5c9 commit 20fa8c5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/geolocation-control.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Control from './control';

export default class GeolocationControl extends Control {
constructor(args) {
super(args);
}

get options() {
return ['anchor', 'offset', 'showAddressBar', 'enableAutoLocation', 'locationIcon'];
}

getControl() {
return new BMap.GeolocationControl(this.getOptions(this.options));
}

}

0 comments on commit 20fa8c5

Please sign in to comment.