yourcelf / olwidget

Javascript library to replace textareas that contain WKT data with editable OpenLayers maps, and a django app using it for django forms and admin.
Other
91 stars 43 forks source link

Problem and solution for stroke_dashstyle error in documentation #74

Closed dyve closed 13 years ago

dyve commented 13 years ago

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:

'stroke_dashstyle': '5 2',

would create a dash 5px wide spaced 2px apart

yourcelf commented 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'.

dyve commented 13 years ago

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.