new Utils()
impl/ol/util/Utils.js, line 121
Methods
-
module:M/impl/utils~Utils.addOverlayImage()
impl/ol/util/Utils.js, line 161 -
-
module:M/impl/utils~Utils.cloneOLRenderFeature(olRenderFeature){RenderFeature}
impl/ol/util/Utils.js, line 423 -
Clones a renderFeature
Name Type Description olRenderFeature
RenderFeature render feature to clone
Returns:
a clone
-
module:M/impl/utils~Utils.generateResolutions()
impl/ol/util/Utils.js, line 127 -
-
Calcs the geometry center
Name Type Description geom
ol.geom the ol geometry
Returns:
center coordinates
-
module:M/impl/utils~Utils.getCentroidCoordinate(geometry){Arra.<number>}
impl/ol/util/Utils.js, line 291 -
Get the coordinate of centroid
Name Type Description geometry
ol.geom geometry
-
module:M/impl/utils~Utils.getExtentHeight(extent){number}
impl/ol/util/Utils.js, line 217 -
Get the height of an extent.
Name Type Description extent
ol.Extent Extent.
Returns:
Height.
-
module:M/impl/utils~Utils.getExtentWidth(extent){number}
impl/ol/util/Utils.js, line 229 -
Get the width of an extent.
Name Type Description extent
ol.Extent Extent.
Returns:
Width.
-
module:M/impl/utils~Utils.getFeaturesExtent(extent){number}
impl/ol/util/Utils.js, line 261 -
Get the width of an extent.
Name Type Description extent
ol.Extent Extent.
Returns:
Width.
-
module:M/impl/utils~Utils.getGeometryFromRenderFeature(olRenderFeature, transform){ol.geom}
impl/ol/util/Utils.js, line 454 -
Creates a OL geometry from a render featuer
Name Type Description olRenderFeature
RenderFeature render feature which will be used in order to build the Geometry
transform
function function to reproject the coordinates
Returns:
the geometry of the render feature
-
module:M/impl/utils~Utils.olRenderFeature2olFeature(olRenderFeature, tileProjection, mapProjection){OLFeature}
impl/ol/util/Utils.js, line 385 -
Transforms the renderFeature to standard feature.
Name Type Description olRenderFeature
RenderFeature render feature to transform
tileProjection
ol.Projection mapProjection
ol.Projection Returns:
the ol.Feature
-
module:M/impl/utils~Utils.transformExtent(extent, srcProj, tgtProj){ol.Extent}
impl/ol/util/Utils.js, line 348 -
Transform the extent. If the extent it is the same than source proj extent then the target proj extent will be returned
Name Type Description extent
ol.Extent Extent to transform.
srcProj
String source projection.
tgtProj
String target projection.
Returns:
transformed extent.