Hello List

Is there a way while defining the style of a feature to give a a css class instead of explicit definitions, for example instead of writing something like:

feature.style.externalGraphic = url("images/f.png");
feature.style.graphicWidth = 20;

replaced by something like

feature.style=mystyle;

where mystyle is defined in a css class as follows:
.mystyle {
   background-image : url("images/f.png");
   width : 20px;
}

Thnx

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

Reply via email to