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

[FEATURE] Flash features #5268

Merged
merged 7 commits into from
Oct 2, 2017
Merged

[FEATURE] Flash features #5268

merged 7 commits into from
Oct 2, 2017

Conversation

nyalldawson
Copy link
Collaborator

This adds:

  • API call to QgsMapCanvas to flash a set of features
  • A right click menu option in the attribute table to flash the clicked feature
  • An option in the Search by Form dialog to flash matching features

When triggered, the features flash allowing easy identification without having to alter the current selection or map extent

Screencast at https://youtu.be/pzIxAwzqaPM

@nirvn
Copy link
Contributor

nirvn commented Sep 29, 2017

Nice!

@Gustry
Copy link
Contributor

Gustry commented Sep 29, 2017

Nice! Is it working when we use the Locator bar to select a feature?

@nyalldawson
Copy link
Collaborator Author

Is it working when we use the Locator bar to select a feature?

Not yet, but should be quite straightforward to utilise it there

* \since QGIS 3.0
* \see flashFeatureIds()
*/
void flashGeometries( QgsVectorLayer *layer, const QList< QgsGeometry > &geometries,
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about making this accept a QgsCoordinateReferenceSystem instead of a QgsVectorLayer? This would make this usable for a wider range of applications.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed - I'll do that

@m-kuhn
Copy link
Member

m-kuhn commented Sep 29, 2017

Nice!

@timlinux
Copy link
Member

timlinux commented Oct 1, 2017

Nice addition!

This adds:
- API call to QgsMapCanvas to flash a set of features
- A right click menu option in the attribute table to flash
the clicked feature
- An option in the Search by Form dialog to flash matching
features

When triggered, the features flash allowing easy identification
without having to alter the current selection or map extent
Use a QgsCoordinateReferenceSystem object instead of
QgsVectorLayer to make API more flexible
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.

None yet

5 participants