<div dir="ltr">Hi Dennis, <div style>thank you for your reply.</div><div style>I've solved the problem by removing and adding the GeoDataDocument in the slot function:</div><div style><br></div><div style><div><span class="" style="white-space:pre"> </span>map->model()->treeModel()->removeDocument(doc);</div>
<div><span class="" style="white-space:pre"> </span>lon += 0.001;</div><div><span class="" style="white-space:pre"> </span>lat += 0.005;</div><div><span class="" style="white-space:pre"> </span>cout << "[MAPSLOT] Add Point" << endl;</div>
<div><span class="" style="white-space:pre"> </span>line->append(GeoDataCoordinates(lon,lat,0,GeoDataCoordinates::Degree));<span class="" style="white-space:pre"> </span><span style="white-space:pre"> </span></div><div>
<span class="" style="white-space:pre"> </span>map->model()->treeModel()->addDocument(doc);</div><div><br></div><div style>Thank you so much!</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/1/10 Dennis Nienhüser <span dir="ltr"><<a href="mailto:earthwings@gentoo.org" target="_blank">earthwings@gentoo.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Tommaso,<br>
<br>
the second paste (641072) seems expired, can you repaste it?<br>
On quick sight of the other files I see one problem: The track is updated, but the tree model is not notified about the change. Can you add a map->model()->treeModel()-><u></u>updateFeature(t);<br>
right before map->update(); in mapslot::update()?<br>
<br>
Regards,<br>
Dennis<br>
<br>
Am <a href="tel:08.01.2013%2023" value="+390801201323" target="_blank">08.01.2013 23</a>:08, schrieb Tommaso Fabbri:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi to all,<br>
I want to use the Marble API for viewing the current position of a variable number of vehicles on a map.<br>
Now my application uses the QtMobility API for visualizing the position of the vehicles and the track generated.<br>
I want to realize the behavior in this video <a href="https://dl.dropbox.com/u/3894235/movie.mov" target="_blank">https://dl.dropbox.com/u/<u></u>3894235/movie.mov</a><br>
<br>
For testing the api, I've write a small program, that updates at running time a GeoDataTrack object.<br>
<br>
A worker thread emit a signal every two seconds, and a mapslot object that defines the slot updates the geodatatrack with a new point.<br>
<br>
At this links there're the worker thread class:<br>
<a href="http://paste.kde.org/641060/" target="_blank">http://paste.kde.org/641060/</a><br>
<a href="http://paste.kde.org/641072/" target="_blank">http://paste.kde.org/641072/</a><br>
<br>
At this link there're the mapslot object:<br>
<a href="http://paste.kde.org/641078/" target="_blank">http://paste.kde.org/641078/</a><br>
<a href="http://paste.kde.org/641084/" target="_blank">http://paste.kde.org/641084/</a><br>
<br>
At this link the main:<br>
<a href="http://paste.kde.org/641090/" target="_blank">http://paste.kde.org/641090/</a><br>
<br>
I can view the track only with particular zoom, and not other. If I drag the map, the object will disappear.<br>
I need help.<br>
Thank you so much!!<br>
<br>
<br>
<br>
-- <br>
Tommaso Fabbri<br>
<br>
</blockquote>
<br></div></div>
______________________________<u></u>_________________<br>
Marble-devel mailing list<br>
<a href="mailto:Marble-devel@kde.org" target="_blank">Marble-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/marble-devel" target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/marble-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Tommaso Fabbri
</div>