On Feb 8, 6:06 am, "[email protected]" <[email protected]>
wrote:
> On Feb 8, 5:52 am, "[email protected]" <[email protected]>
> wrote:
> > On Feb 8, 1:30 am, bluewatersailor <[email protected]> wrote:
>
> > > Hi, all -
>
> > > New to the group, and would be grateful for any useful advice on
> > > this.
> > > I've just implemented a MarkerManager-based script, got all the
> > > data out of the MySQL tables and into the markers, and placed them
> > > on the map (this is indeed great coolness, and I've already done
> > > the required Happy Dance. :) I've even got the "state"-level
> > > markers defined as showing up at levels 0-6, and the "city"-level
> > > markers displaying at 7-17 (and all of that works fine.) The fly in
> > > the ointment is this: I'd like for the state-level markers, rather
> > > than jumping to another part of the site (which is what they
> > > currently do, via 'window.location'), to zoom in on their own
> > > position, down to zoom level 7. I've tried 'map.setZoom(7)' - and
> > > it doesn't work. As far as I know, it should - so I'm kinda
> > > stumped, even after searching the Net for quite a while.
>
> > > The latest iteration of this script is at  
> > > http://203kcontractors.com/mm_latest.html
>
> > I get a javascript error:
> > Line: 50
> > Error: 'lat' is undefined
>
> > on this line:
> > map.setCenter(LatLng(lat,lng),parseInt(7));
>
> > There is no LatLng constructor.
> > What is the value of lat?
>
> > I would suggest (not tested):
> > map.setCenter(point,parseInt(7));
>
> > (point is a GLatLng object already.  LatLng is not the same as GLatLng
> > and if you want to use that syntax it should be:
> > map.setCenter(new GLatLng(point.lat,point.lng),7);
>
> The other problem you will see (once you fix that) is that your map
> variable is local to the GDownloadUrl callback function, so is not
> available in the click listeners.  You need to make it global.

Like this:
http://www.geocodezip.com/203kcontractors_com_mm_latestB.html

   -- Larry

>
>
>
>
>
>
>
>
> > -- Larry
>
> > > . Again, I'd really appreciate any help you can offer.
>
> > > Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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