static_cast<SphereDragger*>(_llDragger)->setColor(osg::Vec4(0,0,1,0));
Alpha写成了0
应该写成
static_cast<SphereDragger*>(_llDragger)->setColor(osg::Vec4(0,0,1,1));
osgEarth::Annotation::RectangleNodeEditor* rectEditor = new osgEarth::Annotation::RectangleNodeEditor(rect);
rectEditor->_llDragger->setColor(osg::Vec4(1, 0, 0, 1));
rectEditor->getPositionDragger()->setColor(osg::Vec4(0, 1, 0, 1));