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

XML stylesheet preview window #168

Closed
springmeyer opened this issue Feb 3, 2011 · 4 comments
Closed

XML stylesheet preview window #168

springmeyer opened this issue Feb 3, 2011 · 4 comments
Labels
Milestone

Comments

@springmeyer
Copy link
Member

For anyone that knows Mapnik's XML styling language, what mess.js does is total black magic. So, for the potential audience of current Mapnik users it would be great to offer an XML preview window. This is key because the combo of sticking compiled XML in a hidden cache and obscuring the name with base64 encoding means that actually finding the file you have created is going to be non-starter.

If we implement this it would ideally be done not by reading the xml written directly by mess.js but rather by serializing the XML off the mapnik.Map object so that the XML is properly pretty printed. I've just exposed the ability to do this here: mapnik/node-mapnik@1d22fac

@kkaefer
Copy link
Contributor

kkaefer commented Feb 3, 2011

This sounds like a good idea. Maybe we should name the property "toString" to be in line with the JavaScript conventions.

@springmeyer
Copy link
Member Author

Yes, I agree, I think I should overhaul node-mapnik to expose a CamelCase api. for now I've fixed just the to_string method since this is new and I doubt anyone has found it yet: mapnik/node-mapnik@cc719b2

@russellporter
Copy link

This would also be handy for setting up on-demand mapnik rendering servers (for OSM tiles etc)

@yhahn
Copy link
Contributor

yhahn commented Jul 26, 2011

I've implemented a REST endpoint for this now at /api/Project/[project].xml ... not sure it's necessary to actually display this XML in the UI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants