The Leaflet map viewer widget is a WireCloud widget.
Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps and is also integrated into Wirecloud by means of this widget.
With this widget you have different possibilities to visualize and display your NGSIv2 data on a map depending on the entity type.
The widget includes the following leaflet plugins, which you can use depending on your wishes and the NGSIv2 entities available:
To know what colors and icons are available to you, take a closer look at the plugin Leaflet.awesome-markers.
-
Example with small tooltip and clustering
-
Example with default tooltip
-
Motion Animation
-
Moving Marker Animation
-
Snake Animation
and much more...
Be sure to have installed Node.js and Bower in your system. For example, you can install it on Ubuntu and Debian running the following commands:
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
sudo apt-get install npm
sudo npm install -g bowerInstall other npm dependencies by running:
npm installIn order to build this operator you need to download grunt:
sudo npm install -g grunt-cliAnd now, you can use grunt:
gruntIf everything goes well, you will find a wgt file in the dist folder.
Documentation about how to use this widget is available on the User Guide. Anyway, you can find general information about how to use widgets on the WireCloud's User Guide available on Read the Docs.
Copyright (c) 2018 CoNWeT Licensed under the MIT license.









