This is the main namespace of the Ortho module, that contains the
Mapspace.ortho.Viewer
. This viewer shows orthographic imagery and vector
data in 2D render.
- Source:
- mapspace-ortho/bu.ortho.jsdoc
Classes
Namespaces
Type Definitions
-
MeasurementType
-
Type of the ortho measurement (point, length, ground elevation, ground length, area, bearing) for ortho viewers.
Name Value Mapspace.ortho.MeasurementType.POINT Mapspace.MeasurementType.POINT Mapspace.ortho.MeasurementType.LENGTH Mapspace.MeasurementType.LENGTH Mapspace.ortho.MeasurementType.POLYLENGTH Mapspace.MeasurementType.POLYLENGTH Mapspace.ortho.MeasurementType.GROUND_POLYLENGTH Mapspace.MeasurementType.GROUND_POLYLENGTH Mapspace.ortho.MeasurementType.AREA Mapspace.MeasurementType.AREA Mapspace.ortho.MeasurementType.BEARING Mapspace.MeasurementType.BEARING Mapspace.ortho.MeasurementType.ELEVATION Mapspace.MeasurementType.ELEVATION - Source:
- mapspace-ortho/enums.js
-
ViewerEventType
-
Type of events for a
Mapspace.ortho.Viewer
.Name Value Description Mapspace.ortho.ViewerEventType.CONSTRAINROTATIONCHANGED change:constrainrotation The rotation constrain has changed. Mapspace.ortho.ViewerEventType.ENABLEROTATIONCHANGED change:enablerotation The enable rotation property has changed. Mapspace.ortho.ViewerEventType.EXTENTCHANGED change:extent The extent has changed. Mapspace.ortho.ViewerEventType.PROJECTIONCHANGED change:projection The projection has changed. Mapspace.ortho.ViewerEventType.LAYERCHANGED layerchanged Triggered when a Mapspace layer changed - Source:
- mapspace-ortho/enums.js
-
ViewerOptions
-
Options for
Mapspace.ortho.Viewer
.- Source:
- mapspace-ortho/typedefs.js
Properties:
Name Type Description name
string | undefined The name of the viewer.
target
Element | string | undefined The DOM target element where this viewer will be appended.
outputprojection
string | undefined The viewer output projection. The 'EPSG:code' string with the projection to use in any control linked to this viewer when showing coordinates.
debugmode
boolean | undefined If activate the debug mode or not. By default is false. This mode is only active when Mapspace.DEBUG global variable is set to true and the user has the required permissions. The mode shows several extra information on top of existing layers and offer a debug panel.
debuggrid
boolean | undefined If activate a debug grid or not. By default is false. This mode is only active when Mapspace.DEBUG global variable is set to true and the user has the required permissions. If debugmode is set to false then this mode is ignored. The mode shows the grid of tiles with IDs for the main tile layer.
time
string | undefined Time filter of the viewer. Valid time values are any string with pattern YYYYMMDD or with pattern YYYYMMDD-YYYYMMDD. First filters images before the date, and second filters images between the dates.
center
Mapspace.Coordinate | undefined The initial center for the view. The coordinate system for the center is always an EPSG:4326 LanLot.
constrainRotation
boolean | number | undefined Rotation constraint.
false
means no constraint.true
means no constraint, but snap to zero near zero. A number constrains the rotation to that number of values. For example,4
will constrain the rotation to 0, 90, 180, and 270 degrees. The default istrue
.enableRotation
boolean | undefined Enable rotation. Default is
true
. Iffalse
a rotation constraint that always sets the rotation to zero is used. TheconstrainRotation
option has no effect ifenableRotation
isfalse
.extent
Mapspace.Extent | undefined The extent that constrains the center, in other words, center cannot be set outside this extent. Default is
undefined
.maxResolution
number | undefined The maximum resolution used to determine the resolution constraint. It is used together with
minResolution
(ormaxZoom
) andzoomFactor
. If unspecified it is calculated in such a way that the projection's validity extent fits in a 256x256 px tile. If the projection is Spherical Mercator (the default) thenmaxResolution
defaults to40075016.68557849 / 256 = 156543.03392804097
.minResolution
number | undefined The minimum resolution used to determine the resolution constraint. It is used together with
maxResolution
(orminZoom
) andzoomFactor
. If unspecified it is calculated assuming 29 zoom levels (with a factor of 2). If the projection is Spherical Mercator (the default) thenminResolution
defaults to40075016.68557849 / 256 / Math.pow(2, 28) = 0.0005831682455839253
.maxZoom
number | undefined The maximum zoom level used to determine the resolution constraint. It is used together with
minZoom
(ormaxResolution
) andzoomFactor
. Default is28
. Note that ifminResolution
is also provided, it is given precedence overmaxZoom
.minZoom
number | undefined The minimum zoom level used to determine the resolution constraint. It is used together with
maxZoom
(orminResolution
) andzoomFactor
. Default is0
. Note that ifmaxResolution
is also provided, it is given precedence overminZoom
.projection
string | undefined The projection. Default is
EPSG:3857
(Spherical Mercator).resolution
number | undefined The initial resolution for the view. The units are
projection
units per pixel (e.g. meters per pixel). An alternative to setting this is to setzoom
. Default isundefined
, and layer sources will not be fetched if neither this norzoom
are defined.resolutions
Array.<number> | undefined Resolutions to determine the resolution constraint. If set the
maxResolution
,minResolution
,minZoom
,maxZoom
, andzoomFactor
options are ignored.rotation
number | undefined The initial rotation for the view in decimal degrees (positive rotation clockwise). Default is
0
.zoom
number | undefined Only used if
resolution
is not defined. Zoom level used to calculate the initial resolution for the view. The initial resolution is determined using theol.View#constrainResolution
method.zoomFactor
number | undefined The zoom factor used to determine the resolution constraint. Default is
2
.layers
Array.<ol.layer.Base> | ol.Collection.<ol.layer.Base> | ol.layer.Group | undefined Layers. If this is not defined, a map with no layers will be rendered. Note that layers are rendered in the order supplied, so if you want, for example, a vector layer to appear on top of a tile layer, it must come after the tile layer.
keyboardEventTarget
Element | undefined The element to listen to keyboard events on. This determines when the
KeyboardPan
andKeyboardZoom
interactions trigger. If this option is not specified, the element the library listens to keyboard events on is the viewer viewport (the div that contains the viewer). If it is specified the element needs to be focused for key events to be emitted, requiring that the element has atabindex
attribute.enforceLayers
boolean | undefined If this viewer should ensure that certain layers are added, as the measurements and annotations layer. When this viewer is inside a
Mapspace.global.Viewer
enforceLayers is set to false and the enforcement is carried out by the global viewer.isInsideGlobal
boolean | undefined If this viewer is inside a
Mapspace.global.Viewer
or not. Default is false.rotatorType
Mapspace.control.RotatorType | undefined The type of rotator control that must be used as default when a workspace is deserialized. By deafult is Mapspace.control.RotatorType.ROTATOR.
pin
boolean | undefined If add a pin icon in the center of the viewer when viewer is loaded first time. By default is false.
label
boolean | string | undefined If show a pin icon and a label in the center of the viewer when viewer is loaded first time. By default is false. If it is true then executes a reverse geocoding in the location and label is the address found. If it is a string then no reverse geocoding is executed and the label is the string.
-
ViewerProperty
-
Properties of a
Mapspace.ortho.Viewer
.Name Value Mapspace.ortho.ViewerProperty.CONSTRAINROTATION constrainRotation Mapspace.ortho.ViewerProperty.ENABLEROTATION enableRotation Mapspace.ortho.ViewerProperty.EXTENT extent Mapspace.ortho.ViewerProperty.MAXRESOLUTION maxResolution Mapspace.ortho.ViewerProperty.MINRESOLUTION minResolution Mapspace.ortho.ViewerProperty.MAXZOOM maxZoom Mapspace.ortho.ViewerProperty.MINZOOM minZoom Mapspace.ortho.ViewerProperty.PROJECTION projection Mapspace.ortho.ViewerProperty.RESOLUTION resolution Mapspace.ortho.ViewerProperty.RESOLUTIONS resolutions Mapspace.ortho.ViewerProperty.ZOOM zoom Mapspace.ortho.ViewerProperty.ZOOMFACTOR zoomFactor Mapspace.ortho.ViewerProperty.LAYER layer - Source:
- mapspace-ortho/enums.js