Hi,

Sorry, on vacation, and not checking email much.

On Fri, Apr 13, 2012 at 10:52 PM, Simfake Fake
<[email protected]> wrote:
> Having decided to start working on making my map viewing program (see
> http://paulmcnett.com/pipermail/floatcanvas/2012-January/001127.html) more
> general, I want to be able to make it so that panning and zooming
> automagically downloads and displays tiles.

very cool -- nice!

> However, when in different modes
> other than pointer mode, the mouse wheel events don't seem to get all the
> way down to the floatcanvas. Instead, they get handled way up in GUIMode.py.
> I could monitor self.Canvas.scale, and react to changes in that, however
> that seems messy.

I agree that that is messy. Perhaps what you need is a new GUI-Mode.
The idea behond the GUI-modes is that all the ouse events are handled
there, any any non-standard mode should be customized there. But we
may want to have the base mode pass the mouse wheel events on by
default.

However, I'm not sure what this has to do with tiles -- I"d expect
that the tile loading loading and caching would happen when the
_draw() is called, and the zoom level set that the time would be used.

Tough maybe the GUI-mode question isn't tile specific.

Sorry, not time to check out your code right now.

By the way -- I'm working on a new project specifically  for maps,
using OpenGL for the rendering -- would you be interested in that?

-Chris

> The project's files are in the git repository of
> http://laptimer.sourceforge.net/ , in the branch awesomeSauce. I may
> consider moving it to a seperate branch, or even a seperate repository
> later.
>
> Basically, what i'm asking (because I haven't made that too clear), is if
> there is a nicer way to handle zooming.
>
> _______________________________________________
> FloatCanvas mailing list
> [email protected]
> http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
>


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]
_______________________________________________
FloatCanvas mailing list
[email protected]
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to