Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Map screen (ability to draw lines ... and circles)

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> WishList
View previous topic :: View next topic  
Author Message
JNT



Joined: 10 Jan 2009
Posts: 409
Location: Sweden

PostPosted: Sat Oct 25, 2014 10:26 am    Post subject: Map screen (ability to draw lines ... and circles) Reply with quote

Something that would be very useful to me is if I could draw lines on the map screen using HECL functionality. I would like to define it as follows:

LINE(colour, style, thickness, lat1, lon1, lat2, lon2)

or

LINE(colour, style, thickness, lat1, lon1, dir-angle, length)

where:
colour - obvious
style - solid, dotted, dashed, centerline
thickness - width in pixels

(if they go partly off-screen, it should still draw the section that is still on-screen)

Edit: Even the ability of drawing a circle would be useful as a graphic representation for the anchor alarm

So, something like:

CIRCLE(colour, style, thickness, lat1, lon1, radius)



Screenshot01.png
 Description:
Example of lines on the map screen
 Filesize:  149.93 KB
 Viewed:  5046 Time(s)

Screenshot01.png


Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 409
Location: Sweden

PostPosted: Sun Jan 03, 2016 4:32 pm    Post subject: Reply with quote

Would really appreciate this functionality to improve the visualization on the map screen together with my sailing CMS
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 409
Location: Sweden

PostPosted: Tue Mar 15, 2016 9:14 pm    Post subject: Reply with quote

Now, if only I can get this functionality, Trekbuddy would be VERY close to perfection for my sailing CMS. Cool


2016-03-15.png
 Description:
Lines on the map screen
 Filesize:  277.34 KB
 Viewed:  3566 Time(s)

2016-03-15.png


Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5658

PostPosted: Tue Mar 15, 2016 9:32 pm    Post subject: Reply with quote

You would draw in onLocationUpdated event plugin handler, I suppose... ?
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 409
Location: Sweden

PostPosted: Wed Mar 16, 2016 8:19 am    Post subject: Reply with quote

kruch wrote:
You would draw in onLocationUpdated event plugin handler, I suppose... ?

In this case, yes. (There might be cases when I want to draw something at startup, but I cannot think of any at the moment.)

I need to know my position, course and speed to calculate the rest, so it only makes sense to do this in onLocationUpdated
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5658

PostPosted: Wed Mar 16, 2016 6:30 pm    Post subject: Reply with quote

LINE(colour, style, thickness, lat1, lon1, dir-angle, length)

When dir-angle is, for example, 180, the line would be drawn to bottom direction from {lat1,lon1} position?
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 409
Location: Sweden

PostPosted: Wed Mar 16, 2016 6:37 pm    Post subject: Reply with quote

kruch wrote:
LINE(colour, style, thickness, lat1, lon1, dir-angle, length)

When dir-angle is, for example, 180, the line would be drawn to bottom direction from {lat1,lon1} position?


Yes. Same angular convention as "course" would be best (relative to true north). N is 0°, E is 90°, S is 180° and W is 270°.
Back to top
View user's profile Send private message
JNT



Joined: 10 Jan 2009
Posts: 409
Location: Sweden

PostPosted: Wed Mar 16, 2016 7:06 pm    Post subject: Reply with quote

Thinking about it, it would be nice if it can handle negative angles also. So, -90° and 270° both are W.
Back to top
View user's profile Send private message
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5658

PostPosted: Wed Mar 16, 2016 7:20 pm    Post subject: Reply with quote

No problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> WishList All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group