Package Exports
- react-input-latlng
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-input-latlng) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Latitude/Longitude masket input
A simple masked input for latitude/longitude coordinates.
Accepts degree or decimal coordinates.
Installation
npm install latlng --save
Usage
Give Lnglng a onChange callback:
import Latlng from './latlng';
...
<Latlng lat={this.state.lat} lng={this.state.lng} onChange={this.updatePoint} decimal=false/>
Props
- lat:
initial latitude (decimal coordinates) - lng:
initial longitude (decimal coordinates) - decimal:
if masked input uses decimal coordinates mask. - onChange: <function(lat,lng)> the function that will recieve the new lat/lng