On Oct 10, 8:14 am, regulatethis <[EMAIL PROTECTED]> wrote:
> Hi, here's a link to my map:http://www.bonetree.net/~pilgrim/
>
> If you click on the map you'll notice that a circle is drawn onto the
> map with the radius specified below. I'm using Mike Williams'
> eshapes.js to draw the circle. I have a GEventListener on 'click' to
> draw the circle when the map is clicked. This all appears to work
> fine.
>
> My problem is this: I want the overlay to be automatically redrawn
> when the user changes the radius select box. To do this, I'm using
> jQuery to set another listener on the "radius" select box. I'm certain
> that the event itself is fired, I've put some alert()s in the handler
> as well as stepping through it with Firebug. The handler first removes
> the overlay and then attempts to add it again. addOverlay() is
> executed but it never redraws anything. The only line that has any
> effect is the removeOverlay line.
>
> Any ideas? This has had me scratching my head (and pounding my desk)
> for the past 3 days.

$("#lat").val() and $("#lng").val() are strings.  GLatLng takes 2
numbers.

var point = new GLatLng(parseFloat($("#lat").val()), parseFloat($
("#lng").val()));

  -- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to