Monday, 13 January 2020

Draw Rectangle using OpenLayers 4?



I just want to draw rectangle for style. if I do this


 image: new ol.style.RegularShape({
fill: fill,
//stroke: stroke,
// offsetY: -25,
points: 4,
radius1: 30,
//radius2:20,
angle: Math.PI / 4
})


it gives me this square
enter image description here


else if i do this


 image: new ol.style.RegularShape({
fill: fill,
//stroke: stroke,
// offsetY: -25,
points: 4,
radius1: 30,

radius2:10,
angle: Math.PI / 4
})

it gives me this
enter image description here


How can I draw a rectangle?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...