Class: GeoImage

mcutils.format.layer. GeoImage

Lecture de layer image au format macarte.


new GeoImage(options)

Constructor

Parameters:
Name Type Description
options

Options.

Source:
format/layer/GeoImage.js

Extends

Methods


read(options, url, imageCrop, imageMask)

Reader

Parameters:
Name Type Description
options *

extend layer options

url string

url of the static image

options.imageCenter ol.Coordinate

center of the image

options.imageScale ol.Size | Number

[scalex, scaley] of the image

options.imageRotate number

angle of the image in radian, default 0

imageCrop ol.Extent

image crop to be show (in the image) default: [0,0,imageWidth,imageHeight]

imageMask Array.<ol.Coordinate>

linestring to mask the image on the map

Overrides:
Source:
format/layer/GeoImage.js
Returns:
Type
ol_layer_Image

readOptions(layer, options)

Set the layers options (visibility, opacity, etc.)

Parameters:
Name Type Description
layer ol.layer

ol layer

options Object
Properties
Name Type Description
name String

name of the layer

title String

title of the layer

opacity bool

opacity of the layer, default 1

visibility bool

visibility of the layer

copyright String

layer copyright

description String

layer description

cluster boolean
maxZoomCluster number
popupHoverSelect vboolean
Inherited From:
Overrides:
Source:
format/layer/Layer.js

write()

Abstract class for reading layer

Inherited From:
Overrides:
Source:
format/layer/Layer.js
Returns:
Type
Layer | boolean

writeOptions(layer, options)

Get the layers options (visibility, opacity, etc.)

Parameters:
Name Type Description
layer ol.layer

ol layer

options Object

a list of options to extend. The list is extended in place.

Inherited From:
Overrides:
Source:
format/layer/Layer.js
Returns:

the options

Type
Object