[OpenLayers-Users] Change mode
dedoki
xkadidas at gmail.com
Tue Jun 18 03:21:35 PDT 2013
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130618/14a6a4e6/attachment.html>
More information about the Users
mailing list