New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leaflet-locationpicker

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-locationpicker

Simple location picker with Leaflet map

  • 0.3.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
decreased by-31.25%
Maintainers
2
Weekly downloads
 
Created
Source

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:

  • Simple

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

Keywords

FAQs

Package last updated on 17 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc