[Xastir] right clicking for station info

Curt Mills archer at eskimo.com
Fri Dec 17 14:02:53 EST 2004


On Fri, 17 Dec 2004, Matt Werner wrote:

> I've had problems (since I started using xastir really) when trying to
> right click on a spot on the map that has two or more stations at that
> exact spot or in near proximity (relative to the map zoom).  Sometimes
> I get the station chooser box (which is the behavior I like so I can
> pick the station) and sometimes I just get the station info for one of
> the stations (by luck it's normally not the one I'm interested in).
>
> My map zoom is currently 640.  I know I can zoom closer and have
> better luck getting the station I want although this costs a fair
> amount of time while waiting for the maps to reload.
>
> Is there a trick to getting the station chooser to come up every time
> or is this a bug of some sort?

It's nothing new.  As I recall (been a couple of years since I
looked at that part of the code), there's a zone around the pointer
of XX pixels (15?) and if there's more than one station inside that
range it brings up the chooser.

That should theoretically work about the same at all zoom levels.
Because it doesn't, perhaps the zone instead is described in terms
of fractions of a degree, so the zone gets smaller as you zoom out.
Worth checking.  If it is described in lat/long, we could add a
multiplier based on zoom level, or just compute the distance in
lat/long per pixel and multiple by say 15 to get the zone.

Add it to the bug list.

-- 
Curt, WE7U.				archer at eskimo dot com
http://www.eskimo.com/~archer
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!"




More information about the Xastir mailing list