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 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.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.
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.servicesOptionsMapspace.nvdb.ServicesOptions | undefined The object that describes the options to use when requesting data to the NVDB services.
loadAtOnceboolean | undefined If features must be loaded all in the first load or not. By default is false.