lucastimmons / FusionTablesScrubber

A slider scrubber for changing map layers in fusiontables
0 stars 21 forks source link

Layers new API ? #1

Open PiotrKrosniak opened 10 years ago

PiotrKrosniak commented 10 years ago

Hi small problem with layers, maybe it's because of the new API ? I try all methods, my console shows error onClick to polygon. https://maps.googleapis.com/maps/api/js/LayersService.GetFeature?1sft%3A1b3…3mEH0pjUyBikfIu_miQlOo&4m2&1sh&2sfalse&callback=_xdc_._xbmowy&token=100989 500 (Internal Server Error).

http://werk13.t15.org/public/rsspharser/slider/

PiotrKrosniak commented 10 years ago

OK i found solution with new API we need to use FusionTablesLayerOptions-object as argument for google.maps.FusionTablesLayer. And define style.


/ Replace the xxx with your Fusion Tables IDs. layer1 = new google.maps.FusionTablesLayer({ query: { select: 'GEOCODEC COLUMN', from: 'TABLE ID' }, styleId: X, templateId: X, map: map, });

layer2 = new google.maps.FusionTablesLayer({ query: { select: 'GEOCODEC COLUMN', from: 'TABLE ID' }, styleId: X, templateId: X, map: map, });