Hi Larry,

I'm sorry for not adding a link to my post, unfortunately I'm still busy
with development so my code is still on my local machine! I'm not really
sure what bounds mean, but I read in one of the posts that this is what I
needed to use, but it doesn't work.

I basically read a bunch of lat/longs out of a database and plot them on the
map, now I want to zoom level and map centered just around these markers
that I plotted!

Thanx,
Mantie



-----Original Message-----
From: google-maps-api@googlegroups.com
[mailto:google-maps-...@googlegroups.com] On Behalf Of geocode...@gmail.com
Sent: Wednesday, February 10, 2010 10:16 PM
To: Google Maps API
Subject: Re: Can't center map around multiple markers!

On Feb 10, 12:02 pm, Mantie <arma...@designforest.co.za> wrote:
> I've been struggling the whole day now to get my map to center around
> my markers. If I use code from other discussions and apply it to my
> code, it just returns a blank map. Here is my code with my old
> "map.setCenter" function that obviously doesn't work because it's
> fixed to a certain lat/long:

Where is your map?
http://groups.google.com/group/google-maps-api/web/suggested-posting-guideli
nes
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-c
ritical

>
> I tried to use the following code but it doesn't work:
>
> map.setCenter(bounds.getCenter(),map.getBoundsZoomLevel(bounds));

That works fine for me.  What is "bounds"?

  -- 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 google-maps-...@googlegroups.com.
To unsubscribe from this group, send email to
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2678 - Release Date: 02/10/10
09:40:00

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to google-maps-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to