지도에 아이콘의 위치를 세밀히 조정하게 될때, 점검해야하는 anchor 의 옵션은 다음과 같다.
const vectorLayer = new VectorLayer({
source: new VectorSource({
features: [marker]
}),
style: new Style({
image: new Icon({
anchor: [0.5, 1],
src: 'https://openlayers.org/en/latest/examples/data/icon.png'
})
})
});
map.addLayer(vectorLayer);