mapnik-org/mapnik — Issue #624: JSON reference for properties
Author: artemp
Created: 2011-10-11 08:05:37+00:00
State: open
Labels: Core_Library

Wouldn't it be a dream if we had something like this (that could be hooked into by cascadenik, sphinx for docs, spreadnik, really anything python or javascript that needs to know about every property which is used to style up Mapnik):

{{{
#!python
symbolizers = {

'polygon': {

'fill': {

'css': 'polygon-fill',
'api': 'fill',
'type': 'color',
'availability': '0.5.1',
'default': 'rgb(128,128,128)',
'default-meaning':'grey',
'doc': 'Fill color to assign to a polygon',

},

'gamma': {

'css': 'polygon-gamma',
'api': 'gamma',
'type': 'float',
'availability': '0.7.0',
'default': 1,
'default-meaning':'fully antialiased',
'range':'0-1',
'doc': 'Level of antialiasing of polygon edges',

}

}
}
}}}

'api' is poorly named, but what I was thinking about is how an app could know what a method is named in python (or ruby or other future bindings)...

Thoughts needed!