text: /**
   * Copyright 2015, GeoSolutions Sas.
   * All rights reserved.
   *
   * This source code is licensed under the BSD-style license found in the
   * LICENSE file in the root directory of this source tree.
   */
  
  var Layers = require('../../../../utils/leaflet/Layers');
  var L = require('leaflet');
  var TileProvider = require('../../../../utils/TileConfigProvider');
  
  Layers.registerType('tileprovider', (options) => {
      let [url, opt] = TileProvider.getLayerConfig(options.provider, options);
      return L.tileLayer(url, opt);
  });
  