Oh sorry, I posted in the wrong board.
Admins may delete this.

On Mar 8, 7:23 am, Brak <[email protected]> wrote:
> Are you using v2 or v3 of the Maps API? If you are using v3 (this is
> the v3 Group) then you need to update your GLatLng function to the v3
> version.
>
> GLatLng()
> becomes
> google.maps.LatLng();
>
> On Mar 8, 7:04 am, Alex Fan <[email protected]> wrote:
>
> > Hi everyone.
> > Thanks for even reading this thread and helping me.
>
> > I'm trying to implement the "zoom here" functionality for a project
> > I'm doing.  To be specific, I have markers and there is a link on each
> > marker to zoom in on the location of that marker.
>
> > Right now, Firebug tells me that "position" is undefined when I click
> > on the "Zoom Here" link.  I think the problem lies in my lack of
> > understanding of scope rules regarding links.
>
> > Here's the code I'm using:
> >     GEvent.addListener(marker, "click", function() {
> >                 var position = new GLatLng(lat,long);
> >                 marker.openInfoWindowHtml("<b>" + //Type:  Concert<br>" +
> >                 "Date: " + dateSplit[1] + "-" + dateSplit[2] + "-" + 
> > dateSplit[0] +
> > "<br>" +
> >                 "Time: " + startNum + ":" + timeArr[1] + " " + 
> > time_meridian +
> > "<br>" +
> >                 "Location:  " + loc + "<br>" +
> >                 "<a href=" + url + " target=_blank>More 
> > Information</a><br>" +
> >                 "<a href=" + 'javascript:map.setCenter(position)' + ">Zoom 
> > Here</a></
> > b>");
> >         });
>
> > Again, thank you.

-- 
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.

Reply via email to