Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip having vgl compute geometry bounds. #943

Merged
merged 2 commits into from
Oct 30, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/gl/contourFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down
5 changes: 5 additions & 0 deletions src/gl/lineFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
5 changes: 5 additions & 0 deletions src/gl/pointFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down
5 changes: 5 additions & 0 deletions src/gl/polygonFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down