add an OSM layer constructor to the API

This commit is contained in:
Éric Lemoine
2012-06-21 08:46:23 +02:00
parent b91769f00b
commit 22bffd9d8b
4 changed files with 23 additions and 0 deletions

9
src/api/layer/osm.js Normal file
View File

@@ -0,0 +1,9 @@
goog.provide('ol.layer.osm');
/**
* @export
* @return {ol.layer.OSM}
*/
ol.layer.osm = function() {
return new ol.layer.OSM();
};

View File

@@ -10,6 +10,7 @@ goog.require("ol.loc");
goog.require("ol.feature");
goog.require("ol.projection");
goog.require("ol.layer.xyz");
goog.require("ol.layer.osm");
goog.require("ol.Tile");
goog.require("ol.TileSet");
goog.require("ol.geom.geometry");