hi !

i add a layer with osm-daten to openlayer like a gml-object by following code:

map.addLayer (new OpenLayers.Layer.GML("Testgebiet", "../osmdata/area.osm", {format: OpenLayers.Format.OSM}));

the color of the line (way) is yellow - but i want to have another style.

the code

  map.gml.styleMap = new OpenLayers.StyleMap( {
                strokeColor: "#0000ff",
                strokeWidth: 4,
                strokeOpacity: 0.8
        });

is not the right one - can anybody tell me the correct way ???

regards Jan :-)


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to