Hello, try to use filter on vector layer.
http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Filter-js.html http://openlayers.org/dev/examples/wfs-filter.js // it is for wfs layer, but in generally is filtering the same helpfull for you If you have one, than you can add it to layer like that: layer.filter = filter; You must to know the name of the attribute / column, which hold the road types (forest tracks, highways etc.). If you dont know attributes, try to use console: console.log(layer); and here you can find all information about that layer. The console is shown with F12 button in yourr web browser. For FF you need to install firebug console. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Painting-vector-layer-tp5046763p5046856.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
