Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Tiled Rendering and MapGraphics

IMHO I think that MapGraphics should not be part of the tiling. The reasoning is that they are supposed to be light-weight and fast. They should normally be fast enough without tiling. And often are independent of zoom so how would you know when to cache and when not to.

Jesse

On 4-Nov-08, at 11:49 PM, Emily Gouge wrote:

All,

I'm trying to clean up the the tiled rendering system I worked. One of the things I'm currently looking at is trying to get mapgraphics to work nicely with it.

My understanding is that currently mapgraphics pay attention to the bounds of the screen. So in my tiled rendering system they are paying attention to the bounds of the screen and using that information to draw onto the tiles. These tiles don't match up with the screen so as a result you get some fun results:
* legends, north arrows, etc on every tile.
* grids only partially filled in (if then render tiles are bigger than the screen only what would fit on the screen is filled in on the render tile).

So how to fix this?

One option is to not use the tiled rendering system for mapgraphics.
As a result mapgraphics would always render on top of the tiles and you couldn't have map graphics in between layers or at the bottom of the stack. My feeling is that this is undesirable behaviour.

Another option may be to have the mapgraphics pay attention to the render bounds as well as the screen bounds and size; but I think this will cause a lot of unnecessary complexity in the mapgraphics.

Does anybody have an other ideas on how to fix this problem?

Thanks,
Emily

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top