-
Notifications
You must be signed in to change notification settings - Fork 256
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
Google-map-marker: Listeners don't work on contents #288
Comments
I had to modify the mutation observer in google-map-marker to listen to character data to get some of it to work. |
I think this is a very important issue to resolve and I'll continue to follow this issue and the 294 pull request. In the interim, I've created an element to emulate the infowindow, paper-map-info, that supports full composability including listeners. It could be of value to others needing this functionality. |
@mlisook thanks for sharing your solution |
@Fausto-theXS that is the approach I started with, but after lots of work and research, I'm sad to say the answer is no, not really. At least not in a way that's going to work completely under native shadow dom. The Even in shady dom, there are all kinds of fiddly edge cases that have to be handled. |
FYI I also developed an element (based on @mlisook plastic-map-info) to help building a customizable google map infowindow. |
Consider the following markup:
You would expect this to call the 'addToList' method in the current Polymer element, but it doesn't. The reason is that the DOM element actually tied to the event is still sitting under the google-map-marker tag and has been copied into the balloon as HTML text.
The text was updated successfully, but these errors were encountered: