Skip to content

Commit

Permalink
*** Version V2.5.1 ***
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrinegateau committed Jun 4, 2021
1 parent 5dfb598 commit f433602
Show file tree
Hide file tree
Showing 27 changed files with 45 additions and 45 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@types/leaflet": "^1.5.19",
"@types/leaflet.markercluster": "^1.4.3",
"boosted": "^4.6.0",
"iotmapmanager": "^2.5.0",
"iotmapmanager": "^2.5.1",
"leaflet": "^1.6.0",
"leaflet.markercluster": "^1.4.1",
"zone.js": "^0.11.3"
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/css/map.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/css/markers.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/css/popup.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/css/tabs.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/import_png.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/iot-map-manager.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iotmapmanager",
"version": "2.5.0",
"version": "2.5.1",
"description": "Manage markers, clusters, user marker or paths on IotMaps",
"main": "dist/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# IotMapManager V2.5.0
# IotMapManager V2.5.1

This library provides management of markers dedicated to projects using mapping.
## use
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-area-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-area.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
3 changes: 1 addition & 2 deletions src/iotMapManager/src/iot-map-cluster-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -158,7 +158,6 @@ export class IotMapClusterManager {
// add marker to new layer
this.map.getLayer(currentClusterInfos.layer).addLayer(currentClusterObject)
}

}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/iotMapManager/src/iot-map-cluster.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -32,7 +32,7 @@ export class IotMapCluster extends IotMapDisplay {
* @param config - configuration to use to display cluster
*/
constructor (cluster: IotCluster, map: IotMapManager, config: IotMapConfig) {
super(cluster.location, { icon: getManualClusterIcon(cluster, config, false, false) })
super(cluster.location, { icon: getManualClusterIcon(cluster, config) })
this.data = cluster
this.map = map
this.config = config
Expand All @@ -55,7 +55,7 @@ export class IotMapCluster extends IotMapDisplay {
*/
public select (selected: boolean): void {
this.selected = selected
this.setIcon(getManualClusterIcon(this.data, this.config, this.selected, false))
this.setIcon(getManualClusterIcon(this.data, this.config))
this.setZIndexOffset((selected) ? 100 : 0)
}

Expand All @@ -78,7 +78,7 @@ export class IotMapCluster extends IotMapDisplay {
* Force cluster redrawing
*/
public redraw (): void {
this.setIcon(getManualClusterIcon(this.data, this.config, this.selected, false))
this.setIcon(getManualClusterIcon(this.data, this.config))
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-common-svg.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name: IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
6 changes: 3 additions & 3 deletions src/iotMapManager/src/iot-map-icons.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -51,7 +51,7 @@ export function getMarkerIcon (marker: IotMarker, config: IotMapConfig, selected
*
* @remarks use this function for manual clustering purpose
*/
export function getManualClusterIcon (cluster: IotCluster, config: IotMapConfig, selected = false, automatic: boolean): L.DivIcon {
export function getManualClusterIcon (cluster: IotCluster, config: IotMapConfig): L.DivIcon {
const svgGauge = computeClusterGauge(cluster, config)

// shadow
Expand Down Expand Up @@ -163,7 +163,7 @@ export function getManualClusterIcon (cluster: IotCluster, config: IotMapConfig,
*/
export function getAutomaticClusterIcon (leafletCluster: L.MarkerCluster, config: IotMapConfig): L.DivIcon {
const iotCluster: IotCluster = leafletClusterToIotCluster(leafletCluster, config)
return getManualClusterIcon(iotCluster, config, false, true) // automatic cluster
return getManualClusterIcon(iotCluster, config) // automatic cluster
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-marker-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-marker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-path-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-path.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-user-marker-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/iotMapManager/src/iot-map-user-marker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Software Name : IotMapManager
* Version: 2.5.0
* Version: 2.5.1
* SPDX-FileCopyrightText: Copyright (c) 2020 Orange
* SPDX-License-Identifier: MIT
*
Expand Down
23 changes: 12 additions & 11 deletions src/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class MapComponent implements AfterViewInit {
lng: 4.875
},
popup: {
title: 'Ecole Jean Rostand : ',
title: 'Ecole Jean Rostand : <a href="http://www.google.fr"> test </a>',
body: '<a href="https://bv.ac-grenoble.fr/carteforpub/uai/0260969M">ici</a>'
},
template: 'square',
Expand Down Expand Up @@ -317,14 +317,14 @@ export class MapComponent implements AfterViewInit {

clustersList: IotCluster[] = [
{
id: 'cluster 3',
id: 'cluster 1',
location: {
lat: 44.882,
lng: 4.895
},
contentLabel: 'interfaces',
colNumber: 2,
childCount: 1230,
childCount: 4860,
aggregation: [
{
singularState: 'registered',
Expand Down Expand Up @@ -376,7 +376,7 @@ export class MapComponent implements AfterViewInit {
}]
},
{
id: 'interfaces',
id: 'cluster 2',
location: {
lat: 44.882,
lng: 4.89
Expand Down Expand Up @@ -436,7 +436,7 @@ export class MapComponent implements AfterViewInit {
}]
},
{
id: 'entertainments',
id: 'cluster 3',
location: {
lat: 44.882,
lng: 4.885
Expand Down Expand Up @@ -647,7 +647,7 @@ export class MapComponent implements AfterViewInit {
content: '<img width=16 src="../assets/icons/check_your_balance.svg">'
},
'autos': {
content: 'Cars',
content: '<span class="iotmap-icons-4g"></span>',
type: TabType.large
}
},
Expand Down Expand Up @@ -675,11 +675,12 @@ export class MapComponent implements AfterViewInit {

this.iotMapAreaManager.addArea(this.zone)

setTimeout(() => { this.iotMapClusterManager.updateCluster('entertainments', { layer: 'meters' }) }, 3000)
setTimeout(() => { this.iotMapClusterManager.updateCluster('services', { layer: 'autos' }) }, 3000)
setTimeout(() => { this.iotMapClusterManager.redrawAll() }, 3000)
setTimeout(() => { this.iotMapClusterManager.updateCluster('cluster 1', { layer: 'autos' }) }, 6000)
setTimeout(() => { this.iotMapClusterManager.updateCluster('cluster 3', { layer: 'etablissements' }) }, 6000)

setTimeout(() => { this.iotMapMarkerManager.updateMarker('s1', { shape: { accuracy: 600 } }) }, 5000)
// setTimeout(() => { this.iotMapMarkerManager.removeMarker('s1')}, 5000)
setTimeout(() => { this.iotMapMarkerManager.updateMarker('s5', { shape: { accuracy: undefined } }) }, 5000)
// setTimeout(() => { this.iotMapMarkerManager.updateMarker('s1', { shape: { accuracy: 600 } }) }, 5000)
// // setTimeout(() => { this.iotMapMarkerManager.removeMarker('s1')}, 5000)
// setTimeout(() => { this.iotMapMarkerManager.updateMarker('s5', { shape: { accuracy: undefined } }) }, 5000)
}
}

0 comments on commit f433602

Please sign in to comment.