|
重载了源码AnnotationUtils.cpp中
osg:rawable*
AnnotationUtils::createTextDrawable(const std::wstring& text,
const TextSymbol* symbol,
const osg::Vec3& positionOffset )
然后又重载了PlaceNode.cpp中
PlaceNode:laceNode(MapNode* mapNode,
const GeoPoint& position,
osg::Image* image,
const std::wstring& text,
const Style& style ) :
OrthoNode( mapNode, position ),
_image ( image ),
_wtext ( text ),
_style ( style ),
_geode ( 0L )
{
initw();
}
在加载中文地标的时候,出现的还是乱码,如何解决
osgEarth::Annotation::PlaceNode *pn = new osgEarth::Annotation::PlaceNode(mapNode, mappnt,tempImg,"中国",/*strName.GetBuffer(0),*/ style); |
|