sprintersLayer = new OpenLayers.Layer.Vector('해양기후', {
styleMap: new OpenLayers.StyleMap({
externalGraphic: '../js/OpenLayers/img/marker.png',
graphicOpacity: 1.0,
graphicWith: 16,
graphicHeight: 26,
graphicYOffset: -26,
fontColor: "red",
fontSize: "12px",
fontFamily: "Courier New, monospace",
fontWeight: "bold"
})
});
sprintersLayer.addFeatures(getSprintersFeatures());
sprintersLayer.id="sprintersLayer";
map.addLayer(sprintersLayer);
//라벨 수정
sprintersLayer.styleMap.styles.default.defaultStyle.label = "101";
sprintersLayer.redraw();
'develop > web GIS' 카테고리의 다른 글
EPSG:4326 to EPSG:900913 transform (0) | 2014.11.19 |
---|---|
OpenLayers addfeatures(json) 에서 json형식 java에서 만들기 (0) | 2014.11.17 |
레이어 클릭시 이벤트 발생 (0) | 2014.11.16 |
좌표로 폴리곤 표현 (0) | 2014.11.14 |
좌표에 해당하는 마커 및 팝업 표현 (0) | 2014.11.14 |