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 olRenderFeatureRenderFeature 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 geomol.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 geometryol.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 extentol.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 extentol.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 extentol.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 olRenderFeatureRenderFeature render feature which will be used in order to build the Geometry
transformfunction 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 olRenderFeatureRenderFeature render feature to transform
tileProjectionol.Projection mapProjectionol.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 extentol.Extent Extent to transform.
srcProjString source projection.
tgtProjString target projection.
Returns:
transformed extent.