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 onMapReady event to GMap #2435

Closed
scalancea opened this issue Mar 31, 2017 · 0 comments
Closed

Add onMapReady event to GMap #2435

scalancea opened this issue Mar 31, 2017 · 0 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@scalancea
Copy link
Contributor

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
When creating the GMap component, there is no way to access the internal map object instantaneously. You can sent the map object using a button to take it via template variable .getMap().

Expected behavior
It would be useful to have the map object available through an Output event emitter

What is the motivation / use case for changing the behavior?
There are cases though, when you need access to the map object as soon as possible (ideally, instantaneously), for example for setting the initial position of the map using map.fitBounds(bounds);

@cagataycivici cagataycivici self-assigned this Apr 12, 2017
@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Apr 12, 2017
@cagataycivici cagataycivici added this to the 4.0.RC3 milestone Apr 12, 2017
@cagataycivici cagataycivici changed the title Make native google.maps.Map of GMap object available through @Output Add onMapReady event to GMap Apr 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

2 participants