Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON reference for properties #626

Closed
artemp opened this issue Oct 11, 2011 · 1 comment
Closed

JSON reference for properties #626

artemp opened this issue Oct 11, 2011 · 1 comment
Milestone

Comments

@artemp
Copy link
Member

artemp commented Oct 11, 2011

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!

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[springmeyer] under active development over at https://github.com/mapnik/reference.json

@artemp artemp closed this as completed Oct 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant