prasy8 / google-maps-utility-library-v3

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

MarkerClusterer: zoomOnClick not working on iPhone (and Android?) #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Demo link or sample code:
http://palmdrive.net/temp/marker/

What steps will reproduce the problem?
1. Create a simple sample for MarkerClusterer (I took the site's example)
2. Add a line to disable zooming on iPhone: <meta name="viewport" 
content="initial-scale=1.0, user-scalable=no"> 

Expected result:
Clicking on a clustered marker should zoom in

Actual result:
The marker is centered on the page, but no zoom happens

Version:  
 * @name MarkerClusterer for Google Maps v3
 * @version version 1.0

Browser / Operating System:
[Safari on iPhone]

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 piero.gr...@gmail.com on 24 Oct 2010 at 10:02

GoogleCodeExporter commented 9 years ago
For information, there are no javascript errors on the page.

Original comment by pier...@gmail.com on 1 Nov 2010 at 11:55

GoogleCodeExporter commented 9 years ago
I can confirm that this issue also happens on the Android browser.

Original comment by pierre.g...@gmail.com on 2 Nov 2010 at 5:55

GoogleCodeExporter commented 9 years ago
I can't replicate this on iPhone or Android. Are you still seeing problems?

Original comment by lu...@google.com on 16 Nov 2010 at 12:48

GoogleCodeExporter commented 9 years ago
Well... I just tested the link I gave when reporting the problem and it still 
doesn't work. That's on iPhone OS 4.1, Android 1.6 and Android 2.x (Don't 
remember the x, the latest in the SDK simulator).

A click on a cluster just centers the map but it does not zoom in.

Original comment by piero.gr...@gmail.com on 16 Nov 2010 at 8:16

GoogleCodeExporter commented 9 years ago
I see that the status is NeedsMoreInfo, but I can't see what I can bring that I 
have not already brought. If you need anything let me know! I am eager to see 
this issue go away and am ready to help any way I can.

Original comment by piero.gr...@gmail.com on 16 Nov 2010 at 12:00

GoogleCodeExporter commented 9 years ago
Are you testing with a real device or a emulator?

Running the simple_example demo on my Android works with no problems.

Original comment by lu...@google.com on 9 Feb 2011 at 5:37

GoogleCodeExporter commented 9 years ago

Original comment by lu...@google.com on 3 Apr 2011 at 10:34

GoogleCodeExporter commented 9 years ago
I am also seeing this problem with Safari 5.0.3 on Snow Leopard. I tried 
setting the zindex on the MarkerClusterer to 100 but it made no difference. 
Zooming in works fine but clicking on the marker cluster just centers the view 
port and loads at the same zoom level. It take it the status of 'WontFix' means 
what it means. 

Original comment by randy...@gmail.com on 19 May 2011 at 6:11

GoogleCodeExporter commented 9 years ago
I can also verify that this happens with Safari 5.0.5 on OS 10.6.7. I can also 
verify it with the above demo link http://palmdrive.net/temp/marker/ so the 
demo is a good example. It works fine when using Chrome 12.0.7.42.91

Original comment by j...@heunox.com on 7 Jun 2011 at 8:43

GoogleCodeExporter commented 9 years ago
I'm having the same problem with my iPhone 3Gs (OS 4.3.3). When I click/press 
on a cluster icon in Safari mobile, nothing happens. I have two friends with 
Android phones - HTC Evo and HTC Incredible - who have no issues. No problems 
using Firefox 5.0 on a Win XP PC either. In the code below, all three alerts 
appear for the Android phones and in FF but I get none of them on my iPhone.

/**
 * Triggers the clusterclick event and zoom's if the option is set.
 */
ClusterIcon.prototype.triggerClusterClick = function() {
  var markerClusterer = this.cluster_.getMarkerClusterer();
  alert("Going to zoom0.")
  // Trigger the clusterclick event.
  google.maps.event.trigger(markerClusterer, 'clusterclick', this.cluster_);
  alert("Going to zoom1.")
  if (markerClusterer.isZoomOnClick()) {
    // Zoom into the cluster.
    alert("Going to zoom2.")
    this.map_.fitBounds(this.cluster_.getBounds());
  }
};

Original comment by amallen9...@gmail.com on 27 Jul 2011 at 8:33

GoogleCodeExporter commented 9 years ago
I suggest you use the trunk version (not the 1.0 tagged version) of 
MarkerClusterer, it seems to solve the problem:

http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/s
rc/markerclusterer.js

Original comment by garylitt...@gmail.com on 29 Jul 2011 at 7:12

GoogleCodeExporter commented 9 years ago
The trunk version above works for me. No more problems with the iPhone 3Gs. 
Hope the rest of you have the same luck!

Original comment by amallen9...@gmail.com on 2 Aug 2011 at 6:27

GoogleCodeExporter commented 9 years ago
Trunk version seems to have done the trick for android on samsung s2.

Original comment by mixmaste...@gmail.com on 8 Jul 2012 at 10:33

GoogleCodeExporter commented 9 years ago
I am using the trunk version and I am having the problem with Android v2.3 on 
an LG Optimus Elite. Haven't tested iPhone yet. Works fine on a smaller version 
of the map within a small iframs. When the map is displayed in a larger iframe 
the markers start to disappear once you click on a cluster. Any ideas?

Here's the link to the main smaller version that works:
http://207.126.165.149/

Here's the link to the larger map where I am having issues:
http://207.126.165.149/map/fullscreen.php

Thank for any help!!

Original comment by adse...@maternityhealthplan.com on 18 Sep 2012 at 7:39