I'm developing an app which allows user to select the region on the map. On click of the map I'm storing that region's state and country in two separate arrays. I want to apply a query on fusion table which gives me the data for only selected states and countries.
I have tried the following two separate queries for country and state selection.
var selectState = {
select: 'kml_4326',
from: 420419,
where: "'name_1' IN ('Montana','Nevada')"
};
var selectCountry = {
select: 'kml_4326',
from: 420419,
where: "'name_0' IN ('Canada','Russia')"
};
Both queries works fine when I apply separately to the fusion table layer. I want to merge these two queries. I tried the following for merging but not working:
var selectStateAndCountry = {
select: 'kml_4326',
from: 420419,
where: "'name_0' IN ('Canada','Russia') AND 'name_1' IN ('Montana','Nevada')"
};
Please suggest me a solution. Thanks.