Project

General

Profile

1
/*
2
License: LGPL as per: http://www.gnu.org/copyleft/lesser.html
3
$Id: EditLine.js 3807 2008-01-18 13:57:21Z ahocevar $
4
*/
5

    
6
// Ensure this object's dependancies are loaded.
7
mapbuilder.loadScript(baseDir+"/widget/EditButtonBase.js");
8

    
9
/**
10
 * When this button is selected, clicks on the MapPane will add a
11
 * new point to a line.
12
 * @constructor
13
 * @base EditButtonBase
14
 * @author Cameron Shorter cameronATshorter.net
15
 * @param widgetNode The from the Config XML file.
16
 * @param model  The ButtonBar widget.
17
 */
18
function EditLine(widgetNode, model) {
19
  // Extend EditButtonBase
20
  EditButtonBase.apply(this, new Array(widgetNode, model));
21
  
22
  this.instantiateControl = function(objRef, Control) {
23
    return new Control(objRef.featureLayer, OpenLayers.Handler.Path);
24
  }
25
}
(25-25/145)