[mapserver-commits] r8248 - in trunk/mapserver_demos/samples: . simple_lines

svn at osgeo.org svn at osgeo.org
Wed Dec 17 00:18:05 EST 2008


Author: sdlime
Date: 2008-12-17 00:18:05 -0500 (Wed, 17 Dec 2008)
New Revision: 8248

Added:
   trunk/mapserver_demos/samples/simple_lines/
   trunk/mapserver_demos/samples/simple_lines/index.html
   trunk/mapserver_demos/samples/simple_lines/sample.map
Modified:
   trunk/mapserver_demos/samples/samples.js
Log:
Added simple line drawing example.

Modified: trunk/mapserver_demos/samples/samples.js
===================================================================
--- trunk/mapserver_demos/samples/samples.js	2008-12-17 04:57:22 UTC (rev 8247)
+++ trunk/mapserver_demos/samples/samples.js	2008-12-17 05:18:05 UTC (rev 8248)
@@ -7,7 +7,11 @@
                {title: 'Relative Positioning',
                 url: 'relative_positioning/index.html',
                 description: 'Positioning of features relative to places in an image (e.g. lower left corner).',
-                keywords: ['inline features', 'relative position']}
+                keywords: ['inline features', 'relative position']},
+	       {title: 'Simple Lines',
+                url: 'simple_lines/index.html',
+                description: 'Drawing of simple linear features.',
+                keywords: ['inline features', 'line layers']},
 ];
 
 function launchSample(i) {

Added: trunk/mapserver_demos/samples/simple_lines/index.html
===================================================================
--- trunk/mapserver_demos/samples/simple_lines/index.html	                        (rev 0)
+++ trunk/mapserver_demos/samples/simple_lines/index.html	2008-12-17 05:18:05 UTC (rev 8248)
@@ -0,0 +1,29 @@
+<html>
+  <head>
+    <title></title>
+    <link rel="STYLESHEET" href="../samples.css" type="text/css">
+    <script language="javascript" src="../samples_config.js"></script>
+  </head>
+  <body>
+    <div id="samples_window">
+
+      <h1>Simple Lines</h1>
+
+      <div class="content">
+        <span class="content_label">Files:</span> <a class="file" href="sample.map">sample.map</a>
+      </div>
+
+      <div class="content">
+        <span class="content_label">Notes:</span>
+      </div> 
+
+      <div class="content"><span class="content_label">Output:</span><br/>
+<script language="javascript">
+  var url = samples_mapserver + "?map=" + samples_location + "simple_lines/sample.map&mode=map";
+  document.write("<a target=new href=\"" + url + "\"><img title=\"open image in new window\" alt=\"open image in new window\" src=\"" + url + "\"></a>"); 
+</script>
+      </div>
+
+    </div>
+  </body>
+</html>

Added: trunk/mapserver_demos/samples/simple_lines/sample.map
===================================================================
--- trunk/mapserver_demos/samples/simple_lines/sample.map	                        (rev 0)
+++ trunk/mapserver_demos/samples/simple_lines/sample.map	2008-12-17 05:18:05 UTC (rev 8248)
@@ -0,0 +1,54 @@
+#
+# MapServer Sample
+#   Title: Simple Lines
+#   Author: Steve Lime
+#
+MAP
+  NAME 'simple_lines'
+  EXTENT 1 1 300 300
+  SIZE 300 300
+  
+  IMAGECOLOR 225 225 225
+
+  LAYER
+    NAME 'line1'
+    TYPE LINE
+    FEATURE
+      POINTS 10 10 320 150 10 290 END
+    END
+    STATUS DEFAULT
+    CLASS
+      STYLE 
+        COLOR '#FF0000' 
+      END
+    END
+  END
+
+  LAYER
+    NAME 'line2'
+    TYPE LINE
+    FEATURE
+      POINTS 50 50 275 225 END
+    END
+    STATUS DEFAULT
+    CLASS
+      STYLE
+        COLOR '#00FF00'
+      END
+    END
+  END
+
+  LAYER
+    NAME 'line3'
+    TYPE LINE
+    FEATURE
+      POINTS 0 250 500 250 END
+    END
+    STATUS DEFAULT
+    CLASS
+      STYLE
+        COLOR '#0000FF'
+      END
+    END
+  END
+END



More information about the mapserver-commits mailing list