Skip to main content
spelling and format
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

what What is the dimension used in open layersOpenLayers stroke width  ?

In openlayers OpenLayers, when you are giving a style to layer  , Saysay a WFS layer  , we can give stroke width  , like this ,:

var layerWFS = new ol.layer.Vector({
    source: sourceWFS,
    title: 'plot_layer',
    name: 'plot_layer',
    style: new ol.style.Style({
        stroke: new ol.style.Stroke({
            color: 'rgba(255, 0, 255, 1)',
            width: 1
        })
    })
});

Here width is 1 , iI would like to know in which dimension that we are giving the stroke width , whether , whether:

1.millimeter (mm) 1 means 1mm 2. centimeter (cm) 1 means 1cm

  1. millimeter (mm) 1 means 1mm
  2. centimeter (cm) 1 means 1cm

what is the dimension used in open layers stroke width  ?

In openlayers , when you are giving a style to layer  , Say WFS layer  , we can give stroke width  , like this ,

var layerWFS = new ol.layer.Vector({
    source: sourceWFS,
    title: 'plot_layer',
    name: 'plot_layer',
    style: new ol.style.Style({
        stroke: new ol.style.Stroke({
            color: 'rgba(255, 0, 255, 1)',
            width: 1
        })
    })
});

Here width is 1 , i would like to know in which dimension that we are giving the stroke width , whether ,

1.millimeter (mm) 1 means 1mm 2. centimeter (cm) 1 means 1cm

What is the dimension used in OpenLayers stroke width?

In OpenLayers, when you are giving a style to layer, say a WFS layer, we can give stroke width, like this:

var layerWFS = new ol.layer.Vector({
    source: sourceWFS,
    title: 'plot_layer',
    name: 'plot_layer',
    style: new ol.style.Style({
        stroke: new ol.style.Stroke({
            color: 'rgba(255, 0, 255, 1)',
            width: 1
        })
    })
});

Here width is 1 , I would like to know in which dimension that we are giving the stroke width, whether:

  1. millimeter (mm) 1 means 1mm
  2. centimeter (cm) 1 means 1cm
Source Link
AhammadaliPK
  • 450
  • 1
  • 5
  • 23

what is the dimension used in open layers stroke width ?

In openlayers , when you are giving a style to layer , Say WFS layer , we can give stroke width , like this ,

var layerWFS = new ol.layer.Vector({
    source: sourceWFS,
    title: 'plot_layer',
    name: 'plot_layer',
    style: new ol.style.Style({
        stroke: new ol.style.Stroke({
            color: 'rgba(255, 0, 255, 1)',
            width: 1
        })
    })
});

Here width is 1 , i would like to know in which dimension that we are giving the stroke width , whether ,

1.millimeter (mm) 1 means 1mm 2. centimeter (cm) 1 means 1cm