gmap.setCenter(new GLatLng(parseFloat(latitude), parseFloat (longitude)), parseInt(zoom));
That did the ticket! Thanks! On Apr 17, 12:19 pm, "[email protected]" <[email protected]> wrote: > On Apr 17, 11:03 am, "wilderness.webmaster" > > > > > > <[email protected]> wrote: > > I have a map that shows wilderness boundaries and a dropdown that > > allows you to select a wilderness, by name, and zoom to it. In the > > following simplified example, I have 3 wilderness areas listed: > > Badlands Wilderness (SD), Kenai Wilderness (sw AK), Marjory Stoneman > > Douglas Wilderness (FL everglades). When you select any one of them, > > the center of the map changes, but not the zoom level. Not sure what > > gives here since the "Full Extent" link works just fine. > > > Map:http://www.wilderness.net/_test/map.cfm > > OS: XP pro > > Browser: IE6, Firefox 3.0.4, Netscape 8.0.4 > > > Just a note, I've decided to go this route rather than calculating > > bounds and zoom level because a lot of wilderness areas consist of > > more than one polygon. > > Make sure the latitude and longitude are floats (not strings) and the > zoom is an integer not a string. > call parseFloat; parseInt > > -- Larry- 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 -~----------~----~----~----~------~----~------~--~---
