new GeoImage( [options])
Layer source with georeferencement to place it on a map
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
options |
olx.source.GeoImageOptions |
<optional> |
Extends
- ol.source.ImageCanvas
Methods
-
getCenter()
-
Get coordinate of the image center.
Returns:
coordinate of the image center.
- Type
- ol.Coordinate
-
getCrop()
-
Get image crop extent.
Returns:
image crop extent.
- Type
- ol.extent
-
getGeoImage()
-
Get the image.
-
getMask()
-
Get image mask.
Returns:
coords of the mask
- Type
- ol.geom.LineString
-
getRotation()
-
Get image rotation.
Returns:
rotation in degre.
- Type
- Number
-
getScale()
-
Get image scale.
Returns:
image scale (along x and y axis).
- Type
- ol.size
-
setCenter(coordinate)
-
Set coordinate of the image center.
Parameters:
Name Type Description coordinate
ol.Coordinate of the image center.
-
setCrop(image)
-
Set image crop extent.
Parameters:
Name Type Description image
ol.extent | Number crop extent or a number to crop from original size.
-
setMask(coords)
-
Set image mask.
Parameters:
Name Type Description coords
ol.geom.LineString of the mask
-
setRotation(rotation)
-
Set image rotation.
Parameters:
Name Type Description rotation
Number in radian.
-
setScale(image)
-
Set image scale.
Parameters:
Name Type Description image
ol.size | Number scale (along x and y axis or both).