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

Fixed #2219 zoom to page #2419

Merged
merged 6 commits into from
Nov 23, 2017
Merged

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Nov 21, 2017

Description

Zoom to page fails if a feature in the pages has no geometry

Issues

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

What is the current behavior? (You can also link to an open issue here)
actually it does not soozm because it fails internally to create the bbox

What is the new behavior?
now it does not fails and it zooms to the page

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • No

@MV88 MV88 requested a review from offtherailz November 21, 2017 14:10
@ghost ghost assigned MV88 Nov 21, 2017
@ghost ghost added In Test labels Nov 21, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 80.996% when pulling 79aa871 on MV88:2219_zoom_to_page into 3fe12ef on geosolutions-it:master.

@MV88 MV88 removed In Test labels Nov 21, 2017
@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+0.002%) to 80.996% when pulling ce76dee on MV88:2219_zoom_to_page into 3fe12ef on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.004%) to 80.989% when pulling 1c5a501 on MV88:2219_zoom_to_page into 3fe12ef on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.004%) to 80.989% when pulling 1c5a501 on MV88:2219_zoom_to_page into 3fe12ef on geosolutions-it:master.

@@ -16,7 +16,7 @@ const getSaveMessageId = ({saving, saved}) => {
return "featuregrid.toolbar.saveChanges";
};

module.exports = ({events = {}, mode = "VIEW", selectedCount, hasChanges, hasGeometry, hasNewFeatures, isSimpleGeom, isDrawing = false, isEditingAllowed, saving = false, saved = false, isDownloadOpen, isColumnsOpen, disableToolbar, isSearchAllowed, disableDownload, displayDownload, isSyncActive = false, hasSupportedGeometry = true} = {}) =>
module.exports = ({events = {}, mode = "VIEW", selectedCount, hasChanges, hasGeometry, hasNewFeatures, isSimpleGeom, isDrawing = false, isEditingAllowed, saving = false, saved = false, isDownloadOpen, isColumnsOpen, disableToolbar, isSearchAllowed, disableDownload, displayDownload, isSyncActive = false, hasSupportedGeometry = true, allFeaturesWithNoGeometry = false} = {}) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we could rename this parameter disableZoomTo

Copy link
Contributor Author

@MV88 MV88 Nov 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll go for disableZoomAll because its id is "zoom-all"

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.004%) to 80.989% when pulling cd98198 on MV88:2219_zoom_to_page into 3fe12ef on geosolutions-it:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zoom to page extent doesn't work with null geometry in feature grid
4 participants