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.
|
* provided or if you intend to call the <render> method later.
|
||||||
* options - {Object} Optional object with properties to tag onto the map.
|
* options - {Object} Optional object with properties to tag onto the map.
|
||||||
*
|
*
|
||||||
* Examples (method one):
|
* Examples:
|
||||||
* (code)
|
* (code)
|
||||||
* // create a map with default options in an element with the id "map1"
|
* // create a map with default options in an element with the id "map1"
|
||||||
* var map = new OpenLayers.Map("map1");
|
* var map = new OpenLayers.Map("map1");
|
||||||
@@ -456,11 +456,8 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
* projection: "EPSG:41001"
|
* projection: "EPSG:41001"
|
||||||
* };
|
* };
|
||||||
* var map = new OpenLayers.Map("map2", options);
|
* var map = new OpenLayers.Map("map2", options);
|
||||||
* (end)
|
|
||||||
*
|
*
|
||||||
* Examples (method two - single argument):
|
* // map with non-default options - same as above but with a single argument
|
||||||
* (code)
|
|
||||||
* // create a map with non-default options
|
|
||||||
* var map = new OpenLayers.Map({
|
* var map = new OpenLayers.Map({
|
||||||
* div: "map_id",
|
* div: "map_id",
|
||||||
* maxExtent: new OpenLayers.Bounds(-200000, -200000, 200000, 200000),
|
* maxExtent: new OpenLayers.Bounds(-200000, -200000, 200000, 200000),
|
||||||
@@ -476,6 +473,7 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
* units: 'm',
|
* units: 'm',
|
||||||
* projection: "EPSG:41001"
|
* projection: "EPSG:41001"
|
||||||
* });
|
* });
|
||||||
|
* (end)
|
||||||
*/
|
*/
|
||||||
initialize: function (div, options) {
|
initialize: function (div, options) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user