On Apr 5, 11:09 am, uafairbanks <[email protected]> wrote:
> OK -- For others who may have this same question:
>
> I reset my map center by moving the map where I wanted it at the zoom
> level that worked best. Then I zoomed in and chose the closet town,
> state and found out the long/lat for that location. That is what I
> used and then slightly adjusted from there.
>
> Definitely not fast  -- required trial and error -- but I got it done.

if you made your "map" variable global, you could center and zoom your
map to the desired location/zoom; then execute:
javascript:GLog.write(map.getCenter()+","+map.getZoom());

and it will output the current center and zoom level to the log.

another option would be to use another Google Maps API map page that
already has the map variable global, like this one:
http://www.geocodezip.com/example_geo2.asp?lat=59.355596110016314&lon=-137.900390625&zoom=4

  -- Larry


> Gretchen
>
> On Apr 5, 9:36 am, uafairbanks <[email protected]> wrote:
>
>
>
> > So, if I don't want to go this route -- is there another way to just
> > revise the center point?
> > Currently set at:
> > map.setCenter(new GLatLng(62.349609,-156.972656),1);
>
> > Thank you again,
> > Gretchen
>
> > On Apr 2, 2:15 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Apr 2, 3:28 pm, uafairbanks <[email protected]> wrote:
>
> > > > Would this work?
> > > > map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));
>
> > > Yes, but you need to create the "bounds" object.
>
> > > I usually create a global bounds object then in the createMarker
> > > function, call bounds.extend(point);
>
> > >   See Mike Williams' tutorial for a working example.
>
> > >   -- Larry
>
> > > > Again, thanks,
> > > > g
>
> > > > On Apr 2, 11:24 am, uafairbanks <[email protected]> wrote:
>
> > > > > Hi there,
> > > > > I have the following map:http://www.uaf.edu/results/
>
> > > > > I want to add a marker in Utah, and I don't know how to find the new
> > > > > center/zoom level I need to show both AK and UT.
>
> > > > > My code lives at:http://www.uaf.edu/results/custom.js
>
> > > > > I know I need to revise this code:
> > > > > map.setCenter(new GLatLng(62.349609,-156.972656),1);
>
> > > > > but I don't know how to find the new lat/long and zoom.
>
> > > > > Any help would be much appreciated.
> > > > > Thanks,
> > > > > Gretchen- Hide quoted text -
>
> - Show quoted text -

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