Skip to content
Permalink
Browse files

[globe] Re-Enable sync extent button and disable home button

The home button was a duplicate of the globe in the center of the
navigation arrows
  • Loading branch information
m-kuhn committed Nov 12, 2013
1 parent 4fd011f commit 7c7d83755bdfa013549d2c7e18a6c7ebb9bf8fe6
@@ -663,26 +663,29 @@ void GlobePlugin::setupControls()
mControlCanvas->addControl( backgroundGrp2 );

//Zoom Reset
#if ENABLE_HOME_BUTTON
osg::Image* homeImg = osgDB::readImageFile( imgDir + "/zoom-home.png" );
ImageControl* home = new NavigationControl( homeImg );
home->setPosition( imgLeft + 12 + 3, imgTop + 2 );
imgTop = imgTop + 23 + 2;
home->addEventHandler( new HomeControlHandler( manip ) );
mControlCanvas->addControl( home );
#endif

//refresh layers
osg::Image* refreshImg = osgDB::readImageFile( imgDir + "/refresh-view.png" );
ImageControl* refresh = new NavigationControl( refreshImg );
refresh->setPosition( imgLeft + 12 + 3, imgTop + 2 + 23 + 2 );
refresh->setPosition( imgLeft + 12 + 3, imgTop + 3 );
imgTop = imgTop + 23 + 2;
refresh->addEventHandler( new RefreshControlHandler( this ) );
mControlCanvas->addControl( refresh );

//Sync Extent
#if ENABLE_SYNC_BUTTON
osg::Image* syncImg = osgDB::readImageFile( imgDir + "/sync-extent.png" );
ImageControl* sync = new NavigationControl( syncImg );
sync->setPosition( imgLeft + 12 + 3, imgTop + 2 );
sync->addEventHandler( new SyncExtentControlHandler( this ) );
mControlCanvas->addControl( sync );
#endif
}

void GlobePlugin::setupProxy()
Binary file not shown.

0 comments on commit 7c7d837

Please sign in to comment.
You can’t perform that action at this time.