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

Add an option to disable automatic zoom in routing plugin #336

Merged
merged 7 commits into from
Oct 4, 2024

Conversation

cazitouni
Copy link
Contributor

Hello @manisandro,

I would like to submit this PR to add an option in the routing plugin to disable automatic zoom.

In some use cases, it could be more convenient for the user to keep the map from adjusting to the calculated road extent. For example, if they want to add another point farther away or if they have other elements on the map and do not want the scale to change.

I will update the documentation accordingly if this is approved.

Please feel free to share any feedback.

Kind regards,
Clément

plugins/Routing.jsx Fixed Show fixed Hide fixed
plugins/Routing.jsx Fixed Show fixed Hide fixed
@@ -60,6 +60,8 @@ class Routing extends React.Component {
initiallyDocked: PropTypes.bool,
side: PropTypes.string
}),
/** Automatic zoom to the extent of the location. */
Copy link
Member

Choose a reason for hiding this comment

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

What about "Automatically zoom to the extent of the route"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, no problem.

plugins/Routing.jsx Fixed Show fixed Hide fixed
@cazitouni
Copy link
Contributor Author

Should be good now

@manisandro manisandro merged commit 7a5f40a into qgis:master Oct 4, 2024
2 checks passed
@manisandro
Copy link
Member

Thanks!

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.

2 participants