File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -663,26 +663,29 @@ void GlobePlugin::setupControls()
663
663
mControlCanvas ->addControl ( backgroundGrp2 );
664
664
665
665
// Zoom Reset
666
+ #if ENABLE_HOME_BUTTON
666
667
osg::Image* homeImg = osgDB::readImageFile ( imgDir + " /zoom-home.png" );
667
668
ImageControl* home = new NavigationControl ( homeImg );
668
669
home->setPosition ( imgLeft + 12 + 3 , imgTop + 2 );
670
+ imgTop = imgTop + 23 + 2 ;
669
671
home->addEventHandler ( new HomeControlHandler ( manip ) );
670
672
mControlCanvas ->addControl ( home );
673
+ #endif
671
674
672
675
// refresh layers
673
676
osg::Image* refreshImg = osgDB::readImageFile ( imgDir + " /refresh-view.png" );
674
677
ImageControl* refresh = new NavigationControl ( refreshImg );
675
- refresh->setPosition ( imgLeft + 12 + 3 , imgTop + 2 + 23 + 2 );
678
+ refresh->setPosition ( imgLeft + 12 + 3 , imgTop + 3 );
679
+ imgTop = imgTop + 23 + 2 ;
676
680
refresh->addEventHandler ( new RefreshControlHandler ( this ) );
677
681
mControlCanvas ->addControl ( refresh );
678
682
679
683
// Sync Extent
680
- #if ENABLE_SYNC_BUTTON
681
684
osg::Image* syncImg = osgDB::readImageFile ( imgDir + " /sync-extent.png" );
682
685
ImageControl* sync = new NavigationControl ( syncImg );
686
+ sync->setPosition ( imgLeft + 12 + 3 , imgTop + 2 );
683
687
sync->addEventHandler ( new SyncExtentControlHandler ( this ) );
684
688
mControlCanvas ->addControl ( sync );
685
- #endif
686
689
}
687
690
688
691
void GlobePlugin::setupProxy ()
You can’t perform that action at this time.
0 commit comments