All Projects → stefanocudini → leaflet-layerJSON

stefanocudini / leaflet-layerJSON

Licence: MIT license
Build dynamic JSON Layer via Ajax/JSONP with caching

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to leaflet-layerJSON

wegue
Template and components for webmapping applications with OpenLayers and Vue.js
Stars: ✭ 71 (-13.41%)
Mutual labels:  webgis, webmapping
georaster-layer-for-leaflet
Display GeoTIFFs and soon other types of raster on your Leaflet Map
Stars: ✭ 168 (+104.88%)
Mutual labels:  leaflet, webgis
leaflet-locationpicker
Simple location picker on Leaflet map
Stars: ✭ 31 (-62.2%)
Mutual labels:  webgis, webmapping
leaflet-geojson-selector
Show GeoJSON Layer like as Interactive Menu List
Stars: ✭ 88 (+7.32%)
Mutual labels:  leaflet, web-mapping
harp-leaflet
Leaflet plugin for harp.gl
Stars: ✭ 16 (-80.49%)
Mutual labels:  leaflet, leaflet-layer
mars2d
【Mars2D平台 】主仓库,包含所有开源仓库清单导航
Stars: ✭ 182 (+121.95%)
Mutual labels:  leaflet, webgis
Mapstore2
Modern webmapping with OpenLayers, Leaflet and React
Stars: ✭ 251 (+206.1%)
Mutual labels:  leaflet
fishfrymap
Fish Fry Map project repository
Stars: ✭ 14 (-82.93%)
Mutual labels:  leaflet
Leaflet Groupedlayercontrol
Leaflet layer control with support for grouping overlays together.
Stars: ✭ 216 (+163.41%)
Mutual labels:  leaflet
Ngx Leaflet Starter
A soup of Angular and Leaflet
Stars: ✭ 208 (+153.66%)
Mutual labels:  leaflet
OoT-Interactive-Map
Interactive Map for the world of Zelda: Ocarina of Time
Stars: ✭ 22 (-73.17%)
Mutual labels:  leaflet
objmap
Breath of the Wild object map
Stars: ✭ 61 (-25.61%)
Mutual labels:  leaflet
geogrid.js
Leaflet plugin for Visualizing Discrete Global Grid Systems
Stars: ✭ 37 (-54.88%)
Mutual labels:  leaflet
Atlas Of Thrones
An interactive "Game of Thrones" map powered by Leaflet, PostGIS, and Redis.
Stars: ✭ 253 (+208.54%)
Mutual labels:  leaflet
leaflet.migrationLayer
Migration data visualization on map
Stars: ✭ 125 (+52.44%)
Mutual labels:  leaflet
Opengrid
A user-friendly, map-based tool to combine and explore real-time or historical data.
Stars: ✭ 237 (+189.02%)
Mutual labels:  leaflet
Leaflet Cluster Example
🗺 Example of using the clustering plugin with Leaflet
Stars: ✭ 26 (-68.29%)
Mutual labels:  leaflet
Leaflet Panel Layers
Leaflet Control Layers extended with support groups and icons
Stars: ✭ 210 (+156.1%)
Mutual labels:  leaflet
wp-plugin-trackserver
A WordPress plugin for GPS tracking and publishing
Stars: ✭ 34 (-58.54%)
Mutual labels:  leaflet
leaflet-velocity
Visualise velocity data on a leaflet layer
Stars: ✭ 467 (+469.51%)
Mutual labels:  leaflet

Leaflet JSON Layer

npm version

Simple way for transform any JSON data source in a Leaflet Layer!

A Dynamic Leaflet Layer that load JSON data in layer in the form of markers with attributes

and minimize remote requests with caching system

Tested in Leaflet 0.7 and 1.1

Options

Option Data Description
url String remote url
jsonpParam String callback parameter name for jsonp request append to url
jsonpParam String callback parameter name for jsonp request append to url
callData Function custom function for data source, params: (req: url
Filtering
propertyItems String json property used contains data items
propertyLoc String json property used as Latlng of marker, if is array: ['lat','lon'] select double fields
locAsGeoJSON String interpret location data as [lon, lat] value pair instead of [lat, lon]
propertyTitle String json property used as title in marker
filterData Function function for pre-filter data
Rendering
dataToMarker Function function that will be used for creating markers from json points
layerTarget L.Layer pre-existing layer to add markers(L.LayerGroup, L.MarkerClusterGroup)
buildPopup Function function popup builder
optsPopup String popup options
buildIcon Function function icon builder
Caching
minZoom Number min zoom for call data
caching Boolean remote requests caching
cacheId Function function to generate id used to uniquely identify data items in cache
minShift Number min shift for update data(in meters)
precision Number number of digit send to server for lat,lng precision
updateOutBounds String request new data only if current bounds higher than last bounds
updateMarkers Boolean update all markers in map to last results of callData

Events

Event Data Description
'dataloading' {req: url bbox}
'dataloaded' {data: json} fired on ajax/jsonp request success

Usage

var l = new L.LayerJSON({url: "search.php?lat1={lat1}&lat2={lat2}&lon1={lon1}&lon2={lon2}" });
map.addLayer(l);

Where

Demos:

https://opengeo.tech/maps/leaflet-layerjson

Source:

Github

Atmosphere

Build

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].