0.5.5 • Published 3 years ago

leaflet-geojson-selector v0.5.5

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

leaflet-geojson-selector

npm version

Show GeoJSON properties in a interactive menu and map

Copyright 2016 Stefano Cudini

Tested in Leaflet 0.7.x, 1.3.x

Licensed under the MIT

Image

#Where

Demo online:
opengeo.tech/maps/leaflet-geojson-selector

Source code:
Github
NPM

Options

OptionDefaultDescription
collapsedfalsecollapse panel list
position'bottomleft'position of panel list
listLabel'properties.name'GeoJSON property to generate items list
listSortBy'properties.name'property to sort items, default is listLabel
listItemBuildnullfunction list item builder
activeListFromLayertruehighlight of list item on layer hover
zoomToLayerfalse
listOnlyVisibleLayersfalseshow only items visible in map canvas
multiplefalseactive multiple selection
style{}style for GeoJSON features
activeClass'active'css class name for active list items
activeStylestyle for Active GeoJSON features
selectClass'selected'
selectStyle{}style for Selected GeoJSON features

Events

EventDataDescription
'selector:change'{selected, layers}fired after checked item in list, selected is true if any layer is selected

Methods

MethodArgumentsDescription
reload()layersearch text by external code

#Build

Since Version 1.4.7 this plugin support Grunt for building process. Therefore the deployment require NPM installed in your system. After you've made sure to have npm working, run this in command line:

npm install
grunt
0.5.5

3 years ago

0.5.4

6 years ago

0.5.2

6 years ago

0.5.0

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.3.6

6 years ago

0.4.0

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.2.2

9 years ago

0.2.0

9 years ago