@sapui5/sap.ui.vbm 1.93.1 → 1.96.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/ui/vbm/.library +1 -1
- package/src/sap/ui/vbm/Adapter.js +17 -13
- package/src/sap/ui/vbm/Adapter3D.js +1 -1
- package/src/sap/ui/vbm/Areas.js +7 -8
- package/src/sap/ui/vbm/Cluster.js +4 -3
- package/src/sap/ui/vbm/ClusterBase.js +4 -7
- package/src/sap/ui/vbm/ClusterRenderer.js +0 -1
- package/src/sap/ui/vbm/Containers.js +3 -5
- package/src/sap/ui/vbm/GeoJsonLayer.js +9 -10
- package/src/sap/ui/vbm/GeoMap.js +3 -2
- package/src/sap/ui/vbm/VBI.js +40 -8
- package/src/sap/ui/vbm/Viewport.js +6 -5
- package/src/sap/ui/vbm/VoAggregation.js +3 -5
- package/src/sap/ui/vbm/adapter3d/ModelHandler.js +1 -1
- package/src/sap/ui/vbm/adapter3d/ObjectFactory.js +1 -1
- package/src/sap/ui/vbm/adapter3d/PolygonHandler.js +1 -1
- package/src/sap/ui/vbm/adapter3d/SceneBuilder.js +270 -182
- package/src/sap/ui/vbm/adapter3d/VBIJSONParser.js +1 -1
- package/src/sap/ui/vbm/adapter3d/thirdparty/ColladaLoader.js +2267 -2509
- package/src/sap/ui/vbm/adapter3d/thirdparty/DecalGeometry.js +194 -266
- package/src/sap/ui/vbm/adapter3d/thirdparty/OrbitControls.js +1004 -700
- package/src/sap/ui/vbm/lib/sapactions.js +12 -9
- package/src/sap/ui/vbm/lib/sapautomations.js +12 -13
- package/src/sap/ui/vbm/lib/sapconfig.js +11 -3
- package/src/sap/ui/vbm/lib/sapdataprovider.js +11 -21
- package/src/sap/ui/vbm/lib/sapevents.js +11 -11
- package/src/sap/ui/vbm/lib/sapgeolocation.js +10 -3
- package/src/sap/ui/vbm/lib/sapgeomath.js +11 -4
- package/src/sap/ui/vbm/lib/sapgeotool.js +12 -3
- package/src/sap/ui/vbm/lib/sapheatmap.js +28 -25
- package/src/sap/ui/vbm/lib/saplabels.js +17 -11
- package/src/sap/ui/vbm/lib/saplassotrack.js +11 -5
- package/src/sap/ui/vbm/lib/sapmaplayer.js +13 -10
- package/src/sap/ui/vbm/lib/sapmapmanager.js +14 -4
- package/src/sap/ui/vbm/lib/sapmapprovider.js +11 -5
- package/src/sap/ui/vbm/lib/sapnavigation.js +11 -3
- package/src/sap/ui/vbm/lib/sapparsing.js +11 -1
- package/src/sap/ui/vbm/lib/sappositioning.js +12 -5
- package/src/sap/ui/vbm/lib/sapprojection.js +12 -5
- package/src/sap/ui/vbm/lib/saprecttrack.js +11 -5
- package/src/sap/ui/vbm/lib/sapresources.js +12 -6
- package/src/sap/ui/vbm/lib/sapscale.js +15 -5
- package/src/sap/ui/vbm/lib/sapscene.js +15 -13
- package/src/sap/ui/vbm/lib/saputilities.js +19 -91
- package/src/sap/ui/vbm/lib/sapvbcluster.js +14 -6
- package/src/sap/ui/vbm/lib/sapvbi.js +11 -42
- package/src/sap/ui/vbm/lib/sapvbicontext.js +11 -5
- package/src/sap/ui/vbm/lib/sapvbmenu.js +19 -13
- package/src/sap/ui/vbm/lib/sapvobase.js +17 -16
- package/src/sap/ui/vbm/lib/sapvoutils.js +14 -24
- package/src/sap/ui/vbm/lib/sapwindow.js +12 -12
- package/src/sap/ui/vbm/library.js +28 -31
- package/src/sap/ui/vbm/adapter3d/thirdparty/html2canvas.js +0 -6
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
3
5
|
|
|
6
|
+
// this module does the label handling
|
|
4
7
|
// Author: Martina Gozlinski, extraction by Jürgen
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
VBI.addSceneLassoTrackingFunctions = function(scene) {
|
|
9
|
+
sap.ui.define(["./sapvbi"]
|
|
10
|
+
, function() {
|
|
9
11
|
"use strict";
|
|
10
12
|
|
|
13
|
+
/* global VBI */// declare unusual global vars for JSLint/SAPUI5 validation
|
|
14
|
+
VBI.addSceneLassoTrackingFunctions = function(scene) {
|
|
11
15
|
// ........................................................................//
|
|
12
16
|
// Lasso Tracking .........................................................//
|
|
13
17
|
// ........................................................................//
|
|
@@ -167,3 +171,5 @@ VBI.addSceneLassoTrackingFunctions = function(scene) {
|
|
|
167
171
|
};
|
|
168
172
|
|
|
169
173
|
};
|
|
174
|
+
|
|
175
|
+
});
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
3
5
|
|
|
6
|
+
// maplayer objects
|
|
4
7
|
// Author: Ulrich Roegelein
|
|
5
|
-
|
|
6
|
-
// mapprovider prototype functions...........................................//
|
|
8
|
+
// mapprovider prototype functions
|
|
7
9
|
// VBI.prototype = { this.prototype = { Add: function (source) { this.SourceArray.push( source ); }, }, }
|
|
8
10
|
// VBI.mapproviders = { this.prototype = { Add: function (mapprovider) { this.MapProviderArray.push( mapprovider ); }, }, }
|
|
9
|
-
|
|
10
|
-
// ...........................................................................//
|
|
11
|
-
// MapLayerStack namespace...................................................//
|
|
11
|
+
// MapLayerStack namespace
|
|
12
12
|
// enables: new VBI.MapLayerStackManager(...)
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
sap.ui.define(["./sapvbi"]
|
|
15
|
+
, function() {
|
|
15
16
|
"use strict";
|
|
17
|
+
|
|
18
|
+
VBI.MapLayerStackManager = function() {
|
|
16
19
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
17
20
|
var maplayerstackmanager = {};
|
|
18
21
|
maplayerstackmanager.vbiclass = "MapLayerStackManager";
|
|
@@ -77,7 +80,6 @@ VBI.MapLayerStacks = VBI.MapLayerStackManager();
|
|
|
77
80
|
// enables: new VBI.MapLayerStack(...)
|
|
78
81
|
|
|
79
82
|
VBI.MapLayerStack = function(name, description) {
|
|
80
|
-
"use strict";
|
|
81
83
|
var maplayerstack = {}; // create the object
|
|
82
84
|
maplayerstack.vbiclass = "MapLayerStack";
|
|
83
85
|
maplayerstack.m_MapLayerArray = [];
|
|
@@ -195,7 +197,6 @@ VBI.MapLayerStack = function(name, description) {
|
|
|
195
197
|
};
|
|
196
198
|
|
|
197
199
|
VBI.MapLayer = function() {
|
|
198
|
-
"use strict";
|
|
199
200
|
var maplayer = {}; // create the object
|
|
200
201
|
maplayer.vbiclass = "MapLayer";
|
|
201
202
|
maplayer.m_Name = null;
|
|
@@ -254,3 +255,5 @@ VBI.MapLayer = function() {
|
|
|
254
255
|
|
|
255
256
|
return maplayer;
|
|
256
257
|
};
|
|
258
|
+
|
|
259
|
+
});
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
|
|
1
6
|
// mapmanager object
|
|
2
7
|
// Author: Ulrich Roegelein
|
|
3
8
|
|
|
4
|
-
|
|
9
|
+
sap.ui.define(["./sapvbi"]
|
|
10
|
+
, function() {
|
|
5
11
|
"use strict";
|
|
12
|
+
|
|
13
|
+
VBI.MapManager = (function() {
|
|
6
14
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
7
15
|
var mapmanager = {};
|
|
8
16
|
mapmanager.vbiclass = "MapManager";
|
|
@@ -24,11 +32,11 @@ VBI.MapManager = (function() {
|
|
|
24
32
|
* Increments and Decrements counters related to tile download connections
|
|
25
33
|
*
|
|
26
34
|
* @private
|
|
27
|
-
* @param {Image} image - Image object to track counters agains
|
|
35
|
+
* @param {Image} image - Image object to track counters agains
|
|
28
36
|
* @param {number} factor - A positive or negative integer to be added to the counter
|
|
29
37
|
*/
|
|
30
38
|
mapmanager._modifyReqCounters = function(image, factor) {
|
|
31
|
-
if (image.m_Headers) { // if headers presents -> this is xhr request
|
|
39
|
+
if (image.m_Headers) { // if headers presents -> this is xhr request
|
|
32
40
|
mapmanager.m_runningXhrRequests += factor;
|
|
33
41
|
} else {
|
|
34
42
|
mapmanager.m_runningRequests += factor;
|
|
@@ -473,7 +481,7 @@ VBI.MapManager = (function() {
|
|
|
473
481
|
image.onabort = mapmanager.onAbort;
|
|
474
482
|
|
|
475
483
|
//If the provider has headers defined, then we must use the HTTP Request approach
|
|
476
|
-
//as it is possible that the application provided an image via the URL callback, we check for a data url before proceeding with the HTTP Request creation
|
|
484
|
+
//as it is possible that the application provided an image via the URL callback, we check for a data url before proceeding with the HTTP Request creation
|
|
477
485
|
if (mapProv.m_Headers && url.substring(0, 5).toLowerCase() != "data:") {
|
|
478
486
|
image.m_Headers = mapProv.m_Headers;
|
|
479
487
|
image.src2execute = url; //store the URL in case the request ends up being queued
|
|
@@ -774,3 +782,5 @@ VBI.MapManager = (function() {
|
|
|
774
782
|
|
|
775
783
|
return mapmanager;
|
|
776
784
|
})();
|
|
785
|
+
|
|
786
|
+
});
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
3
5
|
|
|
6
|
+
// mapprovider object
|
|
4
7
|
// Author: Ulrich Roegelein
|
|
5
8
|
|
|
6
|
-
|
|
9
|
+
sap.ui.define(["./sapvbi"]
|
|
10
|
+
, function() {
|
|
7
11
|
"use strict";
|
|
12
|
+
|
|
13
|
+
VBI.MapProviders = function() {
|
|
8
14
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
9
15
|
var mapproviders = {};
|
|
10
16
|
mapproviders.vbiclass = "MapProviders";
|
|
@@ -68,7 +74,6 @@ VBI.MapProviders = function() {
|
|
|
68
74
|
// MapProvider namespace.....................................................//
|
|
69
75
|
|
|
70
76
|
VBI.MapProvider = function(name, description, copyright, tileX, tileY, minLOD, maxLOD, fillStyle, resolution, projection, headers) {
|
|
71
|
-
"use strict";
|
|
72
77
|
var mapprovider = {};
|
|
73
78
|
mapprovider.vbiclass = "MapProvider";
|
|
74
79
|
mapprovider.m_SourceArray = [];
|
|
@@ -285,7 +290,6 @@ VBI.MapProvider = function(name, description, copyright, tileX, tileY, minLOD, m
|
|
|
285
290
|
// Source namespace..........................................................//
|
|
286
291
|
|
|
287
292
|
VBI.Source = function(url) {
|
|
288
|
-
"use strict";
|
|
289
293
|
var source = {};
|
|
290
294
|
source.vbiclass = "Source";
|
|
291
295
|
source.m_ID = null;
|
|
@@ -440,3 +444,5 @@ VBI.Source = function(url) {
|
|
|
440
444
|
|
|
441
445
|
return source;
|
|
442
446
|
};
|
|
447
|
+
|
|
448
|
+
});
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
sap.ui.define(["./sapvbi"]
|
|
7
|
+
, function() {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
1
10
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
2
11
|
VBI.NavigationControl = function(SuppressedNavControlVisibility) {
|
|
3
|
-
"use strict";
|
|
4
12
|
var nc = {};
|
|
5
|
-
jQuery.sap.require("sap.ui.core.IconPool");
|
|
6
|
-
sap.ui.core.IconPool.insertFontFaceStyle();
|
|
7
13
|
nc.scene = null;
|
|
8
14
|
nc.suppressedVisibility = SuppressedNavControlVisibility;
|
|
9
15
|
nc.m_MinLOD = null;
|
|
@@ -625,3 +631,5 @@ VBI.NavigationControl = function(SuppressedNavControlVisibility) {
|
|
|
625
631
|
|
|
626
632
|
return nc;
|
|
627
633
|
};
|
|
634
|
+
|
|
635
|
+
});
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
sap.ui.define(["./sapvbi"]
|
|
7
|
+
, function() {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
1
10
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
2
11
|
VBI.Parser = function() {
|
|
3
|
-
"use strict";
|
|
4
12
|
var parser = {};
|
|
5
13
|
|
|
6
14
|
parser.formulas = [];
|
|
@@ -324,3 +332,5 @@ VBI.Parser = function() {
|
|
|
324
332
|
|
|
325
333
|
return parser;
|
|
326
334
|
};
|
|
335
|
+
|
|
336
|
+
});
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
3
5
|
|
|
6
|
+
// this module does the label handling
|
|
4
7
|
// Author: Martina Gozlinski, extraction by Jürgen
|
|
5
|
-
|
|
6
|
-
// ...........................................................................//
|
|
7
8
|
// First part enriches scene with label specific functions //
|
|
8
9
|
// Second part consists of the VBI.Label object, formerly part of vobase //
|
|
10
|
+
|
|
11
|
+
sap.ui.define(["./sapvbi"]
|
|
12
|
+
, function() {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
9
15
|
/* global VBI */// declare unusual global vars for JSLint/SAPUI5 validation
|
|
10
16
|
VBI.addScenePositioningFunctions = function(scene) {
|
|
11
|
-
"use strict";
|
|
12
17
|
scene.GetNearestPosArray = function(posarray) {
|
|
13
18
|
// do a copy of the array..............................................//
|
|
14
19
|
var pa = posarray.slice();
|
|
@@ -437,3 +442,5 @@ VBI.addScenePositioningFunctions = function(scene) {
|
|
|
437
442
|
return scene.m_Proj.UCSToLonLat(ucs, lonlat);
|
|
438
443
|
};
|
|
439
444
|
};
|
|
445
|
+
|
|
446
|
+
});
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
3
5
|
|
|
6
|
+
// this module deals with the projections
|
|
4
7
|
// Author: Jürgen Gatter
|
|
8
|
+
|
|
9
|
+
sap.ui.define(["./sapvbi"]
|
|
10
|
+
, function() {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
5
13
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
6
14
|
VBI.LinearProjection = function(target) {
|
|
7
|
-
"use strict";
|
|
8
15
|
var projection = {};
|
|
9
16
|
projection.vbiclass = "Projection/Linear";
|
|
10
17
|
projection.m_nXYRatio = 2;
|
|
@@ -34,7 +41,6 @@ VBI.LinearProjection = function(target) {
|
|
|
34
41
|
};
|
|
35
42
|
|
|
36
43
|
VBI.MercatorProjection = function(target) {
|
|
37
|
-
"use strict";
|
|
38
44
|
var projection = {};
|
|
39
45
|
projection.vbiclass = "Projection/Mercator";
|
|
40
46
|
projection.m_nXYRatio = 1;
|
|
@@ -54,7 +60,6 @@ VBI.MercatorProjection = function(target) {
|
|
|
54
60
|
};
|
|
55
61
|
|
|
56
62
|
VBI.ElliMercatorProjection = function(target) {
|
|
57
|
-
"use strict";
|
|
58
63
|
var projection = {};
|
|
59
64
|
projection.vbiclass = "Projection/EllipticalMercator";
|
|
60
65
|
projection.m_nXYRatio = 1;
|
|
@@ -112,3 +117,5 @@ VBI.ElliMercatorProjection = function(target) {
|
|
|
112
117
|
return projection;
|
|
113
118
|
|
|
114
119
|
};
|
|
120
|
+
|
|
121
|
+
});
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
3
5
|
|
|
6
|
+
// this module does the label handling
|
|
4
7
|
// Author: Martina Gozlinski, extraction by Jürgen
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
VBI.addSceneRectangularTrackingFunctions = function(scene) {
|
|
9
|
+
sap.ui.define(["./sapvbi"]
|
|
10
|
+
, function() {
|
|
9
11
|
"use strict";
|
|
10
12
|
|
|
13
|
+
/* global VBI */// declare unusual global vars for JSLint/SAPUI5 validation
|
|
14
|
+
VBI.addSceneRectangularTrackingFunctions = function(scene) {
|
|
11
15
|
// ........................................................................//
|
|
12
16
|
// RectangularTracking ....................................................//
|
|
13
17
|
// ........................................................................//
|
|
@@ -288,3 +292,5 @@ VBI.addSceneRectangularTrackingFunctions = function(scene) {
|
|
|
288
292
|
};
|
|
289
293
|
|
|
290
294
|
};
|
|
295
|
+
|
|
296
|
+
});
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
3
5
|
|
|
6
|
+
// resources manager object
|
|
4
7
|
// Author: Ulrich Roegelein
|
|
5
|
-
|
|
6
8
|
// uses: <saputilities.js>
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
sap.ui.define(["./sapvbi"]
|
|
11
|
+
, function() {
|
|
9
12
|
"use strict";
|
|
13
|
+
|
|
14
|
+
VBI.ResourceManager = (function() {
|
|
10
15
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
11
16
|
var resourcemanager = {};
|
|
12
17
|
|
|
@@ -16,10 +21,9 @@ VBI.ResourceManager = (function() {
|
|
|
16
21
|
return resourcemanager;
|
|
17
22
|
})();
|
|
18
23
|
|
|
19
|
-
//
|
|
24
|
+
//
|
|
20
25
|
|
|
21
26
|
VBI.Resources = function() {
|
|
22
|
-
"use strict";
|
|
23
27
|
var resources = {};
|
|
24
28
|
|
|
25
29
|
resources.m_resourcedata = [];
|
|
@@ -142,3 +146,5 @@ VBI.Resources = function() {
|
|
|
142
146
|
|
|
143
147
|
return resources;
|
|
144
148
|
};
|
|
149
|
+
|
|
150
|
+
});
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
sap.ui.define(["./sapvbi"]
|
|
7
|
+
, function() {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
1
10
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
2
11
|
VBI.SupportedUnitsOfLength = [
|
|
3
12
|
{
|
|
@@ -21,7 +30,6 @@ VBI.SupportedUnitsOfLength = [
|
|
|
21
30
|
}
|
|
22
31
|
];
|
|
23
32
|
VBI.Scale = function() {
|
|
24
|
-
"use strict";
|
|
25
33
|
var scale = {};
|
|
26
34
|
scale.scene = null;
|
|
27
35
|
scale.m_ID = null;
|
|
@@ -214,12 +222,12 @@ VBI.Scale = function() {
|
|
|
214
222
|
//creating the svg container where the scale will be rendered
|
|
215
223
|
var svg = document.getElementById(scale.m_canvas.id);
|
|
216
224
|
if (svg) {
|
|
217
|
-
|
|
225
|
+
|
|
218
226
|
svg.setAttribute("height", 15);
|
|
219
227
|
svg.setAttribute("width", pixelLength + 1);
|
|
220
228
|
//Clearing the previous scale
|
|
221
229
|
jQuery(svg).empty();
|
|
222
|
-
|
|
230
|
+
|
|
223
231
|
|
|
224
232
|
//This is the actual scale bar
|
|
225
233
|
var path = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
@@ -228,7 +236,7 @@ VBI.Scale = function() {
|
|
|
228
236
|
path.setAttribute("stroke-width", 2);
|
|
229
237
|
path.setAttribute("fill", "none");
|
|
230
238
|
svg.appendChild(path);
|
|
231
|
-
|
|
239
|
+
|
|
232
240
|
//This is the scale text. For example: "500 km"
|
|
233
241
|
var text = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
234
242
|
//How far from the right/left edge we position the text
|
|
@@ -239,7 +247,7 @@ VBI.Scale = function() {
|
|
|
239
247
|
} else {
|
|
240
248
|
textPositionX = pixelLength - 2 - (distance.toString().length + scale.m_DisplayUnit.length + 1) * 6;
|
|
241
249
|
}
|
|
242
|
-
|
|
250
|
+
|
|
243
251
|
text.setAttribute("x", textPositionX);
|
|
244
252
|
text.setAttribute("y", 8);
|
|
245
253
|
text.setAttribute("font-size", 10);
|
|
@@ -250,3 +258,5 @@ VBI.Scale = function() {
|
|
|
250
258
|
|
|
251
259
|
return scale;
|
|
252
260
|
};
|
|
261
|
+
|
|
262
|
+
});
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
* ! SAPUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
|
+
*/
|
|
3
5
|
|
|
6
|
+
// this module does the label handling
|
|
4
7
|
// Author: Martina Gozlinski, extraction by Jürgen
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
sap.ui.define([
|
|
10
|
+
"./sapvbi",
|
|
11
|
+
"sap/ui/core/Popup"
|
|
12
|
+
], function() {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
8
15
|
/* global VBI */// declare unusual global vars for ESLint/SAPUI5 validation
|
|
9
16
|
VBI.InputModeDefault = 0; // standard mode.............................//
|
|
10
17
|
VBI.InputModeTrackObject = 1; // objects handles or boxes are tracked
|
|
@@ -17,7 +24,6 @@ VBI.InputModeRectZoom = 6; // rectangular zoom mode
|
|
|
17
24
|
// ...........................................................................//
|
|
18
25
|
// the scene manager manages the scene instances in a component context......//
|
|
19
26
|
VBI.SceneManager = function() {
|
|
20
|
-
"use strict";
|
|
21
27
|
var scenemanager = {};
|
|
22
28
|
scenemanager.vbiclass = "SceneManager";
|
|
23
29
|
scenemanager.m_SceneArray = [];
|
|
@@ -170,7 +176,6 @@ VBI.SceneManager = function() {
|
|
|
170
176
|
// Scene object..............................................................//
|
|
171
177
|
|
|
172
178
|
VBI.Scene = function(target) {
|
|
173
|
-
"use strict";
|
|
174
179
|
var scene = {};
|
|
175
180
|
scene.vbiclass = "Scene";
|
|
176
181
|
scene.m_TargetName = target;
|
|
@@ -697,10 +702,6 @@ VBI.Scene = function(target) {
|
|
|
697
702
|
// 3DScene object............................................................//
|
|
698
703
|
|
|
699
704
|
VBI.Scene3D = function(target) {
|
|
700
|
-
"use strict";
|
|
701
|
-
// include 3D library when creating the 3D Scene
|
|
702
|
-
// jQuery.sap.require("sap.ui.vbm.");
|
|
703
|
-
|
|
704
705
|
var scene = new VBI.Scene(target); // create scene and specialize.....//
|
|
705
706
|
|
|
706
707
|
scene.vbiclass = "3DScene";
|
|
@@ -898,7 +899,6 @@ VBI.Scene3D = function(target) {
|
|
|
898
899
|
// GeoScene object...........................................................//
|
|
899
900
|
|
|
900
901
|
VBI.GeoScene = function(target, mapmanager, maplayerstack) {
|
|
901
|
-
"use strict";
|
|
902
902
|
var scene = new VBI.Scene(target); // create scene and specialize.....//
|
|
903
903
|
scene.vbiclass = "GeoScene";
|
|
904
904
|
|
|
@@ -3217,7 +3217,7 @@ VBI.GeoScene = function(target, mapmanager, maplayerstack) {
|
|
|
3217
3217
|
// make a delayed call to ensure styling is applyed to have a real transition
|
|
3218
3218
|
jQuery.sap.delayedCall(0, this, function(time) {
|
|
3219
3219
|
// check that the object exists before using it as there is always a chance that it has been destroyed before delayed call runs
|
|
3220
|
-
if (scene.m_Canvas[0]) {
|
|
3220
|
+
if (scene.m_Canvas[0]) {
|
|
3221
3221
|
scene.m_Canvas[0].className = "vbi-geoscenecanvas vbi-map-active"; // make foreground canvas opaque using a transition
|
|
3222
3222
|
}
|
|
3223
3223
|
});
|
|
@@ -3352,7 +3352,7 @@ VBI.GeoScene = function(target, mapmanager, maplayerstack) {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
var sCopyright = scene.m_MapLayerStack.GetCopyright();
|
|
3354
3354
|
if (sCopyright) {
|
|
3355
|
-
scene.m_DivCopyright.innerHTML = sCopyright;
|
|
3355
|
+
scene.m_DivCopyright.innerHTML = jQuery.sap.encodeHTML(sCopyright);
|
|
3356
3356
|
} else {
|
|
3357
3357
|
scene.m_DivCopyright.style.paddingRight = 0;
|
|
3358
3358
|
scene.m_DivCopyright.style.paddingLeft = 0;
|
|
@@ -4069,3 +4069,5 @@ VBI.GeoScene = function(target, mapmanager, maplayerstack) {
|
|
|
4069
4069
|
}
|
|
4070
4070
|
return scene;
|
|
4071
4071
|
};
|
|
4072
|
+
|
|
4073
|
+
});
|