How can I fill polygon with strokes in openlayers 3?

المشرف العام

Administrator
طاقم الإدارة
I want to create a polygon and have it filled with strokes as in the image :



Currently my style function looks like this :

var tempObjectsStyleFunction = function(feature, resolution) {return [ new ol.style.Style({ fill: new ol.style.Fill({ color: feature.get('color') }), stroke: new ol.style.Stroke({ color: feature.get('color'), width: 5 }), image: new ol.style.Circle({ radius: 20, fill: new ol.style.Fill({ color: feature.get('color') }) }) })];};

What do I need to modify in order to support strokes in the fill ?



أكثر...
 
أعلى