|
|
|
@ -31,17 +31,17 @@ netgis.Toolbar.prototype.load = function()
|
|
|
|
|
this.toolbars[ netgis.Modes.DRAW_POINTS ] = this.createToolbar();
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_POINTS ], this.createToolbarButton( '<i class="fas fa-times"></i><span>Punkte zeichnen:</span>', this.onToolbarClose.bind( this ) ) );
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_POINTS ], this.createToolbarCheckbox( "Einrasten", this.onSnapChange.bind( this ) ) );
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_POINTS ], this.createToolbarCheckbox( "Puffern", this.onDrawBufferChange.bind( this ) ) );
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_POINTS ], this.createToolbarInput( "Radius (Meter):", bufferDefaultRadius, this.onDrawBufferRadiusChange.bind( this ) ) );
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_POINTS ], this.createToolbarInput( "Segmente:", bufferDefaultSegments, this.onDrawBufferSegmentsChange.bind( this ) ) );
|
|
|
|
|
//this.append( this.toolbars[ netgis.Modes.DRAW_POINTS ], this.createToolbarCheckbox( "Puffern", this.onDrawBufferChange.bind( this ) ) );
|
|
|
|
|
//this.append( this.toolbars[ netgis.Modes.DRAW_POINTS ], this.createToolbarInput( "Radius (Meter):", bufferDefaultRadius, this.onDrawBufferRadiusChange.bind( this ) ) );
|
|
|
|
|
//this.append( this.toolbars[ netgis.Modes.DRAW_POINTS ], this.createToolbarInput( "Segmente:", bufferDefaultSegments, this.onDrawBufferSegmentsChange.bind( this ) ) );
|
|
|
|
|
this.root.appendChild( this.toolbars[ netgis.Modes.DRAW_POINTS ] );
|
|
|
|
|
|
|
|
|
|
this.toolbars[ netgis.Modes.DRAW_LINES ] = this.createToolbar();
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_LINES ], this.createToolbarButton( '<i class="fas fa-times"></i><span>Linien zeichnen:</span>', this.onToolbarClose.bind( this ) ) );
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_LINES ], this.createToolbarCheckbox( "Einrasten", this.onSnapChange.bind( this ) ) );
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_LINES ], this.createToolbarCheckbox( "Puffern", this.onDrawBufferChange.bind( this ) ) );
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_LINES ], this.createToolbarInput( "Radius (Meter):", bufferDefaultRadius, this.onDrawBufferRadiusChange.bind( this ) ) );
|
|
|
|
|
this.append( this.toolbars[ netgis.Modes.DRAW_LINES ], this.createToolbarInput( "Segmente:", bufferDefaultSegments, this.onDrawBufferSegmentsChange.bind( this ) ) );
|
|
|
|
|
//this.append( this.toolbars[ netgis.Modes.DRAW_LINES ], this.createToolbarCheckbox( "Puffern", this.onDrawBufferChange.bind( this ) ) );
|
|
|
|
|
//this.append( this.toolbars[ netgis.Modes.DRAW_LINES ], this.createToolbarInput( "Radius (Meter):", bufferDefaultRadius, this.onDrawBufferRadiusChange.bind( this ) ) );
|
|
|
|
|
//this.append( this.toolbars[ netgis.Modes.DRAW_LINES ], this.createToolbarInput( "Segmente:", bufferDefaultSegments, this.onDrawBufferSegmentsChange.bind( this ) ) );
|
|
|
|
|
this.root.appendChild( this.toolbars[ netgis.Modes.DRAW_LINES ] );
|
|
|
|
|
|
|
|
|
|
this.showDrawBufferOptions( false );
|
|
|
|
@ -266,12 +266,12 @@ netgis.Toolbar.prototype.onSetMode = function( e )
|
|
|
|
|
case netgis.Modes.DRAW_LINES:
|
|
|
|
|
{
|
|
|
|
|
var checkbox = this.toolbars[ netgis.Modes.DRAW_POINTS ].getElementsByTagName( "input" )[ 1 ];
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
if ( checkbox.checked )
|
|
|
|
|
{
|
|
|
|
|
this.client.invoke( netgis.Events.DRAW_BUFFER_ON, null );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -533,16 +533,16 @@ netgis.Toolbar.prototype.showDrawBufferOptions = function( on )
|
|
|
|
|
|
|
|
|
|
if ( on )
|
|
|
|
|
{
|
|
|
|
|
pointsItems[ 3 ].classList.remove( "netgis-hide" );
|
|
|
|
|
pointsItems[ 4 ].classList.remove( "netgis-hide" );
|
|
|
|
|
linesItems[ 3 ].classList.remove( "netgis-hide" );
|
|
|
|
|
linesItems[ 4 ].classList.remove( "netgis-hide" );
|
|
|
|
|
//pointsItems[ 3 ].classList.remove( "netgis-hide" );
|
|
|
|
|
//pointsItems[ 4 ].classList.remove( "netgis-hide" );
|
|
|
|
|
//linesItems[ 3 ].classList.remove( "netgis-hide" );
|
|
|
|
|
//linesItems[ 4 ].classList.remove( "netgis-hide" );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
pointsItems[ 3 ].classList.add( "netgis-hide" );
|
|
|
|
|
pointsItems[ 4 ].classList.add( "netgis-hide" );
|
|
|
|
|
linesItems[ 3 ].classList.add( "netgis-hide" );
|
|
|
|
|
linesItems[ 4 ].classList.add( "netgis-hide" );
|
|
|
|
|
//pointsItems[ 3 ].classList.add( "netgis-hide" );
|
|
|
|
|
//pointsItems[ 4 ].classList.add( "netgis-hide" );
|
|
|
|
|
//linesItems[ 3 ].classList.add( "netgis-hide" );
|
|
|
|
|
//linesItems[ 4 ].classList.add( "netgis-hide" );
|
|
|
|
|
}
|
|
|
|
|
};
|