[OpenLayers-Users] strokeDashstyle options

Takako Tucker Takako.Tucker at bbc.co.uk
Tue Nov 29 11:05:31 EST 2011


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.
					
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111129/a684788c/attachment-0001.html


More information about the Users mailing list