|
Hi,
I need to create a circle below a Node, then I can do it.
osgEarth::Symbology::Style shapeStyle;
shapeStyle.getOrCreate<PolygonSymbol>()->fill()->color() = Color(Color::White, 0.5);
const SpatialReference* geoSRS = s_mapNode->getMapSRS()->getGeographicSRS();
CircleNode* circle = new CircleNode();
circle->set(
GeoPoint(geoSRS, point.x(), point.y(), 4, ALTMODE_RELATIVE),
16,
shapeStyle,
Angle(360, Units::DEGREES),
Angle(360, Units::DEGREES),
true);
s_mapNode->addChild(circle);
But my problem is to insert a png file inside the circle, like a texture.
I don't know if my approch it's correct.
NOTE:
I tried to pass to the Style the png using the IconSymbol, but in this case the png is not applied on the circle.
|