当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Different Styles Within Vector Layer

问题描述:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: