Hello I posted this before, but I have been working on it since and I was able to narrow done the problem.
I am developing for smart Phones and the V3 is really a "great step forward". However on my MAC everything works just fine, on my Smart Phone (HTC desire) not. A soon as I call the setOptions method on a Polygon or a Polyline I loose the click Event of the Overlay until I zoom the map then the event starts working again. Link: http://sheep.stylebar.de/DRAW/map.html Code snippet: google.maps.Polyline.prototype.ClickAction = ClickAction; function ClickAction(LatLng,polyOptions) { switch(this.ClickCount) { case 0: var str = "<div class='WindowText'>Path Length: " + this.LineLength() + " m</div>"; this.window = new google.maps.InfoWindow({content: str}); this.window.setPosition(LatLng); this.window.open(map); this.ClickCount++; this.ClickCount%=3; break; case 1: this.window.close(); this.time = new Date(); this.time = this.time.getTime(); // implement editability... this.ClickCount++; this.ClickCount%=3; break; case 2: var currentTime = new Date(); currentTime = currentTime.getTime(); if (currentTime - this.time < 500) { this.setOptions(polyOptions); }else { // clear markers... } this.ClickCount++; this.ClickCount%=3; break; default : this.ClickCount = 0; } } -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
