Closed dyve closed 13 years ago
Is that true? The OpenLayers documentation (http://docs.openlayers.org/library/feature_styling.html ) seems to indicate that words such as "dot", "dash", and "solid" are still the way to go. I agree that the option in the docs should read 'stroke_dashstyle' and not 'stroke_dash_style'.
You are right, the problem is only in the name. The option in the docs should read 'stroke_dashstyle' and not 'stroke_dash_style'. That's it.
Problem: The values for stroke_dashstyle as described in http://olwidget.org/olwidget/v0.4/doc/django-olwidget.html#layer-options are no longer valid. OpenLayers now used SLD style.
Solution: Fix documenation and refer to SLD style, see http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/lines.html#dashed-line
Example of SLD style:
would create a dash 5px wide spaced 2px apart