Cumulocity-IoT / cumulocity-data-points-map-widget

The Data Points Map widget help you to display measurements and device locations on map. Runtime installation is available. Created by Global Presales.
Apache License 2.0
1 stars 2 forks source link
cumulocity cumulocity-iot cumulocity-widget datapoints global-presales iot-analytics map runtime widget widgets

Data Points Map Widget for Cumulocity

The Data Points Map widget help you to display measurements and device locations on map.

⚠️ This project is no longer under development. Please use cumulocity-data-points-map-widget-plugin for Application Builder >=2.x.x and Cumulocity >=1016.x.x⚠️

Please choose Data Points Map release based on Cumulocity/Application builder version:

APPLICATION BUILDER CUMULOCITY DATA POINTS MAP WIDGET
1.3.x >= 1011.x.x 2.x.x
1.2.x 1010.x.x 1.x.x

Features

Installation

Runtime Widget Deployment?

Installation of widget through Appbuilder?

Supported Cumulocity Environments:

Requirements:

External dependencies:


"angular-resize-event": "^2.1.0"

"fontawesome": "4.7.2"

"leaflet-extra-markers": "^1.2.1"

"leaflet2": "npm:leaflet@^1.6.0"

"@angular/material": "11.2.13"

"leaflet.markercluster": "^1.4.1

Installation Steps For App Builder:

Note: If you are new to App Builder or not yet downloaded/clone app builder code then please follow App builder documentation(Build Instructions) before proceeding further.

  1. Open Your existing App Builder project and install external dependencies by executing below command or install it manually.

    
    npm i angular-resize-event@2.1.0 fontawesome@4.7.2 leaflet-extra-markers@1.2.1 leaflet2@npm:leaflet@^1.6.0 @angular/material@11.2.13 leaflet.markercluster@1.4.1
    
  2. Grab the Data Points Map Latest Release Binary.

  3. Install the Binary file in app builder.

    
    npm i <binary file path>/gp-data-points-map-x.x.x.tgz
    
  4. Copy datapoints-map.less file from here and paste it at /cumulocity-app-builder/ui-assets/

  5. Open index.less located at /cumulocity-app-builder/ui-assets/

  6. Update index.less file with below Material theme. Import at first line in file/beginning of file(Please ignore this step if it already exist).

    
    @import '~@angular/material/prebuilt-themes/indigo-pink.css';
    
  7. Update index.less file with below datapoints-map.less. Import at last line/end of file.

    
    @import  'datapoints-map.less';
    
  8. Import GpDataPointsMapModule in custom-widget.module.ts file located at /cumulocity-app-builder/custom-widgets/

    
    import {GpDataPointsMapModule} from  'gp-data-points-map';
    
    @NgModule({
    
    imports: [
    
    GpDataPointsMapModule
    
    ]
    
    })
    
  9. Congratulation! Installation is now completed. Now you can run app builder locally or build and deploy it into your tenant.

    
    //Start App Builder
    
    npm run start
    
    // Build App
    
    npm run build
    
    // Deploy App
    
    npm run deploy
    

Build Instructions

Note: It is only necessary to follow these instructions if you are modifying/extending this widget, otherwise see the Installation Guide.

Requirements:

Instructions

  1. Clone the repository:

    
    git clone https://github.com/SoftwareAG/cumulocity-data-points-map-widget.git
    
  2. Change directory:

    
    cd cumulocity-data-points-map-widget
    
  3. (Optional) Checkout a specific version:

    
    git checkout <your version>
    
  4. Install the dependencies:

    
    npm install
    
  5. (Optional) Local development server:

    
    npm run start
    
  6. Build the app:

    
    npm run build
    
  7. Deploy the app:

    
    npm run deploy
    

QuickStart

This guide will teach you how to add widget in your existing or new dashboard.

NOTE: This guide assumes you have followed the Installation instructions

  1. Open you application from App Switcher

  2. Add new dashboard or navigate to existing dashboard

  3. Click Add Widget

  4. Search for Data Points Map

  5. Select Target Assets or Devices

  6. Select Measurement from dropdown

  7. Click Save

Congratulations! Data Points Map is configured.

User Guide

Data Points Map On Screen Options:


This widget is provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.


For more information you can Ask a Question in the TECHcommunity Forums.

You can find additional information in the Software AG TECHcommunity.