Hi Marc. Thanks for the great tips. I'm aware of the issue you described.. lots of stuff doesn't work since I upgraded so hey. The issue you described, however, shouldn't result in the odd behaviour I'm experiencing however, should it? The map seems to jump around when "navigating", and that's the issue I'm having.
Perhaps I should just get the app in a state such that it doesn't barf anymore, however, just to narrow down the variables. - ryan. On May 1, 2010 7:16 PM, "Marc Ridey" <[email protected]> wrote: Hi Ryan, Please check this function: getRadius : function() { /** Gets the radius, in m, from the current center to the closest edge of the map. **/ var center = this.map.getCenter(); var mapBounds = this.map.getBounds(); var ne = mapBounds.getNorthEast(); var northEdge = new google.maps.LatLng(ne.lat(), center.lng()); var eastEdge = new google.maps.LatLng(center.lat(), ne.lng()); return Math.min( center.distanceFrom(northEdge), center.distanceFrom(eastEdge) ); }, It throws an exception on center.distanceFrom(). Note that LatLng does not have a method distanceFrom in v3. An example of how to calculate the distance between two latlngs is available here: http://stackoverflow.com/questions/1502590/calcualte-distance-between-two-points-in-google-maps-v3 On May 2, 3:55 am, ryan baldwin <[email protected]> wrote: > Hi Susannah, sorry for the delay.... > [email protected]> wrote: > > Hi Ryan, > > > Can you provide a link for the site where you saw ... > > [email protected]<google-maps-js-api-v3%[email protected]><google-maps-js-api-v3%2B [email protected]> > > . > > > For more options, visit this group athttp:// > > groups.google.com/group/google-maps-js-... > > [email protected]<google-maps-js-api-v3%[email protected]><google-maps-js-api-v3%2B [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-maps-js-api... -- 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.
