Hello! I have panel with buttons:
/var panel = new OpenLayers.Control.Panel(//
//    {//
//        createControlMarkup: function(//
//                control ) {//
//            var button = document.createElement(//
//                    'button' ),//
//                    iconSpan = document.createElement(//
//                    'span' ),//
//                    textSpan = document.createElement(//
//                    'span' );//
//            iconSpan.innerHTML = ' ';//
//            button.appendChild(//
//                    iconSpan );//
//            if ( control.text ) {//
//                textSpan.innerHTML = control.text;//
//            }//
//            button.appendChild(//
//                    textSpan );//
//            return button;//
//        }//
//    }//
//);//
//
//var editCable = new OpenLayers.Control.ModifyFeature(//
//    lineLayer, {//
//title: "EditCable",//
//text: 'EditCable',//
//vertexRenderIntent: 'temporary',//
//displayClass: "olControlMoveClosure",//
//modified: true,//
//createVertices: true,//
//mode: OpenLayers.Control.ModifyFeature.RESHAPE,//
//trigger: function() {//
//    selectLineControl.deactivate();//
//}//
//} );//
//
//var drawCable = new OpenLayers.Control.DrawFeature(//
//    addCableLineLayer,//
//    OpenLayers.Handler.Path,//
//    {//
//        title: "DrawCable",//
//        text: 'DrawCable',//
//        displayClass: "olControlDrawClosure",//
//        handlerOptions: { multi: false }//
//    } );//
//
//var addSingPoint = new OpenLayers.Control.Button(//
//    { trigger: function() {//
//            selectLineControl.activate();//
//            selectSingPoint = true;//
//        },//
//        title: "AddPoint",//
//        text: "AddPoint"//
//    } );/

If i click on _drawCable_ button and then click on _addSingPoint_ button the cursor will look like the cursor to draw: . How to switch to normal mode (with possibility of a select features), when I clicked on the _addSingPoint_ button?
Thanks for answer.
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to