Google Maps Fusion Tables Query

Go To StackoverFlow.com

1

I'm trying to filter the data fusion tables return.

This is my code:

    // Set Fusion Table Layer
    layer = new google.maps.FusionTablesLayer({
        query: {
            select: 'geometry',
            from: fusionTable,
            where: whereQuery
        }
    });

whereQuery equals to this: name =' Antelope Valley | San Fernando | East Area | South Bay |name =' Antelope Valley | San Fernando | East Area | South Bay '

However, it is not firing correctly.

Is there something I'm missing?

Thanks!

2012-04-04 21:46
by Umm....


1

try using the IN statement in your where clause, ie:

name IN ('Antelope Valley','San Fernando','East Area','South Bay')
2012-04-04 22:02
by javram
Amazing it worked! Many Thanks - Umm.... 2012-04-04 22:46
Awesome, glad to help - javram 2012-04-05 01:22
Ads