Skip having vgl compute geometry bounds.
vgl computes the bounds of various geometries, but it isn't actually
used for anything we do, so this is wasted work.  Make the geometryData
computeBounds just set it to a fixed value.
MODIFY
src/gl/contourFeature.js
src/gl/contourFeature.js
@@ -240,6 +240,11 @@ var gl_contourFeature = function (arg) {
geom.addSource(sourceValues);
geom.addSource(sourceOpacity);
geom.addPrimitive(primitive);
+ /* We don't need vgl to comptue bounds, so make the geo.computeBounds just
+ * set them to 0. */
+ geom.computeBounds = function () {
+ geom.setBounds(0, 0, 0, 0, 0, 0);
+ };
m_mapper.setGeometryData(geom);
};

MODIFY
src/gl/lineFeature.js
src/gl/lineFeature.js
@@ -724,6 +724,11 @@ var gl_lineFeature = function (arg) {
geom.addSource(strkOpacityData);
geom.addSource(flagsData);
geom.addPrimitive(triangles);
+ /* We don't need vgl to comptue bounds, so make the geo.computeBounds just
+ * set them to 0. */
+ geom.computeBounds = function () {
+ geom.setBounds(0, 0, 0, 0, 0, 0);
+ };
m_mapper.setGeometryData(geom);
return m_this;
};

MODIFY
src/gl/pointFeature.js
src/gl/pointFeature.js
@@ -588,6 +588,11 @@ var gl_pointFeature = function (arg) {
geom.addSource(sourceAlpha);
geom.addSource(sourceStrokeOpacity);
geom.addPrimitive(primitive);
+ /* We don't need vgl to comptue bounds, so make the geo.computeBounds just
+ * set them to 0. */
+ geom.computeBounds = function () {
+ geom.setBounds(0, 0, 0, 0, 0, 0);
+ };
m_mapper.setGeometryData(geom);
};

MODIFY
src/gl/polygonFeature.js
src/gl/polygonFeature.js
@@ -311,6 +311,11 @@ var gl_polygonFeature = function (arg) {
geom.addSource(sourceFillColor);
geom.addSource(sourceFillOpacity);
geom.addPrimitive(trianglePrimitive);
+ /* We don't need vgl to comptue bounds, so make the geo.computeBounds just
+ * set them to 0. */
+ geom.computeBounds = function () {
+ geom.setBounds(0, 0, 0, 0, 0, 0);
+ };
m_mapper.setGeometryData(geom);
s_init.call(m_this, arg);

Skip having vgl compute geometry bounds.

vgl computes the bounds of various geometries, but it isn't actually
used for anything we do, so this is wasted work.  Make the geometryData
computeBounds just set it to a fixed value.