[OpenLayers-Commits] r12136 - trunk/openlayers/lib/OpenLayers

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Jun 30 01:31:42 EDT 2011


Author: tschaub
Date: 2011-06-29 22:31:41 -0700 (Wed, 29 Jun 2011)
New Revision: 12136

Modified:
   trunk/openlayers/lib/OpenLayers/Map.js
Log:
Correct formatting issues with map example (doc change).

Modified: trunk/openlayers/lib/OpenLayers/Map.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Map.js	2011-06-30 05:22:39 UTC (rev 12135)
+++ trunk/openlayers/lib/OpenLayers/Map.js	2011-06-30 05:31:41 UTC (rev 12136)
@@ -443,7 +443,7 @@
      *     provided or if you intend to call the <render> method later.
      * options - {Object} Optional object with properties to tag onto the map.
      *
-     * Examples (method one):
+     * Examples:
      * (code)
      * // create a map with default options in an element with the id "map1"
      * var map = new OpenLayers.Map("map1");
@@ -456,11 +456,8 @@
      *     projection: "EPSG:41001"
      * };
      * var map = new OpenLayers.Map("map2", options);
-     * (end)
      *
-     * Examples (method two - single argument):
-     * (code)
-     * // create a map with non-default options
+     * // map with non-default options - same as above but with a single argument
      * var map = new OpenLayers.Map({
      *     div: "map_id",
      *     maxExtent: new OpenLayers.Bounds(-200000, -200000, 200000, 200000),
@@ -476,6 +473,7 @@
      *     units: 'm',
      *     projection: "EPSG:41001"
      * });
+     * (end)
      */    
     initialize: function (div, options) {
         



More information about the Commits mailing list