Changes between Initial Version and Version 1 of NamedStylesProposal


Ignore:
Timestamp:
Mar 10, 2009, 7:20:07 AM (15 years ago)
Author:
sderle
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NamedStylesProposal

    v1 v1  
     1= Proposal to implement Named Styles in MapServer =
     2
     3== Mapfile Extensions ==
     4
     5 * Enable `STYLE` blocks at the top `MAP` level
     6   * Add a `NAME` directive to the `STYLE` block
     7   * Top-level `STYLE` blocks ''must'' be named
     8
     9{{{
     10MAP   
     11  .
     12  .
     13  .
     14}}}
     15
     16 * Provide a "named style" declaration in the `LAYER` block in the form of `LAYER "name"` (in addition to the existing `LAYER ... END` syntax)
     17   * The `LAYER` object gets instantiated with a ''copy'' of the named style from the top level
     18   * Referencing a non-existent `STYLE` by name throws an exception
     19
     20 * Add an `INHERITS "style"` directive to the `STYLE` block
     21   * 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
     22
     23== MapServer `StyleObj` Extensions ==
     24
     25 * Add a "name" property
     26 * Add a "global" property
     27 * Add a "cloneStyle" function to mapfile.c
     28
     29== MapScript Extensions ==
     30
     31 * ...