Hi, strokeDashstyle also accepts SVG stroke-dasharray. This gives you more options, but it may not look as expected when rendered using Canvas or VML renderers.
Andreas. On Tue, Nov 29, 2011 at 5:05 PM, Takako Tucker <[email protected]> wrote: > Hi, > > I'm trying to demonstrate a route using dashed line and I'm using below > code. > However the density of dashes seems to be much less than what I want to > achieve. > It seems to be too much space in between the dashes. > Does anyone know how I can reduce the space? > > var route = new OpenLayers.Layer.Route( 'Test route', { > style: { > strokeColor: "#000", > strokeOpacity: 0.8, > strokeWidth: 3, > pointRadius: 0, > strokeDashstyle: "dash", > } > }); > > Thank you > > > http://www.bbc.co.uk > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in reliance > on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
