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 pixel/coordinate to ol.SelectEvent #3737

Closed
probins opened this issue May 28, 2015 · 7 comments
Closed

Add pixel/coordinate to ol.SelectEvent #3737

probins opened this issue May 28, 2015 · 7 comments

Comments

@probins
Copy link
Contributor

probins commented May 28, 2015

If pixel and/or coordinate were available in SelectEvent, the code for creating popups/overlays for features such as in the vector-layer example could simply use the select interaction instead of creating its own FeatureOverlay. It looks pretty straightforward to change SelectEvent to pass these vars on from the MapBrowserEvent and I was in the middle of creating a PR when it struck me it might be better/simpler to change ol.SelectEvent so it inherits from ol.MapBrowserEvent instead of goog.events.event. Would there be any problems/issues with doing this?

@bjornharrtell
Copy link
Contributor

PR #3454 might be relevant.

@probins
Copy link
Contributor Author

probins commented May 29, 2015

thanks @bjornharrtell I managed to miss that one, which is also on my list. What do you think about adding pixel in that PR? Or would it be better in a separate one?

@bjornharrtell
Copy link
Contributor

Perhaps it's better to make it a separate one and I'd like to see the tests in #3453 in first.

@bjornharrtell
Copy link
Contributor

Was just hit by goog.events.event not being enough similar to you case, so I don't want to wait for #3453 (but please review it too if possible) and will make a PR to change base to ol.MapBrowserEvent.

@bjornharrtell
Copy link
Contributor

@probins #3757 ready for review.

@probins
Copy link
Contributor Author

probins commented Jun 3, 2015

thanks for tackling this - we're obviously trying to do similar things in our apps :-)

@ahocevar
Copy link
Member

ahocevar commented Jun 4, 2015

Fixed with #3757.

@ahocevar ahocevar closed this as completed Jun 4, 2015
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

No branches or pull requests

3 participants