so i'm trying apply styles according contents of string in column, @ moment i'm testing 1 particular string.
function makemap(lat, lng, zoom) { mylatlng = new google.maps.latlng(lat, lng) map = new google.maps.map(document.getelementbyid('googft-mapcanvas'), { center: mylatlng, zoom: zoom, maptypeid: google.maps.maptypeid.roadmap }); layer = new google.maps.fusiontableslayer({ map: map, heatmap: { enabled: false }, query: { select: "col5", from: "1qrjmw1bt5n__aqhdcbishbmcvs8fqysxx8jie4a", where: "month = 2013-05 || month = 2013-06" }, styles: [ { markeroptions: { iconname: 'small_yellow' }}, { where: "'last outcome category' = 'no further action @ time'", markeroptions: { iconname: 'small_red' } } ], options: { templateid: 2 } }); marker = new google.maps.marker({ position: mylatlng, map: map, title:"you here!" }); }
what seems doing @ moment applying last style everything, in case red marker if switch around yellow marker.
the clause in fusiontablelayer query invalid
where: "month = 2013-05 || month = 2013-06"
(there no 'or' (||) operator in fusiontables) seems causing styles not processed correctly.
Comments
Post a Comment