shaula / leaflet-search

Leaflet Control for searching markers/features by attribute on map or remote searching in jsonp/ajax geocoding

Home Page:http://labs.easyblog.it/maps/leaflet-search/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leaflet Control Search

npm version

A Leaflet control that search markers/features location by custom property.
Support ajax/jsonp autocompletion and JSON data filter/remapping.

Copyright 2014 Stefano Cudini

Tested in Leaflet 0.7.2

Image

#Where

Demo online:
labs.easyblog.it/maps/leaflet-search

Source code:
Github
Bitbucket
NPM
Atmosphere

Bug tracking: Waffle.io

Websites that use Leaflet.Control.Search

#Examples (require src/leaflet-search.css)

Adding the search control to the map:

map.addControl( new L.Control.Search({layer: searchLayer}) );
//searchLayer is a L.LayerGroup contains searched markers

Short way:

L.map('map', { searchControl: {layer: searchLayer} });

#Build

Therefore the deployment require npm installed in your system.

npm install
grunt

About

Leaflet Control for searching markers/features by attribute on map or remote searching in jsonp/ajax geocoding

http://labs.easyblog.it/maps/leaflet-search/

License:MIT License


Languages

Language:JavaScript 79.9%Language:CSS 13.6%Language:HTML 6.5%