toggle - Google Fusion Table Layer turned off by default -
stackoverflow stunning site!!! learn lot here,
now i'm try nice comunity: gmaps v3 fusion table , custom base map...
i'm looking @ xample: http://www.geocodezip.com/v3_so_fusiontables_toggle.html. want layers turned off @ load page: suggestion?
thanks in advance
andrea
uncheck boxes:
<input type="checkbox" id="show_hide_layer1" onchange="togglelayer(layer1)"/> <label> old boundaries </label> <input type="checkbox" id="show_hide_layer2" onchange="togglelayer(layer2)"/> <label> new boundaries </label>
don't set map property of layers:
layer1 = new google.maps.fusiontableslayer({ query: { select: 'col2', from:'1nxfknmdxhovvwnnawscabdxudqqdul1bpiinthi' } }); layer2 = new google.maps.fusiontableslayer({ query: { select: 'col2', from:'1am37b7pzug3nqf14l4gzdbsrugafwouigcbkv2c' } });
Comments
Post a Comment