This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Updating a GeoDataPlacemark's IconStyle

Tags: None
(comma "," separated)
devurc
Registered Member
Posts
1
Karma
0
Hey all, first time poster.

I'm using Marble C++ in a Qt application, and I'm having trouble updating a placemark style after I upgraded to Marble 15.12. In 15.08, it worked simply by setting a new icon path for the GeoDataIconStyle, setting the new style of the GeoDataStyle, and then updating the GeoDataPlacemark through the MapWidget tree model. This would be the typical way before to update the icon:
Code: Select all
icon->setIcon( QImage("icon_path") );'
style->setIconStyle( *icon );
MarbleWidget->model()->treeModel()->updateFeature( placeMark );

After changing the style to a QSharedPointer reflecting the current API, I tried to change the icons like before. But the icon would only change when the current MapWidget view was moved out of the scope of the placemark by panning with the mouse. Does anyone have an idea of what might be the issue?

I've seen many people having the same issue on this forum, but no solutions have been found as far as I can find.
viewtopic.php?f=217&t=131148
viewtopic.php?f=217&t=130116&p=347805&hilit=placemark#p347805
viewtopic.php?f=217&t=132820&p=356633&hilit=geodataplacemark#p356633

One thing to mention is the paint layers is not what I'm looking for, as I need these placemarks to be mouse-clickable. Thanks so much for your time.
malint
Registered Member
Posts
6
Karma
0
Any chance someone knows the answer to this issue? Also been searching for a solution to this.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell