All Projects → lit-forest → leaflet.migrationLayer

lit-forest / leaflet.migrationLayer

Licence: MIT license
Migration data visualization on map

Programming Languages

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

Projects that are alternatives of or similar to leaflet.migrationLayer

Greinerhormann
Greiner-Hormann polygon clipping algorithm. Does AND, OR, XOR. Plays nicely with Leaflet. Handles non-convex polygons and multiple clipping areas. ~3kb footprint, no dependencies
Stars: ✭ 176 (+40.8%)
Mutual labels:  leaflet
Ngx Leaflet Starter
A soup of Angular and Leaflet
Stars: ✭ 208 (+66.4%)
Mutual labels:  leaflet
maptiles
Map tile generator. Converts an image into map tiles using ImageMagick. Map tiles can be used in Google Maps, Leaflet and other map rendering software.
Stars: ✭ 52 (-58.4%)
Mutual labels:  leaflet
Geopackage Js
GeoPackage JavaScript Library
Stars: ✭ 191 (+52.8%)
Mutual labels:  leaflet
Ember Leaflet
🔥 🍃 Easy and declarative mapping for ember
Stars: ✭ 201 (+60.8%)
Mutual labels:  leaflet
Leaflet Groupedlayercontrol
Leaflet layer control with support for grouping overlays together.
Stars: ✭ 216 (+72.8%)
Mutual labels:  leaflet
Tangram
WebGL map rendering engine for creative cartography
Stars: ✭ 1,964 (+1471.2%)
Mutual labels:  leaflet
geogrid.js
Leaflet plugin for Visualizing Discrete Global Grid Systems
Stars: ✭ 37 (-70.4%)
Mutual labels:  leaflet
React Leaflet Markercluster
React wrapper of the official Leaflet.markercluster for react-leaflet
Stars: ✭ 202 (+61.6%)
Mutual labels:  leaflet
Atlas Of Thrones
An interactive "Game of Thrones" map powered by Leaflet, PostGIS, and Redis.
Stars: ✭ 253 (+102.4%)
Mutual labels:  leaflet
Mapsapi
Карты 2ГИС — это точные данные обо всех объектах города, включая новостройки, с детализацией до заборов и внутриквартальных проездов.
Stars: ✭ 193 (+54.4%)
Mutual labels:  leaflet
React Leaflet Demo
Demo of a Leaflet map created with React
Stars: ✭ 200 (+60%)
Mutual labels:  leaflet
Opengrid
A user-friendly, map-based tool to combine and explore real-time or historical data.
Stars: ✭ 237 (+89.6%)
Mutual labels:  leaflet
Wind Layer
🎏 🚀 wind-layer | a openlayers && amap && bmap && leaflet && mapbox-gl extension to windjs
Stars: ✭ 188 (+50.4%)
Mutual labels:  leaflet
echarty
Minimal R/Shiny Interface to ECharts.js
Stars: ✭ 49 (-60.8%)
Mutual labels:  leaflet
Leaflet Tilelayer Baidugaode
leaflet 加载百度瓦片地图图层 以及高德 、天地图等国内常用地图
Stars: ✭ 175 (+40%)
Mutual labels:  leaflet
Leaflet Panel Layers
Leaflet Control Layers extended with support groups and icons
Stars: ✭ 210 (+68%)
Mutual labels:  leaflet
fishfrymap
Fish Fry Map project repository
Stars: ✭ 14 (-88.8%)
Mutual labels:  leaflet
wp-plugin-trackserver
A WordPress plugin for GPS tracking and publishing
Stars: ✭ 34 (-72.8%)
Mutual labels:  leaflet
Mapstore2
Modern webmapping with OpenLayers, Leaflet and React
Stars: ✭ 251 (+100.8%)
Mutual labels:  leaflet

leaflet.migrationLayer

leafet.migrationLayer is used to show migration data such as population, flight, vehicle, traffic and so on. Data visualization on map.

Supported Browsers

Internet Explorer 10+
Google Chrome
Safari
Firefox

Demo online

A demo is available on the Github Pages webpage for leaflet.migrationLayer Check out demo!.

Usage

1.Include the JavaScript files located in \dist directory.

<script src="./dist/leaflet.migrationLayer.js"></script>

2.Create a new migrationLayer

var migrationLayer = new L.migrationLayer({
    map: map,
    data: data
})

3.update or set data to migrationLayer

migrationLayer.setData(newData);

4.hide migrationLayer

migrationLayer.hide();

5.show migrationLayer

migrationLayer.show();

6.pause migrationLayer animation

migrationLayer.pause();

7.play migrationLayer animation

migrationLayer.play();

8.destroy migrationLayer

migrationLayer.destroy();

API(options)

option Description Default Value Possible values Required
map the map obj null Map yes
data data for migrationLayer null Json yes
pulseRadius the pulse radius 25 any number>0 no
pulseBorderWidth pulse border width 3 any number>0 no
arcWidth arc width 1 any number>0 no
arcLabel show from and to label true Bool no
arcLabelFont label font and size '15px sans-serif' 'size font' no
maxWidth the max width of arc 10 any number>1 no

data format

data = [{"from":[-118.2705,33.9984],"to":[-122.789336,37.920458],"labels":["Los Angeles","San Francisco"],"color":"#ff3a31","value":15}];

If the value is not undefined, the width of arc will depend on the value.

Leaflet Version

Requires Leaflet 1.0.2 or newer

License

MIT.

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].