geojs 1.8.8 → 1.8.9
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/CHANGELOG.md +1 -1
- package/geo.js +7 -15
- package/geo.lean.js +7 -15
- package/geo.lean.min.js +1 -1
- package/geo.min.js +1 -1
- package/package.json +1 -1
- package/src/webgl/lineFeature.js +2 -5
- package/src/webgl/polygonFeature.js +8 -11
package/package.json
CHANGED
package/src/webgl/lineFeature.js
CHANGED
|
@@ -136,7 +136,6 @@ var webgl_lineFeature = function (arg) {
|
|
|
136
136
|
v = vert[1],
|
|
137
137
|
target_gcs = m_this.gcs(),
|
|
138
138
|
map_gcs = m_this.layer().map().gcs(),
|
|
139
|
-
simpleInverse = transform.onlyInvertedY(target_gcs, map_gcs),
|
|
140
139
|
pos, posIdx3, firstpos, firstPosIdx3,
|
|
141
140
|
lineFunc = m_this.line(),
|
|
142
141
|
strokeWidthFunc = m_this.style.get('strokeWidth'), strokeWidthVal,
|
|
@@ -192,7 +191,7 @@ var webgl_lineFeature = function (arg) {
|
|
|
192
191
|
for (j = 0; j < lineItem.length; j += 1) {
|
|
193
192
|
pos = posFunc ? posFunc(lineItem[j], j, d, i) : lineItem[j];
|
|
194
193
|
position.push(pos.x);
|
|
195
|
-
position.push(
|
|
194
|
+
position.push(pos.y);
|
|
196
195
|
position.push(pos.z || 0.0);
|
|
197
196
|
if (!j) {
|
|
198
197
|
firstpos = pos;
|
|
@@ -212,9 +211,7 @@ var webgl_lineFeature = function (arg) {
|
|
|
212
211
|
}
|
|
213
212
|
}
|
|
214
213
|
|
|
215
|
-
|
|
216
|
-
position = transform.transformCoordinates(target_gcs, map_gcs, position, 3);
|
|
217
|
-
}
|
|
214
|
+
position = transform.transformCoordinates(target_gcs, map_gcs, position, 3);
|
|
218
215
|
m_origin = new Float32Array(m_this.style.get('origin')(position));
|
|
219
216
|
if (m_origin[0] || m_origin[1] || m_origin[2]) {
|
|
220
217
|
for (i = 0; i < position.length; i += 3) {
|
|
@@ -82,7 +82,6 @@ var webgl_polygonFeature = function (arg) {
|
|
|
82
82
|
items = [],
|
|
83
83
|
target_gcs = m_this.gcs(),
|
|
84
84
|
map_gcs = m_this.layer().map().gcs(),
|
|
85
|
-
simpleInverse = transform.onlyInvertedY(target_gcs, map_gcs),
|
|
86
85
|
numPts = 0,
|
|
87
86
|
geom = m_mapper.geometryData(),
|
|
88
87
|
color, opacity, fill, d, d3, vertices, i, j, k, n,
|
|
@@ -120,7 +119,7 @@ var webgl_polygonFeature = function (arg) {
|
|
|
120
119
|
for (i = d3 = 0; i < outer.length; i += 1, d3 += 3) {
|
|
121
120
|
c = posFunc ? posFunc(outer[i], i, item, itemIndex) : outer[i];
|
|
122
121
|
geometry[d3] = c.x;
|
|
123
|
-
geometry[d3 + 1] =
|
|
122
|
+
geometry[d3 + 1] = c.y;
|
|
124
123
|
// ignore the z values until we support them
|
|
125
124
|
geometry[d3 + 2] = 0; // c.z || 0;
|
|
126
125
|
}
|
|
@@ -137,7 +136,7 @@ var webgl_polygonFeature = function (arg) {
|
|
|
137
136
|
for (i = 0; i < hole.length; i += 1, d3 += 3) {
|
|
138
137
|
c = posFunc ? posFunc(hole[i], i, item, itemIndex) : hole[i];
|
|
139
138
|
geometry.vertices[d3] = c.x;
|
|
140
|
-
geometry.vertices[d3 + 1] =
|
|
139
|
+
geometry.vertices[d3 + 1] = c.y;
|
|
141
140
|
// ignore the z values until we support them
|
|
142
141
|
geometry.vertices[d3 + 2] = 0; // c.z || 0;
|
|
143
142
|
}
|
|
@@ -145,14 +144,12 @@ var webgl_polygonFeature = function (arg) {
|
|
|
145
144
|
}
|
|
146
145
|
|
|
147
146
|
// transform to map gcs
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
);
|
|
155
|
-
}
|
|
147
|
+
geometry.vertices = transform.transformCoordinates(
|
|
148
|
+
target_gcs,
|
|
149
|
+
map_gcs,
|
|
150
|
+
geometry.vertices,
|
|
151
|
+
geometry.dimensions
|
|
152
|
+
);
|
|
156
153
|
|
|
157
154
|
record = {
|
|
158
155
|
// triangulate
|