1
내 응용 프로그램에 OpenLayers 3과 OpenStreetMap을 사용하고 있습니다. 마커를 그리기 위해지도에 원 벡터를 그려 냈습니다. 문제는 내가 원을 확대하거나 축소 할 때 항상 같은 크기를 유지한다는 것입니다. 해상도에 따라 벡터의 크기를 어떻게 바꿀 수 있습니까? (즉, 당신이 원하는 거라면)OpenLayers 3 기능 크기 조정
var dealerSource = new ol.source.Vector();
function dealerStyle(feature) {
var style = new ol.style.Style({
image: new ol.style.Circle({
radius: 6,
stroke: new ol.style.Stroke({
color: 'white',
width: 2
}),
anchor: [1.5, 1.5],
fill: new ol.style.Fill({
color: 'green'
})
})
});
return [style];
}
내가 할 수 있기를 원하는 것은이 예제에서 OpenLayers 2를 사용하는 것과 같습니다. http://dev.openlayers.org/examples/resize-features.html –