How to create a polygon with a circular hole in openlayers 3?

المشرف العام

Administrator
طاقم الإدارة
To highlight an area on my map I need to make a circular hole in a polygon. Actually I only manage to make a rectangle hole, for example using Polygon's appendLinearRing function:

mypolygon.appendLinearRing(new ol.geom.LinearRing([ [239850, 5069850], [239850, 5070150], [240150, 5070150], [240150, 5069850], [239850, 5069850] ])); Now I want to make it look like a spot, the problem is that I can't find out how to add "Circle" as optional geometry (opt_layout) to ol.geom.LinearRing. Any hints?



أكثر...
 
أعلى