Rename _ol_PluginType to PluginType

This commit is contained in:
Frederic Junod
2017-12-18 16:53:57 +01:00
parent 27c54cc36c
commit 15768a6025
3 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@
*/
import {inherits} from './index.js';
import _ol_PluggableMap_ from './PluggableMap.js';
import _ol_PluginType_ from './PluginType.js';
import PluginType from './PluginType.js';
import {defaults as defaultControls} from './control.js';
import {defaults as defaultInteractions} from './interaction.js';
import _ol_obj_ from './obj.js';
@@ -15,8 +15,8 @@ import _ol_renderer_canvas_VectorLayer_ from './renderer/canvas/VectorLayer.js';
import _ol_renderer_canvas_VectorTileLayer_ from './renderer/canvas/VectorTileLayer.js';
_ol_plugins_.register(_ol_PluginType_.MAP_RENDERER, _ol_renderer_canvas_Map_);
_ol_plugins_.registerMultiple(_ol_PluginType_.LAYER_RENDERER, [
_ol_plugins_.register(PluginType.MAP_RENDERER, _ol_renderer_canvas_Map_);
_ol_plugins_.registerMultiple(PluginType.LAYER_RENDERER, [
_ol_renderer_canvas_ImageLayer_,
_ol_renderer_canvas_TileLayer_,
_ol_renderer_canvas_VectorLayer_,

View File

@@ -3,7 +3,7 @@
*/
import {inherits} from './index.js';
import _ol_PluggableMap_ from './PluggableMap.js';
import _ol_PluginType_ from './PluginType.js';
import PluginType from './PluginType.js';
import {defaults as defaultControls} from './control.js';
import {defaults as defaultInteractions} from './interaction.js';
import _ol_obj_ from './obj.js';
@@ -19,8 +19,8 @@ import _ol_renderer_webgl_TileLayer_ from './renderer/webgl/TileLayer.js';
import _ol_renderer_webgl_VectorLayer_ from './renderer/webgl/VectorLayer.js';
_ol_plugins_.register(_ol_PluginType_.MAP_RENDERER, _ol_renderer_canvas_Map_);
_ol_plugins_.registerMultiple(_ol_PluginType_.LAYER_RENDERER, [
_ol_plugins_.register(PluginType.MAP_RENDERER, _ol_renderer_canvas_Map_);
_ol_plugins_.registerMultiple(PluginType.LAYER_RENDERER, [
_ol_renderer_canvas_ImageLayer_,
_ol_renderer_canvas_TileLayer_,
_ol_renderer_canvas_VectorLayer_,
@@ -28,8 +28,8 @@ _ol_plugins_.registerMultiple(_ol_PluginType_.LAYER_RENDERER, [
]);
// TODO: move these to new ol-webgl package
_ol_plugins_.register(_ol_PluginType_.MAP_RENDERER, _ol_renderer_webgl_Map_);
_ol_plugins_.registerMultiple(_ol_PluginType_.LAYER_RENDERER, [
_ol_plugins_.register(PluginType.MAP_RENDERER, _ol_renderer_webgl_Map_);
_ol_plugins_.registerMultiple(PluginType.LAYER_RENDERER, [
_ol_renderer_webgl_ImageLayer_,
_ol_renderer_webgl_TileLayer_,
_ol_renderer_webgl_VectorLayer_

View File

@@ -1,7 +1,7 @@
/**
* @module ol/plugins
*/
import _ol_PluginType_ from './PluginType.js';
import PluginType from './PluginType.js';
var _ol_plugins_ = {};
/**
@@ -46,12 +46,12 @@ _ol_plugins_.getLayerRendererPlugins = function() {
_ol_plugins_.register = function(type, plugin) {
var plugins;
switch (type) {
case _ol_PluginType_.MAP_RENDERER: {
case PluginType.MAP_RENDERER: {
plugins = _ol_plugins_.mapRendererPlugins_;
plugins.push(/** @type {olx.MapRendererPlugin} */ (plugin));
break;
}
case _ol_PluginType_.LAYER_RENDERER: {
case PluginType.LAYER_RENDERER: {
plugins = _ol_plugins_.layerRendererPlugins_;
plugins.push(/** @type {olx.LayerRendererPlugin} */ (plugin));
break;