[Commits] r622 - sandbox/docsrc/tutorials
commits at geoext.org
commits at geoext.org
Thu May 7 17:09:18 CEST 2009
Author: dwins
Date: 2009-05-07 17:09:18 +0200 (Thu, 07 May 2009)
New Revision: 622
Modified:
sandbox/docsrc/tutorials/quickstart.rst
Log:
Fix code formatting in quickstart tutorial.
Modified: sandbox/docsrc/tutorials/quickstart.rst
===================================================================
--- sandbox/docsrc/tutorials/quickstart.rst 2009-05-07 15:04:09 UTC (rev 621)
+++ sandbox/docsrc/tutorials/quickstart.rst 2009-05-07 15:09:18 UTC (rev 622)
@@ -24,82 +24,82 @@
#. Include the ExtJS libraries in your web page.
-.. code-block::
- xml
+ .. code-block::
+ xml
- <script src="ext/base.js" type="text/javascript"></script>
- <script src="ext/ext.js" type="text/javascript"></script>
- <link rel="stylesheet" type="text/css" href="ext/ext.css"></link>
- <script src="geoext/GeoExt.js" type="text/javascript"></script>
- <link rel="stylesheet" type="text/css" href="openlayers/openlayers.css"></link>
- <link rel="stylesheet" type="text/css" href="geoext/geoext.css"></link>
+ <script src="ext/base.js" type="text/javascript"></script>
+ <script src="ext/ext.js" type="text/javascript"></script>
+ <link rel="stylesheet" type="text/css" href="ext/ext.css"></link>
+ <script src="geoext/GeoExt.js" type="text/javascript"></script>
+ <link rel="stylesheet" type="text/css" href="openlayers/openlayers.css"></link>
+ <link rel="stylesheet" type="text/css" href="geoext/geoext.css"></link>
#. Create a ``<div>`` element in your web page with its ``id`` attribute set to ``gxmap``. We will use the ``id`` to attach a GeoExt component to the ``div``.
-#. Attach a ``MapPanel`` object to the ``div`` with some JavaScript code.
+#. Attach a ``MapPanel`` object to the ``div`` with some JavaScript code:
-.. code-block::
- html
+ .. code-block::
+ html
- <script type="text/javascript">
- Ext.onReady(function() {
- var map = new OpenLayers.Map();
- var layer = new OpenLayers.Layer.WMS(
- "Blue Marble",
- "http://sigma.openplans.org/geoserver/wms?",
- {layers: "bluemarble"}
- );
- map.addLayer(layer);
+ <script type="text/javascript">
+ Ext.onReady(function() {
+ var map = new OpenLayers.Map();
+ var layer = new OpenLayers.Layer.WMS(
+ "Blue Marble",
+ "http://sigma.openplans.org/geoserver/wms?",
+ {layers: "bluemarble"}
+ );
+ map.addLayer(layer);
- new GeoExt.MapPanel({
- renderTo: 'gxmap',
- height: 400,
- width: 600,
- map: map,
- title: 'A Simple GeoExt Map'
+ new GeoExt.MapPanel({
+ renderTo: 'gxmap',
+ height: 400,
+ width: 600,
+ map: map,
+ title: 'A Simple GeoExt Map'
+ });
});
- });
- </script>
+ </script>
The entire source of your page should look something like:
-.. code-block::
- html
+ .. code-block::
+ html
- <html>
- <head>
- <title> A Basic GeoExt Page </title>
- <script src="ext/base.js" type="text/javascript"></script>
- <script src="ext/ext.js" type="text/javascript"></script>
- <link rel="stylesheet" type="text/css" href="ext/ext.css"></link>
- <script src="geoext/GeoExt.js" type="text/javascript"></script>
- <link rel="stylesheet" type="text/css" href="openlayers/openlayers.css"></link>
- <link rel="stylesheet" type="text/css" href="geoext/geoext.css"></link>
+ <html>
+ <head>
+ <title> A Basic GeoExt Page </title>
+ <script src="ext/base.js" type="text/javascript"></script>
+ <script src="ext/ext.js" type="text/javascript"></script>
+ <link rel="stylesheet" type="text/css" href="ext/ext.css"></link>
+ <script src="geoext/GeoExt.js" type="text/javascript"></script>
+ <link rel="stylesheet" type="text/css" href="openlayers/openlayers.css"></link>
+ <link rel="stylesheet" type="text/css" href="geoext/geoext.css"></link>
- <script type="text/javascript">
- Ext.onReady(function() {
- var map = new OpenLayers.Map();
- var layer = new OpenLayers.Layer.WMS(
- "Blue Marble",
- "http://sigma.openplans.org/geoserver/wms?",
- {layers: "bluemarble"}
- );
- map.addLayer(layer);
+ <script type="text/javascript">
+ Ext.onReady(function() {
+ var map = new OpenLayers.Map();
+ var layer = new OpenLayers.Layer.WMS(
+ "Blue Marble",
+ "http://sigma.openplans.org/geoserver/wms?",
+ {layers: "bluemarble"}
+ );
+ map.addLayer(layer);
- new GeoExt.MapPanel({
- renderTo: 'gxmap',
- height: 400,
- width: 600,
- map: map,
- title: 'A Simple GeoExt Map'
+ new GeoExt.MapPanel({
+ renderTo: 'gxmap',
+ height: 400,
+ width: 600,
+ map: map,
+ title: 'A Simple GeoExt Map'
+ });
});
- });
- </script>
- </head>
- <body>
- <div id="gxmap"></div>
- </body>
- </html>
+ </script>
+ </head>
+ <body>
+ <div id="gxmap"></div>
+ </body>
+ </html>
Making GeoExt Your Own
======================
More information about the Commits
mailing list