Multi label with mulit placement in OpenLayers

المشرف العام

Administrator
طاقم الإدارة
I have a vector layer in OpenLayers. It has some attributes like left, right, top, bottom, etc.I want every feature to be multi-label (to have more than one label).
The javascript code is as follows:

style = new OpenLayers.Style();rule = new OpenLayers.Rule({ filter: new OpenLayers.Filter.Comparison({...}), symbolizer: { fillColor: 'blue', label: ?????, }});style.addRules([rule]);styleMap = new OpenLayers.StyleMap({ 'default': style});myLayer.styleMap = styleMapI want my style to be like this:


How do I do?

note: I know that I will be able to do this by "SLD", but I have to use style map in OpnenLayers.


أكثر...
 
أعلى