레이어 클릭시 이벤트 발생
map = new OpenLayers.Map('map',{ projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", tileSize : new OpenLayers.Size(256,256), numZoomLevels:19, allOverlays : true, eventListeners: { featureclick: function(e) { layerData(e); } }, maxResolution: 156543.0339, tileOrigin : new OpenLayers.LonLat(-20037508.34, -20037508.34), rest..
더보기
마커 생성 및 라벨 수정
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="sprinter..
더보기