-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Event object types required by new Evented#fire are not exported #6522
Comments
No, the intention is that If you can tell us more about your use of |
Ah, I missed that--my bad. Currently we have custom implementations of |
Related: mapbox/mapbox-gl-draw#766 |
Thanks for reporting this. We elected to roll back that change until we have a suitable replacement for your use case; |
Thanks! 🙂 |
Sorry to ask, as i could not find a discussion about that in other tickets, but what are the reasons to privatice Evented? |
Can you please advise on how to simulate a map click at given coordinates? It used to be something like edit: nevermind, I was hung up on problems explained in this issue. The project I'm working on is still using 0.44.2 anyway, but the docs for that version are gone from the website (?) |
@jfirebaugh https://www.mapbox.com/mapbox-gl-js/api/#icontrol Other way we need to pass callbacks to constructor 😞 |
@jfirebaugh Is there a main thread for discussion about the future of Map#fire? I am running across a few relevant threads, both issues and PRs: mapbox/mapbox-gl-draw#766 I ask because I would like to build out some functionality on the mapbox-gl-accessibility plugin, but it would depend on Map#fire. I'd like to see if there's a plan for this method before going forward. |
mapbox-gl-js version: master (to be release 0.45.0)
With the changes in 87c6332 made as a part of #6218, Evented#fire (and by extension Map#fire) expects an
Event
object rather than a string, as previously. However, theEvent
andErrorEvent
types are not exposed to mapbox-gl-js consumers, while theEvented
class is documented as part of the public API.Calls to Map#fire can be made by creating an object in the shape of an
Event
object (e.g.,map.fire({ type: 'move', originalEvent: e })
), but with the lack of documentation ofEvent
andErrorEvent
, this isn't obvious.Is there intention to export and/or document these types?
The text was updated successfully, but these errors were encountered: