0.3.4 • Published 3 years ago

leaflet-locationpicker v0.3.4

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

Leaflet Location Picker

npm version

Simple location picker with Leaflet map

Usage:

<label>Insert a Geo Location 
	<input id="geoloc" type="text" value="" />
</label>
$('#geoloc').leafletLocationPicker();

Examples:

Image

Options

OptionDefaultDescription
classNamebaseClassNamecss classname applied to widget
locationoptsMap.centerinitial map center
locationFormat'{lat}{sep}{lng}'returne format of location value
locationMarkertruerender manker on map
locationDigits6coordinates precision
locationSep','coordinates separator
position'topright'position relative to input
layer'OSM'base layer on map
height140height of map
width200with f map
event'click'event to fire location pick
cursorSize'30px'size of cross cursor
mapoptsMapcustom leflet map options
onChangeLocation$.noopcallback retuned location after pick from map
alwaysOpenfalsealways open Maps (without close button)
mapContainer""

Install

npm install --save leaflet-locationpicker

Build

Therefore the deployment require npm installed in your system.

npm install
grunt

Source

0.3.4

3 years ago

0.3.3

4 years ago

0.3.2

5 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.0

10 years ago

0.1.7

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.2

10 years ago

0.1.0

10 years ago

0.0.4

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago