Correct formatting issues with map example (doc change).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -443,7 +443,7 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
* 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 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
* 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 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
* units: 'm',
|
||||
* projection: "EPSG:41001"
|
||||
* });
|
||||
* (end)
|
||||
*/
|
||||
initialize: function (div, options) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user