Fixing up readme formatting
This commit is contained in:
parent
90fdaab9d7
commit
770da9871f
87
README.md
87
README.md
@ -8,50 +8,44 @@ _incompatibility_
|
|||||||
* MML files are assumed to be JSON, not XML. The files are near-identical to the XML files accepted by Cascadenik, just translated into JSON.
|
* MML files are assumed to be JSON, not XML. The files are near-identical to the XML files accepted by Cascadenik, just translated into JSON.
|
||||||
* Like Cascadenik, you can also include remote stylesheets, by including their URLs as simple strings in the Stylesheet array.
|
* Like Cascadenik, you can also include remote stylesheets, by including their URLs as simple strings in the Stylesheet array.
|
||||||
|
|
||||||
<table>
|
mess.js MML:
|
||||||
<tr>
|
|
||||||
<th>Cascadenik</th>
|
|
||||||
<th>Mess.js</th>
|
|
||||||
</tr>
|
|
||||||
<td>
|
|
||||||
<pre><Stylesheet><![CDATA[
|
|
||||||
Map
|
|
||||||
{
|
|
||||||
map-bgcolor: #69f;
|
|
||||||
}
|
|
||||||
|
|
||||||
Layer
|
{
|
||||||
{
|
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs",
|
||||||
line-width: 1;
|
"Stylesheet": [{"id":"style.mss","data":"Map {\n background-color: #fff;\n}\n\n#world {\n line-color: #ccc;\n line-width: 0.5;\n polygon-fill: #eee;\n}"}],
|
||||||
line-color: #696;
|
"Layer": [{
|
||||||
polygon-fill: #6f9;
|
"id": "world",
|
||||||
}
|
"name": "world",
|
||||||
]]></Stylesheet>
|
"srs": "+proj=latlong +ellps=WGS84 +datum=WGS84 +no_defs",
|
||||||
<Layer srs="+proj=latlong +ellps=WGS84 +datum=WGS84 +no_defs">
|
"Datasource": {
|
||||||
<Datasource>
|
"file": "world_borders",
|
||||||
<Parameter name="type">shape</Parameter>
|
"type": "shape"
|
||||||
<Parameter name="file">world_borders</Parameter>
|
}
|
||||||
</Datasource>
|
}]
|
||||||
</Layer>
|
}
|
||||||
|
|
||||||
|
Cascadenik MML
|
||||||
|
|
||||||
|
<pre><Stylesheet><![CDATA[
|
||||||
|
Map
|
||||||
|
{
|
||||||
|
map-bgcolor: #69f;
|
||||||
|
}
|
||||||
|
|
||||||
|
Layer
|
||||||
|
{
|
||||||
|
line-width: 1;
|
||||||
|
line-color: #696;
|
||||||
|
polygon-fill: #6f9;
|
||||||
|
}
|
||||||
|
]]></Stylesheet>
|
||||||
|
<Layer srs="+proj=latlong +ellps=WGS84 +datum=WGS84 +no_defs">
|
||||||
|
<Datasource>
|
||||||
|
<Parameter name="type">shape</Parameter>
|
||||||
|
<Parameter name="file">world_borders</Parameter>
|
||||||
|
</Datasource>
|
||||||
|
</Layer>
|
||||||
</Map></pre>
|
</Map></pre>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<pre>{
|
|
||||||
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs",
|
|
||||||
"Stylesheet": [{"id":"style.mss","data":"Map {\n background-color: #fff;\n}\n\n#world {\n line-color: #ccc;\n line-width: 0.5;\n polygon-fill: #eee;\n}"}],
|
|
||||||
"Layer": [{
|
|
||||||
"id": "world",
|
|
||||||
"name": "world",
|
|
||||||
"srs": "+proj=latlong +ellps=WGS84 +datum=WGS84 +no_defs",
|
|
||||||
"Datasource": {
|
|
||||||
"file": "world_borders",
|
|
||||||
"type": "shape"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}</pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
## Attachments
|
## Attachments
|
||||||
_new_
|
_new_
|
||||||
@ -85,13 +79,13 @@ Instead of the name attribute of the [TextSymbolizer](http://trac.mapnik.org/wik
|
|||||||
<th>mess.js</th>
|
<th>mess.js</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td valign='top'>
|
||||||
<pre>
|
<pre>
|
||||||
#world NAME {
|
#world NAME {
|
||||||
text-face-name: "Arial";
|
text-face-name: "Arial";
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td valign='top'>
|
||||||
<pre>
|
<pre>
|
||||||
#world {
|
#world {
|
||||||
text-name: "NAME";
|
text-name: "NAME";
|
||||||
@ -168,7 +162,7 @@ By defining multiple fonts in a `text-face-name` definition, you create [FontSet
|
|||||||
<th>mess</th><th>XML</th>
|
<th>mess</th><th>XML</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td valign='top'>
|
||||||
|
|
||||||
<pre>#world {
|
<pre>#world {
|
||||||
text-name: "[NAME]";
|
text-name: "[NAME]";
|
||||||
@ -176,7 +170,8 @@ By defining multiple fonts in a `text-face-name` definition, you create [FontSet
|
|||||||
text-face-name: "Georgia Regular", "Arial Italic";
|
text-face-name: "Georgia Regular", "Arial Italic";
|
||||||
}</pre>
|
}</pre>
|
||||||
|
|
||||||
</td><td>
|
</td>
|
||||||
|
<td valign='top'>
|
||||||
<pre><FontSet name="fontset-0">
|
<pre><FontSet name="fontset-0">
|
||||||
<Font face_name="Georgia Regular"/>
|
<Font face_name="Georgia Regular"/>
|
||||||
<Font face_name="Arial Italic"/>
|
<Font face_name="Arial Italic"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user