Hi all,<div><br></div><div>I'll start telling you that I'm a complete newby to mapquery, so maybe this question has a very simple response, but I've been unable to find it.</div><div><br></div><div>I'm creating a map using mapquery. Relevant source code is:</div>
<div><br></div><div>$('#map').mapQuery({</div><div> center: {</div><div> box: [5.75, 47, 15, 55]</div><div> },</div><div> layers: [{</div><div> type: 'json',</div><div> url: 'germany.geojson',</div>
<div> label: 'Germany'</div><div> }]</div><div>});</div><div><br></div><div>this simple code shows me a centered map of Germany.</div><div><br></div><div>Now, I want to add colored points at certain cities (red or green points, depending of some values)... but I'm not able to add these points to the map.</div>
<div><br></div><div>At most, I've been able to add these points adding a new json layer to layers list, with a different url (stations.php). This PHP file generates a file like this one:</div><div><br></div><div>{</div>
<div> "type": FeatureCollection",</div><div> "features": [{</div><div> "type": "Feature",</div><div> "geometry": {</div><div> "type": "Point",</div>
<div> "coordinates": [x, y]</div><div> }</div><div> }]</div><div><div>}</div><div><br></div><div>That way I can add the points, but I've found no way to apply colour to these points. I've tried adding an "style" property to the feature, but it doesn't work.</div>
<div><br></div><div>It shouldn't be too complicated, but I've no clue... any help?</div><div><br></div><div>Thanks a lot!</div><div><br></div><div>David (aka sharcashmo)</div>-- <br><a href="http://hphayquedecirlomas.wordpress.com/" target="_blank"><img src="http://hphayquedecirlomas.files.wordpress.com/2012/02/c.jpg"></a><br>
<div><br></div><div>HIJOS DE PUTA! Hay que decirlo más... Haz click en la imagen para decirlo más</div><br>
</div>