Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
huanglii committed Apr 13, 2019
1 parent 0871c2b commit 0e3f5fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
node_modules/
test/
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -10,7 +10,7 @@ npm i cityselector-control
## Usage:

```javascript
new CitySelectControl(options: Object)
new CitySelectorControl(options: Object)
```

### Options:
Expand All @@ -27,7 +27,7 @@ new CitySelectControl(options: Object)
import CitySelectorControl from 'cityselector-control'
import 'cityselector-control/src/style.css'
// default options
map.addControl(new CitySelectControl(), 'top-right')
map.addControl(new CitySelectorControl(), 'top-right')

// custom options
const citySelectorOptions = {
Expand All @@ -36,7 +36,7 @@ const citySelectorOptions = {
hot: ['110000', '340500'],
zoom: 10
};
map.addControl(new CitySelectControl(citySelectorOptions), 'top-right');
map.addControl(new CitySelectorControl(citySelectorOptions), 'top-right');
```

## Screenshots:
Expand Down

0 comments on commit 0e3f5fd

Please sign in to comment.