rename map module

This commit is contained in:
Ron Young
2017-12-21 09:12:26 -06:00
committed by Tim Schaub
parent 6e807e2017
commit ad5664e1ab

View File

@@ -41,7 +41,7 @@ registerMultiple(PluginType.LAYER_RENDERER, [
* The map is the core component of OpenLayers. For a map to render, a view,
* one or more layers, and a target container are needed:
*
* var map = new ol.Map({
* var map = new Map({
* view: new ol.View({
* center: [0, 0],
* zoom: 1
@@ -84,7 +84,7 @@ registerMultiple(PluginType.LAYER_RENDERER, [
* @fires ol.render.Event#precompose
* @api
*/
var _ol_Map_ = function(options) {
var Map = function(options) {
options = _ol_obj_.assign({}, options);
if (!options.controls) {
options.controls = defaultControls();
@@ -96,6 +96,6 @@ var _ol_Map_ = function(options) {
PluggableMap.call(this, options);
};
inherits(_ol_Map_, PluggableMap);
inherits(Map, PluggableMap);
export default _ol_Map_;
export default Map;