Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Will grab a fusion table layer for each
- function getFusionTableLayer(mapLayer, fusiontableID) {
- var fusionLayer = new google.maps.FusionTablesLayer({
- query: {
- select: '*',
- from: fusiontableID
- }
- });
- fusionLayer.setOptions({
- suppressInfoWindows: true,
- styles: [{
- where: '*',
- polygonOptions: {
- fillColor: '#ffffff',
- fillOpacity: 0.2,
- strokeColor: '#222222',
- strokeWeight: 1,
- strokeOpacity: 0.5,
- }
- }]
- });
- });
- function setFusionLayerColors(candidate, opacity) {
- var styles = [];
- var strokeColor = '#555555';
- for (var i = 0; i < scale.length; i++) {
- styles.push({
- where: '\'' + candidate + '\' >= ' + scale[i],
- polygonOptions: {
- fillColor: scaleColors[i],
- fillOpacity: opacity,
- strokeColor: strokeColor,
- strokeWeight: 1,
- strokeOpacity: 1,
- }
- });
- }
- currentLayer.setOptions({
- 'styles': styles
- });
- }
Add Comment
Please, Sign In to add comment