Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I solved in another way. I get colors to each category with this code:</p> <pre><code>var amarelo = new google.maps.MarkerImage( "http://labs.google.com/ridefinder/images/mm_20_yellow.png", new google.maps.Size(12, 20), new google.maps.Point(0, 0), new google.maps.Point(6, 20)); var vermelho = new google.maps.MarkerImage( "http://labs.google.com/ridefinder/images/mm_20_red.png", new google.maps.Size(12, 20), new google.maps.Point(0, 0), new google.maps.Point(6, 20)); var verde = new google.maps.MarkerImage( "http://labs.google.com/ridefinder/images/mm_20_green.png", new google.maps.Size(12, 20), new google.maps.Point(0, 0), new google.maps.Point(6, 20)); var azul = new google.maps.MarkerImage( "http://labs.google.com/ridefinder/images/mm_20_blue.png", new google.maps.Size(12, 20), new google.maps.Point(0, 0), new google.maps.Point(6, 20)); var branco = new google.maps.MarkerImage( "http://labs.google.com/ridefinder/images/mm_20_white.png", new google.maps.Size(12, 20), new google.maps.Point(0, 0), new google.maps.Point(6, 20)); var sombra = new google.maps.MarkerImage( "http://labs.google.com/ridefinder/images/mm_20_shadow.png", new google.maps.Size(22, 20), new google.maps.Point(0, 0), new google.maps.Point(6, 20)); </code></pre> <p>I awarded each category in one of this colors (example):</p> <pre><code>if (placescoordjs[i][4]== 'a') { marker = new google.maps.Marker({ position: new google.maps.LatLng(placescoordjs[i][1],placescoordjs[i][2]), icon: amarelo, shadow: sombra, map: map, title: placescoordjs[i][3] }); google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { infowindow.setContent(placescoordjs[i][0]); infowindow.open(map, marker); } })(marker, i)); } </code></pre> <p>I have more 3 "else if" and the final else with the final color to my last category.</p> <p>Thanks anyway. ;)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload