No description, website, or topics provided.
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
dist
test
.bowerrc
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
.yo-rc.json
Gruntfile.js
LICENSE
README.md
bower.json
package.json

README.md

Angular.js angular-geopicker directive

This directive supports input of latitude and longitude. This directive will generate a text box. If this text box to active, a map will pop up. If you click on any point on the map, latitude and longitude are entered in this text box.

This directive uses the Open Streat Map.

Demo

Demo

Installation

Install with bower bower install https://github.com/fudekun/angular-geopicker.git --save Inject the dependency angular.module('testApp', ['angularGeopickerApp'])

Dependencies

This module depends by angular, angular-bootstrap, angular-leaflet-directive.

Usage

defaults

35.021004,135.755608

  • clat=35.021004
  • clng=135.755608
  • precision=6
  • sep = ","
  • rad = false
<input angular-geopicker></input>

Position

change the start position.

34.985355,135.758357

<input angular-geopicker clat=34.985355 clng=135.758357></input>

Format

Precision

35.021,135.756

<input angular-geopicker precision=3></input>
Separated string of latitude and longitude.

35.021004|135.755608

<input angular-geopicker sep="|"></input>
Degrees, minutes, seconds

35°41'22.484"N,139°41'29.882"E

<input angular-geopicker rad=true></input>
Examples

35°41'23.999"N|139°41'23.999"E

<input angular-geopicker clat=35.689487 clng=139.691706 precision=2 sep="|" rad=true></input>

License

MIT