classic Classic list List threaded Threaded
2 messages Options
Latha Latha
Reply | Threaded
Open this post in threaded view


Hi community,
 What is the purpose of using MarkerSymbol?When we should use this?Using

osg::Node* node = osgDB::readNodeFile("Resources/data/loopix/tree7.osgb");
Symbology::MarkerSymbol n;

style.getOrCreate<MarkerSymbol>()->scale() = NumericExpression(0.2);
style.getOrCreate<MarkerSymbol>()->placement() = MarkerSymbol::PLACEMENT_RANDOM;
style.getOrCreate<MarkerSymbol>()->density() = 150.0f;

 I am trying to set model on the shape file ,but the model is not loading,Is it possible?if it is possible tell me how to set Model,should i add any thing?
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view

Re: MarkerSymbol


The MarkerSymbol is deprecated; you should use the ModelSymbol instead.

Unfortunately, the "setModel" approach does not work with feature model layers. There is no technical reason; no one ever implemented that support. It only works in conjunction with the ModelNode at this time.

For now you will have to load your model using the ModelSymbol::url property. Hope this explains it!
Glenn Waldron / Pelican Mapping