Hi Jeff,
Sorry I'm really a novice, what I tried was

  function changeMap() {
  var searchString =
document.getElementById('searchString').value.replace("'", "\\'");
  if(searchString == "") {
    layer.setQuery("SELECT 'geometry' FROM " + tableid);
    return;
  }
  layer.setQuery("SELECT 'geometry' FROM " + tableid + " WHERE 'name'
= '" + searchString + "'");
}

{
  function changeMap2(theValue) {
  map.panTo(new google.maps.LatLng(theValue.split(','));
  var searchString2 =
document.getElementById('searchString2').value.replace("'", "\\'");
  if(searchString2 == "") {
    layer2.setQuery("SELECT 'geometry' FROM " + tableid2);
    return;
  }
  layer2.setQuery("SELECT 'geometry' FROM " + tableid2 + " WHERE
'name' = '" + searchString2 + "'");
}
}

Is that what you meant?  If so, unfortunately it didn't work.

Any examples of this type of query or other suggestions?

Thx,
Amelia

On Aug 18, 1:12 pm, JKurtock <jkurt...@gmail.com> wrote:
> 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/ref...
> 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- Hide quoted text -
>
> - Show quoted text -

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

Reply via email to