UNPKG

kmap-ui

Version:

A components of zmap base on vue2.X

31 lines (27 loc) 923 B
/* Copyright (c) 2019 Jean-Marc VIGLINO, released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ import ol_layer_Image from 'ol/layer/Image' import {ol_ext_inherits} from '../util/ext' /** * @classdesc * Image layer to use with a GeoImage source and return the extent calcaulted with this source. * @extends {ol.layer.Image} * @param {Object=} options Layer Image options. * @api */ var ol_layer_GeoImage = function(options) { ol_layer_Image.call(this, options); } ol_ext_inherits (ol_layer_GeoImage, ol_layer_Image); /** * Return the {@link module:ol/extent~Extent extent} of the source associated with the layer. * @return {ol.Extent} The layer extent. * @observable * @api */ ol_layer_GeoImage.prototype.getExtent = function() { return this.getSource().getExtent(); } export default ol_layer_GeoImage;