On Feb 4, 9:08 am, xelawho <[email protected]> wrote:
> Hi. I am currently porting from v2 to v3 and have run into an
> interesting problem. I have a distance calculator, which I got working
> fine in v3 here:http://xelawho.com/map/measurev3.htm
>
> but when I plug the code into my main page
> (here:http://www.xelawho.com/map/v3.htm),
> the event listeners (click on a marker to delete it, drag a marker to
> change the line shape) stop working. I put alerts into the listener
> functions, but they don't fire (but they do on the simplified
> version). Naming the listeners has no effect, I get no errors in
> firebug, and as far as I can tell there are no function naming
> conflicts and the code is otherwise identical.
>
> any ideas? thanks in advance.
I see this difference (distmarker is global in one case, local to the
leftClick function in the other), don't know if that is the problem.
non-working version of "leftClick"
distmarker = new google.maps.Marker({
non-working version of "leftClick"
var distmarker = new google.maps.Marker({
-- Larry
--
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.