2015-09-03 184 views
0

我正在使用openlayers 3,我想繪製一個圓圈,但它沒有,我在提到的代碼中有任何錯誤?Openlayers 3繪圖圈

function DrawCircle() { 
      var circleCoordinates = [3210202.3139208322, 5944966.311907868, 3075978.8922520624, 6055647.128864803]; 
      var circle = new ol.geom.Circle(circleCoordinates); 
      var feature = new ol.Feature(circle); 

      var id = guid(); 
      feature.featureID = id; 
      feature.setProperties({ 
       'id': id, 
       'name': typeSelect.value, 
       'description': 'Some values' 
      }) 
      source.addFeature(feature); 
     }; 

回答