问题描述:

Is there any way to configure OpenLayers styling method? I have a vector layer and I would like to style the features depending on a value of a flag variables, so I can't use rules. Lets say I have two types of features: houses and restaurants. houses flag is "H" and restaurants flag is "R". How can I give them a different style within a vector layer?

网友答案:

See lookup and addUniqueValueRules: http://docs.openlayers.org/library/feature_styling.html

相关阅读:
Top