https://github.com/appleple/geo-picker
https://github.com/appleple/geo-picker
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/appleple/geo-picker
- Owner: appleple
- License: mit
- Created: 2018-08-30T05:50:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T02:04:19.000Z (almost 8 years ago)
- Last Synced: 2025-02-26T19:39:15.936Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://rawgit.com/appleple/geo-picker/master/test/index.html
- Size: 809 KB
- Stars: 4
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GeoPicker
## Screenshot

## Demo
[https://rawgit.com/appleple/geo-picker/master/test/index.html](https://rawgit.com/appleple/geo-picker/master/test/index.html)
## Install
```sh
npm install leaflet geo-picker --save
```
## Usage
js
```js
const editor = new GeoPicker('.js-geo-picker');
```
html
```html
- 緯度
- 経度
- ズーム
- 吹き出し ( HTML可 )
- 吹き出しのメッセージが入ります
```
## Method
update pin location
```js
editor.updatePin({lat, lng, zoom});
```
destroy the editor
```js
editor.destroy();
```