Re: OpenMap and Styles

From: Don Dietrick <dietrick@bbn.com>
Date: Tue Apr 09 2002 - 14:46:18 EDT

Hi Jeff,

You could add this pretty easily to OpenMap, but you'd have to modify
layers. You would do it by playing with the properties just like you
stated.

The problem is the layers that use the properties to define how they
render their graphics. You could add a property that told the layer to
use a different prefix for setting up its DrawingAttributes object.

Alternatively, you could also create a style manager object that creates
and manages a DrawingAttributes object for a particular style. Your
server could insert a MapHandler into itself that the layers could use
to find the style manager, and the layer could use the manager to find
different styles as directed. With this approach, the style manager
could also get style information any way it wanted, not necessarily
through the properties file - it could get it from OGC style
definitions, for example, via the web, etc. StyleManager would be an
abstract base class, and you could create different instantiation
subclasses that got style information in different ways.

Cheers,

Don

On Tuesday, April 9, 2002, at 01:55 AM, Jeff Kirby wrote:

> I've been implementing a WMS server addon for Openmap.. and was
> wondering if anyone has defined any styles in their properties files
> before? if so, what format are people are using?
>
> I was thinking of defining them much like layers
> eg
>
> <stylename>.<attribute>=<value>
>
> so
> whiteStyle.lineColor=<colorvalue>
> whiteStyle.fillColor=<colorvalue>
>
> and to apply a style to a layer
> <layername>.styles= blackStyle <style2> <style3>
> <layername>.defaultStyle = none or blackStyle
>
> Any ideas?
>
> Jeff
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Apr 9 14:46:14 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT