google-map icon indicating copy to clipboard operation
google-map copied to clipboard

Clicking on other objects on the map removes the google-map from the DOM on Chrome with Shadow DOM

Open motss opened this issue 7 years ago • 4 comments

Description

Clicking on other objects on the map will make the map container removed from the DOM on Chrome with Shadow DOM enabled.

Expected outcome

Clicking on any objects on the map will show info window and the map container will always on the DOM.

Actual outcome

Map container is removed from the DOM after a few clicks on the objects on the map such as restaurants.

Live Demo

Demo with webcomponents polyfill for other browsers Demo without webcomponents polyfill for Chrome/ Opera

Steps to reproduce

Browsers Affected

  • [x] Chrome
  • [ ] Firefox
  • [ ] Safari 9
  • [ ] Safari 8
  • [ ] Safari 7
  • [ ] Edge
  • [ ] IE 11
  • [ ] IE 10

motss avatar Jul 30 '16 11:07 motss

I have also raised this as a bug on the google maps API bug list but it was closed, pointing me here.

https://code.google.com/p/gmaps-api-issues/issues/detail?id=11109

However I don't believe it is anything specific to do with the Polymer google-map element because I have replicated this by using the google maps API directly within my own Polymer element. The same behaviour applies therefore I believe it is an issue with the Google Maps API under the Shadow DOM.

cuzzlor avatar Dec 21 '16 01:12 cuzzlor

@cuzzlor I did even try to create my own custom element using the Google Maps API and everything works flawlessly under Shady DOM. When you enable native Shadow DOM, things just go haywire!

motss avatar Dec 21 '16 02:12 motss

https://github.com/GoogleWebComponents/google-streetview-pano/issues/19#issuecomment-270260866

robdodson avatar Jan 04 '17 00:01 robdodson

@robdodson thank-you for kicking this along internally.

ghuntley avatar Jan 04 '17 05:01 ghuntley