Permalink
Browse files

add a geojson example.mml

  • Loading branch information...
1 parent b6e2d16 commit 539c7f6c66dabb53cbe27e7c78cf7ec52ef03c5c Dane Springmeyer committed Nov 2, 2010
Showing with 29 additions and 0 deletions.
  1. +11 −0 data/points.json
  2. +18 −0 doc/example7.mml
View
@@ -0,0 +1,11 @@
+{
+"type": "FeatureCollection",
+"features": [
+{ "type": "Feature", "properties": { "text": "point" }, "geometry": { "type": "Point", "coordinates": [ -0.082380, -0.030718 ] } }
+,
+{ "type": "Feature", "properties": { "text": "" }, "geometry": { "type": "Point", "coordinates": [ -120.866038, 92.333255 ] } }
+,
+{ "type": "Feature", "properties": { "text": "" }, "geometry": { "type": "Point", "coordinates": [ -88.570942, -54.932381 ] } }
+
+]
+}
View
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Map srs="+init=epsg:4326">
+ <Stylesheet><![CDATA[
+
+ Layer {
+ point-file: url("purple-point.png");
+ }
+
+ ]]></Stylesheet>
+
+ <Layer class="imagery" srs="+init=epsg:4326">
+ <Datasource>
+ <Parameter name="type">ogr</Parameter>
+ <Parameter name="layer">OGRGeoJSON</Parameter>
+ <Parameter name="file">../data/points.json</Parameter>
+ </Datasource>
+ </Layer>
+</Map>

0 comments on commit 539c7f6

Please sign in to comment.