src/geo/leaflet/leaflet.geometry.js
/**
 * view for other geometries (polygons/lines)
 */
view for other geometries (polygons/lines)
view for other geometries ( polygons / lines )
function PathView(geometryModel) {
  var self = this;
  var events = [
    'click',
    'dblclick',
    'mousedown',
    'mouseover',
    'mouseout',
  ];
  this._eventHandlers = {};
  this.model = geometryModel;
  this.points = [];
  this.geom = L.GeoJSON.geometryToLayer(geometryModel.get('geojson'));
  this.geom.setStyle(geometryModel.get('style'));
}
function PathView ( geometryModel ) { var self = this ; var events = [ 'click' , 'dblclick' , 'mousedown' , 'mouseover' , 'mouseout' , ] ; this . _eventHandlers = { } ; this . model = geometryModel ; this . points = [ ] ; this . geom = L . GeoJSON . geometryToLayer ( geometryModel . get ( 'geojson' ) ) ; this . geom . setStyle ( geometryModel . get ( 'style' ) ) ; }
view for other geometries (polygons/lines)
view for other geometries ( polygons / lines )
// events to link /*for(var i = 0; i < events.length; ++i) {
    var e = events[i];
    this.geom.on(e, self._eventHandler(e));
  }*/