[OpenLayers-Users] strokeDashstyle options

Andreas Hocevar ahocevar at opengeo.org
Tue Nov 29 13:15:36 EST 2011


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 <Takako.Tucker at bbc.co.uk> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list