Skip to main content
added 39 characters in body; edited tags; edited title
Source Link
Taras
  • 34k
  • 4
  • 73
  • 148

Dashed Creating dashed lines in OL3?OpenLayers 3

I know Line dash not working OL3 (Openlayers 3) has been asked earlier but the solution proposed is not working.

My code is :

var calculateStyle= new ol.style.Style({
      fill: new ol.style.Fill({
    color: [255, 255, 255, 0.6],
    opacity: 0.3
  }),
  stroke: new ol.style.Stroke({
    color: [0, 153, 255, 1],
    linedash: [40,40],
    width: 3
  })
});
var calculateStyle = new ol.style.Style({
    fill: new ol.style.Fill({
                    color: [255, 255, 255, 0.6],
                    opacity: 0.3
                }),
    stroke: new ol.style.Stroke({
                    color: [0, 153, 255, 1],
                    inedash: [40,40],
                    width: 3
                })
});

I tried both [4,4] and [40,40] suggested in the question linked. But it's not working.

Dashed lines in OL3?

I know Line dash not working OL3 (Openlayers 3) has been asked earlier but the solution proposed is not working.

My code is :

var calculateStyle= new ol.style.Style({
      fill: new ol.style.Fill({
    color: [255, 255, 255, 0.6],
    opacity: 0.3
  }),
  stroke: new ol.style.Stroke({
    color: [0, 153, 255, 1],
    linedash: [40,40],
    width: 3
  })
});

I tried both [4,4] and [40,40] suggested in the question linked. But it's not working.

Creating dashed lines in OpenLayers 3

I know Line dash not working OL3 (Openlayers 3) has been asked earlier but the solution proposed is not working.

My code is :

var calculateStyle = new ol.style.Style({
    fill: new ol.style.Fill({
                    color: [255, 255, 255, 0.6],
                    opacity: 0.3
                }),
    stroke: new ol.style.Stroke({
                    color: [0, 153, 255, 1],
                    inedash: [40,40],
                    width: 3
                })
});

I tried both [4,4] and [40,40] suggested in the question linked. But it's not working.

replaced http://gis.stackexchange.com/ with https://gis.stackexchange.com/
Source Link

I know Line dash not working OL3 (Openlayers 3)Line dash not working OL3 (Openlayers 3) has been asked earlier but the solution proposed is not working.

My code is :

var calculateStyle= new ol.style.Style({
      fill: new ol.style.Fill({
    color: [255, 255, 255, 0.6],
    opacity: 0.3
  }),
  stroke: new ol.style.Stroke({
    color: [0, 153, 255, 1],
    linedash: [40,40],
    width: 3
  })
});

I tried both [4,4] and [40,40] suggested in the question linked. But it's not working.

I know Line dash not working OL3 (Openlayers 3) has been asked earlier but the solution proposed is not working.

My code is :

var calculateStyle= new ol.style.Style({
      fill: new ol.style.Fill({
    color: [255, 255, 255, 0.6],
    opacity: 0.3
  }),
  stroke: new ol.style.Stroke({
    color: [0, 153, 255, 1],
    linedash: [40,40],
    width: 3
  })
});

I tried both [4,4] and [40,40] suggested in the question linked. But it's not working.

I know Line dash not working OL3 (Openlayers 3) has been asked earlier but the solution proposed is not working.

My code is :

var calculateStyle= new ol.style.Style({
      fill: new ol.style.Fill({
    color: [255, 255, 255, 0.6],
    opacity: 0.3
  }),
  stroke: new ol.style.Stroke({
    color: [0, 153, 255, 1],
    linedash: [40,40],
    width: 3
  })
});

I tried both [4,4] and [40,40] suggested in the question linked. But it's not working.

[Edit removed during grace period]
Source Link
BritishSteel
  • 6.7k
  • 4
  • 40
  • 66
deleted 100 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Loading
Tweeted twitter.com/#!/StackGIS/status/612962223980453888
edited tags
Source Link
nagytech
  • 3.8k
  • 19
  • 37
Loading
Source Link
Ishan
  • 365
  • 1
  • 3
  • 12
Loading