We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85c23ea commit 55e929eCopy full SHA for 55e929e
src/core.js
@@ -24,6 +24,24 @@ goog.require('olcs.core.OlLayerPrimitive');
24
*/
25
olcs.core.glAliasedLineWidthRange = -1;
26
27
+ /**
28
+ *
29
+ * @param {!ol.geom.Geometry} geometry
30
+ * @param {number} height
31
+ * @api
32
+ */
33
+ olcs.core.applyHeightOffsetToGeometry = function(geometry, height) {
34
+ geometry.applyTransform(function(input, output, stride) {
35
+ goog.asserts.assert(input === output);
36
+ if (goog.isDef(stride) && stride >= 3) {
37
+ for (var i = 0; i < output.length; i += stride) {
38
+ output[i + 2] = output[i + 2] + height;
39
+ }
40
41
+ return output;
42
+ });
43
+ };
44
+
45
46
/**
47
* Get 3D positiion of the point at the bottom-center of the screen.
0 commit comments