On Apr 5, 10: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);
Is there something wrong with just changing the numbers? -- Larry > > 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.
