rmush029 / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

RichMarker HTML contents not functional in Chrome iOS #203

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Demo link or sample code:

var div = document.createElement('DIV');
div.innerHTML = '<div><div onclick=alert("menu1")>Menu1</div><div 
onclick=alert("menu2")>Menu2</div></div>';

marker = new RichMarker({
          position: map.getCenter(),
          map: map,
          anchor: RichMarkerPosition.MIDDLE,
          flat:true,
          draggable: true, 
          content: div
        });

What steps will reproduce the problem?
1. Open Chrome on iOS
2. Click marker
3. onClick alert within marker HTML does not fire. It does fire on desktop 
Chrome.

Expected result:
Alert box with "menu1" and "menu2". This works fine with desktop Chrome, not 
iPhone mobile Chrome or Safari.

Actual result:
Nothing happens. onClick doesn't fire. Example is a pared down example. Trying 
to build menu with clickable links for mobile app.

Version: revision 390

Browser / Operating System:
Chrome/Safari iOS

Additional comments:

*********************************************************
Tip: Star this issue (next to title) to receive notifications of status
changes against this issue, also used as a gauge for how many people are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by barry.c....@gmail.com on 10 Oct 2012 at 12:06

GoogleCodeExporter commented 9 years ago
alert will not fire becoz u have given onclick event which will get fired only 
once you will click on the div.... and for that u have to open the same in the 
infowindow

Original comment by er.mohit...@gmail.com on 31 Oct 2012 at 8:17