This namespace contains definitions of objects that extend the functionality of the OpenLayers ol.source namespace.
- Source:
- bu/source/source.jsdoc
Classes
Type Definitions
-
Cesium3DTilesetOptions
-
Type:
- Object
- Source:
- bu/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. -
LiDARCesium3DTilesetOptions
-
Type:
- Object
- Source:
- bu/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.projectbu.LiDARProjectMetadata | undefined The LiDAR project metadata.
-
LocalFileProperties
-
Type:
- Object
- Source:
- bu/typedefs.js
Properties:
Name Type Description fileFile | undefined The File object.
logostring | olx.LogoOptions | undefined Logo.
-
RemoteFileProperties
-
Type:
- Object
- Source:
- bu/typedefs.js
Properties:
Name Type Description urlstring | undefined The URL to the remote resource file.
-
SourceDefinition
-
Type:
- Object
- Source:
- bu/typedefs.js
Properties:
Name Type Description typebu.source.SourceType | undefined Type of the source.
propertiesbu.source.LocalFileProperties | bu.source.RemoteFileProperties | bu.source.WebServiceProperties | undefined Source properties.
-
SourceType
-
Types of sources.
LOCALFILE: 'localfile' // Source type is a local file. REMOTEFILE: 'remotefile' // Source type is a remote file. WEBSERVICE: 'webservice' // Source type is a web service, like WMS, WMTS, WFS or other.Type:
- string
- Source:
- bu/enums.js
-
TileDebugOptions
-
Type:
- Object
- Source:
- bu/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.
-
VectorEventType
-
Event types that extend the current events of a
ol.source.Vector.FEATURESLOADED: 'featuresloaded' // The features has been loaded or a failure // has happenedType:
- string
- Source:
- bu/enums.js
-
VectorOptions
-
Type:
- Object
- Source:
- bu/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
bu.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
-
Type:
- Object
- Source:
- bu/typedefs.js
Properties:
Name Type Description urlstring | undefined URL of the web service.
-
WFSOptions
-
Options for a
bu.source.Panoramas.Type:
- Object
- Source:
- bu/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.featureTypeResolutionsArray.<bu.FeatureTypeResolution> An array defining wha feature types will be visibles at certain resolutions.
urlFunctionstring | ol.FeatureUrlFunction The string or function that will be used to create a
ol.FeatureLoader. Notice that the loader option present inolx.source.VectorOptionsis not more available here.urlFunctionAllstring | ol.FeatureUrlFunction The string or function that will be used to create a
ol.FeatureLoaderto load all features types on each request.loadAllboolean If true then only the urlFunctionAll will be used and to load features the loadAllFeatures method must be used. If false then urlFunction will be used and the source will behave as a normal ol.source.Vector.
Javascript API 7.x