dimanche 1 février 2015

How to change color of a layer in openlayers?


http://ift.tt/1A5QrDX


this is my website for test.


I add two layers in openlayers.


And I want to change color in one of two layers.



var myStyle = new OpenLayers.Style({fill: true,fillColor: "#ff0000"});
var BounderyshpLayer = new OpenLayers.Layer.Vector({projection: new OpenLayers.Projection('EPSG:3826'),style: myStyle});


enter image description here


why is it not work!?





Aucun commentaire:

Enregistrer un commentaire