<br><br><div class="gmail_quote">On Wed, May 19, 2010 at 3:56 AM, Sander van Grieken <span dir="ltr">&lt;<a href="mailto:sander@3v8.net">sander@3v8.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Tuesday 18 May 2010 11:20:05 John Stowers wrote:<br>
&gt; Some work is ongoing here, API comments welcomed.<br>
&gt;<br>
&gt; <a href="http://github.com/nzjrs/osm-gps-map/tree/track-api-rework" target="_blank">http://github.com/nzjrs/osm-gps-map/tree/track-api-rework</a><br>
<br>
Ah you have created add/remove track functions, nice. I found that by using the _replace<br>
function I can simulate add/remove, but I will switch over to the new functions once<br>
there&#39;s a new release of OGM.<br></blockquote><div><br></div><div>Yeah, the new API should be a little more consistent. </div><div><br></div><div> * The map has an internal &#39;GPS track&#39; (an OsmGpsMapTrack object). The _gps_add function/s operate on this track so that the library retains a simple API if you only want to draw one track</div>
<div> * If you want to have multiple tracks then the new API will be something like</div><div><br></div><div>OsmGpsMapTrack *t;</div><div><br></div><div>t = osm_gps_map_track_new()</div><div>osm_gps_map_track_set_color(something)</div>
<div>osm_gps_map_add_track(map, track)</div><div><br></div><div>...</div><div><br></div><div>void got_gps_data(float lat, float lon) {</div><div>OsmGpsMapPoint p;</div><div>osm_gps_map_point_from_degrees(&amp;p, lat, lon)</div>
<div>osm_gps_map_track_add_point(t, &amp;p)</div><div>}</div><div><br></div><div>i.e. all track interaction can be done through the track object, and you don&#39;t need to call functions on the map object.</div><div><br></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I just hooked up the OsmGpsMap defined maps into foxtrotGPS and I noticed that setting the<br>
map-source property does not redraw the map. It will use the new source though when<br>
forcing a redraw by using zoom in or out.<br></blockquote><div><br></div><div>This is a bug.</div><div><br></div><div>John</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
grtz,<br>
Sander<br>
_______________________________________________<br>
This message is sent to you from <a href="mailto:FOSS-GPS@lists.osgeo.org">FOSS-GPS@lists.osgeo.org</a> mailing list.<br>
Visit <a href="http://lists.osgeo.org/mailman/listinfo/foss-gps" target="_blank">http://lists.osgeo.org/mailman/listinfo/foss-gps</a> to manage your subscription<br>
For more information, check <a href="http://wiki.osgeo.org/wiki/FOSS-GPS" target="_blank">http://wiki.osgeo.org/wiki/FOSS-GPS</a><br>
</blockquote></div><br>