This namespace contains definitions of objects that extend the functionality of the OpenLayers ol.source namespace.
- Source:
- mapspace/source/source.jsdoc
Classes
- Cesium3DTileset
- LiDARCesium3DTileset
- Mesh3DCesium3DTileset
- Proxy
- ServerVector
- Teg
- TileDebug
- Vector
- WFS
Type Definitions
-
Cesium3DTilesetEventType
-
Event types for a
Mapspace.source.Cesium3DTileset.Name Value Description Mapspace.source.Cesium3DTilesetEventType.TILESETMETADATALOADED tilesetmetadataloaded The JSON file with tileset metadata has been loaded - Source:
- mapspace/enums.js
-
Cesium3DTilesetOptions
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description attributionsol.AttributionLike | undefined Attributions.
logostring | olx.LogoOptions | undefined The logo for the source.
pointCloudShadingCesium.PointCloudShading | undefined The options for performing point attenuation based on geometric error when rendering point clouds using 3D Tiles.
projectionol.ProjectionLike The projection for the source.
stateol.source.State | undefined The state of the source, see
ol.source.Statefor possible states.urlstring | Cesium.Resource | undefined The url to a tileset.json file or to a directory containing a tileset.json file.
wrapXboolean | undefined Wrap the world horizontally. Default is
true. For vector editing across the -180° and 180° meridians to work properly, this should be set tofalse. The resulting geometry coordinates will then exceed the world bounds.projectMapspace.LiDARProjectMetadata | undefined The project metadata.
isProjectUpdatedboolean | undefined If false the project property passed is considered outdated and a new request should be made to retrieve the latest project metadata. By default is false. Use true in cases when project metadata has been inmediately downloaded.
colorConditionsMapspace.ColorConditions | undefined The conditions to use for rendering with different colors.
pointSizeConditionsMapspace.PointSizeConditions | undefined The conditions to use for rendering with different point sizes.
maximumScreenSpaceErrornumber | undefined The maximum screen space error used to drive level of detail refinement. By deafult is 16.
maximumMemoryUsagenumber | undefined The maximum amount of memory in MB that can be used by the tileset. By default is 256.
clippingPlanesCesium.ClippingPlaneCollection | undefined An optional collection of clipping planes to disable rendering inside the volume defined by the planes.
-
EmptyProperties
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description namestring | undefined The name for the source.
-
LiDARCesium3DTilesetOptions
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description attributionsol.AttributionLike | undefined Attributions.
logostring | olx.LogoOptions | undefined The logo for the source.
pointCloudShadingCesium.PointCloudShading | undefined The options for performing point attenuation based on geometric error when rendering point clouds using 3D Tiles.
projectionol.ProjectionLike The projection for the source.
stateol.source.State | undefined The state of the source, see
ol.source.Statefor possible states.urlstring | Cesium.Resource | undefined The url to a tileset.json file or to a directory containing a tileset.json file.
wrapXboolean | undefined Wrap the world horizontally. Default is
true. For vector editing across the -180° and 180° meridians to work properly, this should be set tofalse. The resulting geometry coordinates will then exceed the world bounds.projectMapspace.LiDARProjectMetadata | undefined The LiDAR project metadata.
isProjectUpdatedboolean | undefined If false the project property passed is considered outdated and a new request should be made to retrieve the latest project metadata. By default is false. Use true in cases when project metadata has been inmediately downloaded.
colorConditionsMapspace.ColorConditions | undefined The conditions to use for rendering with different colors.
pointSizeConditionsMapspace.PointSizeConditions | undefined The conditions to use for rendering with different point sizes.
maximumScreenSpaceErrornumber | undefined The maximum screen space error used to drive level of detail refinement. By deafult is 16.
maximumMemoryUsagenumber | undefined The maximum amount of memory in MB that can be used by the tileset. By default is 256.
clippingPlanesCesium.ClippingPlaneCollection | undefined An optional collection of clipping planes to disable rendering inside the volume defined by the planes.
-
LocalFileProperties
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description fileFile | undefined The File object.
logostring | olx.LogoOptions | undefined Logo.
-
Mesh3DCesium3DTilesetOptions
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description attributionsol.AttributionLike | undefined Attributions.
logostring | olx.LogoOptions | undefined The logo for the source.
pointCloudShadingCesium.PointCloudShading | undefined The options for performing point attenuation based on geometric error when rendering point clouds using 3D Tiles.
projectionol.ProjectionLike The projection for the source.
stateol.source.State | undefined The state of the source, see
ol.source.Statefor possible states.urlstring | Cesium.Resource | undefined The url to a tileset.json file or to a directory containing a tileset.json file.
wrapXboolean | undefined Wrap the world horizontally. Default is
true. For vector editing across the -180° and 180° meridians to work properly, this should be set tofalse. The resulting geometry coordinates will then exceed the world bounds.projectMapspace.Mesh3DProjectMetadata | undefined The Mesh3D project metadata.
colorConditionsMapspace.ColorConditions | undefined The conditions to use for rendering with different colors.
maximumScreenSpaceErrornumber | undefined The maximum screen space error used to drive level of detail refinement. By deafult is 16.
maximumMemoryUsagenumber | undefined The maximum amount of memory in MB that can be used by the tileset. By default is 256.
clippingPlanesCesium.ClippingPlaneCollection | undefined An optional collection of clipping planes to disable rendering inside the volume defined by the planes.
-
RemoteFileProperties
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description urlstring | undefined The URL to the remote resource file.
-
ServerVectorOptions
-
Options for a
Mapspace.source.ServerVector.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description attributionsol.AttributionLike | undefined Attributions.
featuresArray.<ol.Feature> | ol.Collection.<ol.Feature> | undefined Features. If provided as
ol.Collection, the features in the source and the collection will stay in sync.formatol.format.Feature | undefined The feature format used by the XHR feature loader when
urlis set. Required ifurlis set, otherwise ignored. Default isundefined.logostring | olx.LogoOptions | undefined Logo.
overlapsboolean | undefined This source may have overlapping geometries. Default is
true. Setting this tofalse(e.g. for sources with polygons that represent administrative boundaries or TopoJSON sources) allows the renderer to optimise fill and stroke operations.strategyol.LoadingStrategy | undefined The loading strategy to use. By default an
ol.loadingstrategy.allstrategy is used, a one-off strategy which loads all features at once.useSpatialIndexboolean | undefined By default, an RTree is used as spatial index. When features are removed and added frequently, and the total number of features is low, setting this to
falsemay improve performance. Note thatol.source.Vector#getFeaturesInExtent,ol.source.Vector#getClosestFeatureToCoordinateandol.source.Vector#getExtentcannot be used whenuseSpatialIndexis set tofalse, andol.source.Vector#forEachFeatureInExtentwill loop through all features. When set tofalse, the features will be maintained in anol.Collection, which can be retrieved throughol.source.Vector#getFeaturesCollection. The default istrue.wrapXboolean | undefined Wrap the world horizontally. Default is
true. For vector editing across the -180° and 180° meridians to work properly, this should be set tofalse. The resulting geometry coordinates will then exceed the world bounds.featureTypesArray.<string> An array defining what feature types are available.
viewTypeOptionsObject.<string, Object> The options to apply to each type of viewer. This must be an object with
Mapspace.ViewTypeas keys and objects as values. Each object must have onefeatureTypesForResolutionsproperty with aMapspace.FeatureTypeResolutionand oneloadingStrategyproperty with aol.LoadingStrategy. -
SourceDefinition
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description typeMapspace.source.SourceType | undefined Type of the source.
propertiesMapspace.source.EmptyProperties | Mapspace.source.LocalFileProperties | Mapspace.source.RemoteFileProperties | Mapspace.source.WebServiceProperties | Mapspace.source.UserRasterLayerProperties | Mapspace.source.UserVectorLayerProperties | Mapspace.source.UserVectorLayerGroupProperties | undefined Source properties.
-
SourceType
-
Types of sources.
Name Value Description Mapspace.source.SourceType.EMPTY empty Source is an empty one for local editing. Mapspace.source.SourceType.LOCALFILE localfile Source type is a local file. Mapspace.source.SourceType.REMOTEFILE remotefile Source type is a remote file. Mapspace.source.SourceType.WEBSERVICE webservice Source type is a web service, like WMS, WMTS, WFS or other. Mapspace.source.SourceType.USERRASTERLAYER userrasterlayer Source type that is a named raster layer stored in Terratec services. Mapspace.source.SourceType.USERVECTORLAYER uservectorlayer Source type that is a named vector layer stored in Terratec services. - Source:
- mapspace/enums.js
-
TileDebugOptions
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description projectionol.ProjectionLike Projection for the source.
tileGridol.tilegrid.TileGrid | undefined TileGrid object.
wrapXboolean | undefined If repeat the source in X direction.
colorstring | undefined Color for the tiles.
-
UserRasterLayerProperties
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description namestring | undefined The name of the user layer.
descriptionstring | undefined The description of the user layer.
daterangestring | undefined The range of dates this user layer is able to provide.
layerstring | undefined The name of the Terratec services layer this user layer is able to provide.
layerformatstring | undefined The type of format of the user layer.
overlayboolean | undefined If this user layer is an overlay that can be overlapped on top of other data or not.
sridstring | undefined The EPSG Spatial Reference ID as a string. For example: '4326'.
extentstring | undefined A polygon in WKT format with the maximum extent this user layer is able to provide.
-
UserVectorLayerGroupProperties
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description idnumber ID of group.
namestring Name of group.
typeMapspace.LayerGroupItemType Always must be
group.contentArray.<(Mapspace.source.UserVectorLayerGroupProperties|Mapspace.source.UserVectorLayerProperties)> Content of the layer group.
-
UserVectorLayerProperties
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description namestring | undefined The name of the user layer.
typeMapspace.LayerGroupItemType | undefined If is a layer group or layer. Here is always
layer. -
VectorEventType
-
Event types that extend the current events of a
ol.source.Vector.Name Value Description Mapspace.source.VectorEventType.FEATURESCHANGED featureschanged Some features has been changed Mapspace.source.VectorEventType.LOADFEATURESSTARTED loadfeaturesstarted A bulk loading of features has started Mapspace.source.VectorEventType.LOADFEATURESFINISHED loadfeaturesfinished A bulk loading of features has finished Mapspace.source.VectorEventType.LOADFEATURESREJECTED loadfeaturesrejected A bulk loading of features has been rejected because the number of features was too high Mapspace.source.VectorEventType.LOADFEATURESERROR loadfeatureserror A bulk loading of features has stopped because an error happened trying to request number of features - Source:
- mapspace/enums.js
-
VectorOptions
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description attributionsol.AttributionLike | undefined Attributions.
featuresArray.<ol.Feature> | ol.Collection.<ol.Feature> | undefined Features. If provided as
ol.Collection, the features in the source and the collection will stay in sync.formatol.format.Feature | undefined The feature format used by the XHR feature loader when
urlis set. Required ifurlis set, otherwise ignored. Default isundefined.loaderol.FeatureLoader | undefined The loader function used to load features, from a remote source for example. If this is not set and
urlis set, the source will create and use an XHR feature loader.logostring | olx.LogoOptions | undefined Logo.
overlapsboolean | undefined This source may have overlapping geometries. Default is
true. Setting this tofalse(e.g. for sources with polygons that represent administrative boundaries or TopoJSON sources) allows the renderer to optimise fill and stroke operations.strategyol.LoadingStrategy | undefined The loading strategy to use. By default an
ol.loadingstrategy.allstrategy is used, a one-off strategy which loads all features at once.urlstring | ol.FeatureUrlFunction | undefined Setting this option instructs the source to load features using an XHR loader (see
ol.featureloader.xhr). Use astringand anol.loadingstrategy.allfor a one-off download of all features from the given URL. Use aol.FeatureUrlFunctionto generate the url with other loading strategies. Requiresformatto be set as well. When default XHR feature loader is provided, the features will be transformed from the data projection to the view projection during parsing. If your remote data source does not advertise its projection properly, this transformation will be incorrect. For some formats, the default projection (usually EPSG:4326) can be overridden by setting the defaultDataProjection constructor option on the format. Note that if a source contains non-feature data, such as a GeoJSON geometry or a KML NetworkLink, these will be ignored. Use a custom loader to load these.useSpatialIndexboolean | undefined By default, an RTree is used as spatial index. When features are removed and added frequently, and the total number of features is low, setting this to
falsemay improve performance. Note thatol.source.Vector#getFeaturesInExtent,ol.source.Vector#getClosestFeatureToCoordinateandol.source.Vector#getExtentcannot be used whenuseSpatialIndexis set tofalse, andol.source.Vector#forEachFeatureInExtentwill loop through all features. When set tofalse, the features will be maintained in anol.Collection, which can be retrieved throughol.source.Vector#getFeaturesCollection. The default istrue.wrapXboolean | undefined Wrap the world horizontally. Default is
true. For vector editing across the -180° and 180° meridians to work properly, this should be set tofalse. The resulting geometry coordinates will then exceed the world bounds.namestring | undefined Name for the source.
sourceProxyIDstring Unique ID of this source in the
Mapspace.SourceProxysingleton.localFileFormatstring Format of the local file that generated this source.
featuresProjectionol.proj.Projection | undefined Projection of the incoming features.
geometryLayoutol.geom.GeometryLayout Geometry layout for the source. We asume that all the geometries share the same geometry layout.
showLabelsboolean If show the labels of the features or not. By default is true.
-
WebServiceProperties
-
- Source:
- mapspace/typedefs.js
Properties:
Name Type Description urlstring | undefined URL of the web service.
namestring | undefined Name of the layer to request.
transparentboolean | undefined If the expected responses will be images not completely filled. In this case images will be requested in PNG format.
tiledboolean | undefined If true the web service is a tiled one, like WMTS. If not a non-tiled one, like WMS.
-
WFSOptions
-
Options for a
Mapspace.source.WFS.- Source:
- mapspace/typedefs.js
Properties:
Name Type Description attributionsol.AttributionLike | undefined Attributions.
featuresArray.<ol.Feature> | ol.Collection.<ol.Feature> | undefined Features. If provided as
ol.Collection, the features in the source and the collection will stay in sync. Required ifurlis set, otherwise ignored. Default isundefined.logostring | olx.LogoOptions | undefined Logo.
overlapsboolean | undefined This source may have overlapping geometries. Default is
true. Setting this tofalse(e.g. for sources with polygons that represent administrative boundaries or TopoJSON sources) allows the renderer to optimise fill and stroke operations.useSpatialIndexboolean | undefined By default, an RTree is used as spatial index. When features are removed and added frequently, and the total number of features is low, setting this to
falsemay improve performance. Note thatol.source.Vector#getFeaturesInExtent,ol.source.Vector#getClosestFeatureToCoordinateandol.source.Vector#getExtentcannot be used whenuseSpatialIndexis set tofalse, andol.source.Vector#forEachFeatureInExtentwill loop through all features. When set tofalse, the features will be maintained in anol.Collection, which can be retrieved throughol.source.Vector#getFeaturesCollection. The default istrue.wrapXboolean | undefined Wrap the world horizontally. Default is
true. For vector editing across the -180° and 180° meridians to work properly, this should be set tofalse. The resulting geometry coordinates will then exceed the world bounds.featureTypesArray.<string> An array defining what feature types are available.
serviceNamestring Name of the service to add in the URL to compose the WFS request. The pattern of the request is something like this:
http://your.mapspace.com/v02/{serviceName}?{params}. Notice that the loader option present inolx.source.VectorOptionsis not more available here and a fixed loader is created internally.viewTypeOptionsObject.<string, Object> The options to apply to each type of viewer. This must be an object with
Mapspace.ViewTypeas keys and objects as values. Each object must have onefeatureTypesForResolutionsproperty with aMapspace.FeatureTypeResolutionand oneloadingStrategyproperty with aol.LoadingStrategy.