JSPM

react-input-latlng

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q34528F
  • License ISC

ReactJS masked input for latitude/longitud

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