GithubHelp home page GithubHelp logo

silvio-pardo / leaflet-geojson-selector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stefanocudini/leaflet-geojson-selector

0.0 0.0 0.0 814 KB

Show GeoJSON Layer like as Interactive Menu List

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

JavaScript 71.36% HTML 19.92% CSS 8.72%

leaflet-geojson-selector's Introduction

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:
labs.easyblog.it/maps/leaflet-geojson-selector

Source code:
Github
NPM

Options

Option Default Description
collapsed false collapse 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
listItemBuild null function list item builder
activeListFromLayer true highlight of list item on layer hover
zoomToLayer false
listOnlyVisibleLayers false show only items visible in map canvas
multiple false active multiple selection
style {} style for GeoJSON features
activeClass 'active' css class name for active list items
activeStyle style for Active GeoJSON features
selectClass 'selected'
selectStyle {} style for Selected GeoJSON features

Events

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

Methods

Method Arguments Description
reload() layer search 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

leaflet-geojson-selector's People

Contributors

stefanocudini avatar stefangrotz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.