This is the namespace that contains specific NVDB sources.
- Source:
- mapspace-nvdb/source/bu.nvdb.source.jsdoc
Classes
Type Definitions
-
VectorEventType
-
Types of events for a
Mapspace.nvdb.source.Vector
.Name Value Description Mapspace.nvdb.source.VectorEventType.DESCRIPTORDOWNLOADED descriptordownloaded Triggered when the NVDB object type descriptor of the source is downloaded. - Source:
- mapspace-nvdb/enums.js
-
VectorOptions
-
Options for a
Mapspace.nvdb.source.Vector
.- Source:
- mapspace-nvdb/typedefs.js
Properties:
Name Type Description attributions
ol.AttributionLike | undefined Attributions.
features
Array.<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.logo
string | olx.LogoOptions | undefined Logo.
overlaps
boolean | 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.useSpatialIndex
boolean | 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
false
may improve performance. Note thatol.source.Vector#getFeaturesInExtent
,ol.source.Vector#getClosestFeatureToCoordinate
andol.source.Vector#getExtent
cannot be used whenuseSpatialIndex
is set tofalse
, andol.source.Vector#forEachFeatureInExtent
will 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
.wrapX
boolean | 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.featureTypes
Array.<string> An array defining what feature types are available.
viewTypeOptions
Object.<string, Object> The options to apply to each type of viewer. This must be an object with
Mapspace.ViewType
as keys and objects as values. Each object must have onefeatureTypesForResolutions
property with aMapspace.FeatureTypeResolution
and oneloadingStrategy
property with aol.LoadingStrategy
.servicesOptions
Mapspace.nvdb.ServicesOptions | undefined The object that describes the options to use when requesting data to the NVDB services.
loadAtOnce
boolean | undefined If features must be loaded all in the first load or not. By default is false.