In changeMap2 (your linked map doesn't have "LocChange()") try: function changeMap2(theValue) { map.panTo(new google.maps.LatLng(theValue.split(',')); } panTo: http://code.google.com/intl/en/apis/maps/documentation/javascript/reference.html#Map split: http://msdn.microsoft.com/en-us/library/t5az126b(v=VS.85).aspx
split returns an array (in this case, two strings with floating point numbers), and LatLng requires two values. I don't know whether passing an array of two values to LatLng will work. But you'll tell us, won't you? - Jeff On Aug 18, 11:16 am, Amelia Griza-Padilla <ameliagpadi...@gmail.com> wrote: > Hello, > I am a beginner to Google Maps Javascript API (about 2 weeks now) and I need > some assistance. I have created two drop down menus linked to my fusion > tables. What I am trying to do is: upon clicking on a selection zoom to > that polygon (or lat/long). I've found some ideas, but have no idea how to > incorporate this in my map. So far I've added "value="35.286125,-120.659409" > to one of records but nothing happens. > > select id="searchString" onChange="javascript:LocChange(this);"> > <option value="">--All Districts--</option> > <option value="Achadjian, Katcho 33" > value="35.286125,-120.659409">Achadjian, Katcho 33</option> > > Any assistance would be greatly appreciated. > > http://www.advocacy.ucla.edu/Maps/Assembly_Map.html -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.