0
對OpenLayers極爲新穎,並嘗試在點擊原點周圍的地圖上繪製圓圈。我有這個代碼 -圓圈沒有在OpenLayers中顯示
circleLayer = new OpenLayers.Layer.Vector "Circle Search"
circle = new OpenLayers.Geometry.Polygon.createRegularPolygon(
new OpenLayers.Geometry.Point(lat,lon),
100,
30
)
console.log(circle)
feature = new OpenLayers.Feature.Vector(circle)
circleLayer.addFeatures(feature)
mapApp.map.openLayersMap.addLayer circleLayer
但是圈子沒有出現,我不知道爲什麼。誰能告訴我?