Version 1 (modified by 15 years ago) ( diff ) | ,
---|
Proposal to implement Named Styles in MapServer
Mapfile Extensions
- Enable
STYLE
blocks at the topMAP
level- Add a
NAME
directive to theSTYLE
block - Top-level
STYLE
blocks must be named
- Add a
MAP . . .
- Provide a "named style" declaration in the
LAYER
block in the form ofLAYER "name"
(in addition to the existingLAYER ... END
syntax)- The
LAYER
object gets instantiated with a copy of the named style from the top level - Referencing a non-existent
STYLE
by name throws an exception
- The
- Add an
INHERITS "style"
directive to theSTYLE
block- Block styles that inherit from a named style are instantied as a copy of the named style before other declarations in the
STYLE
block are applied
- Block styles that inherit from a named style are instantied as a copy of the named style before other declarations in the
MapServer StyleObj
Extensions
- Add a "name" property
- Add a "global" property
- Add a "cloneStyle" function to mapfile.c
MapScript Extensions
- ...
Note:
See TracWiki
for help on using the wiki.