Skip to content
 
 

Repository files navigation

Smart MaaS
SMART MOBILITY SERVICE PLATFORM
Smart MaaS

ContactProject Page


Leaflet map viewer widget


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.

Leaflet Map Operator

The widget includes the following leaflet plugins, which you can use depending on your wishes and the NGSIv2 entities available:

Examples of visualization options

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 1 NGSIv2 Data

    Example 1 NGSIv2 Data

  • Example with default tooltip

    Example 2

    Example 2

  • Motion Animation

    Motion Animation NGSIv2 Data

  • Moving Marker Animation

    Moving Marker Animation NGSIv2 Data

  • Snake Animation

    Motion Animation NGSIv2 Data

and much more...

Build

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 bower

Install other npm dependencies by running:

npm install

In order to build this operator you need to download grunt:

sudo npm install -g grunt-cli

And now, you can use grunt:

grunt

If everything goes well, you will find a wgt file in the dist folder.

Documentation

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 and License

Copyright (c) 2018 CoNWeT Licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages