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

Emily Gouge wrote:
Sorry, but I'm still confused?

> 0. Behind the scenes make an image the size of the screen
Are you proposing I change the mapgraphic renderer?
Yes. You have changed the "contract" that all renderers are trying to follow (namely to render into tiles) as such we need to change (or rewrite) the mapgraphic renderer. The actual contract with the map graphic implementors will probably not need to be changed.

In short the mapgraphic extension point should not be changed; the code that processes it will be new and/or different.
Make it render an image for each mapgraphic the size of the screen whenever there is a viewport model change event?
Indeed; although it would be nice to know if it is the kind of mapgraphic that cares about the viewport model - you may be able to add an (optional) attribute to the mapgraphic extension-point - so that implementors can "mark" the implementations that care to be redrawn everytime the viewport model changes; you may wish to set up an enumeration (rather than a true/false) so that you can indicate interest in a) change of scale b) change of viewport bounds etc...

All the best,
Jody


Back to the top