Replace type annotations
This commit is contained in:
@@ -103,7 +103,7 @@ inherits(MVT, FeatureFormat);
|
||||
* Reader callback for parsing layers.
|
||||
* @param {number} tag The tag.
|
||||
* @param {Object} layers The layers object.
|
||||
* @param {ol.ext.PBF} pbf The PBF.
|
||||
* @param {Object} pbf The PBF.
|
||||
*/
|
||||
function layersPBFReader(tag, layers, pbf) {
|
||||
if (tag === 3) {
|
||||
@@ -125,7 +125,7 @@ function layersPBFReader(tag, layers, pbf) {
|
||||
* Reader callback for parsing layer.
|
||||
* @param {number} tag The tag.
|
||||
* @param {Object} layer The layer object.
|
||||
* @param {ol.ext.PBF} pbf The PBF.
|
||||
* @param {Object} pbf The PBF.
|
||||
*/
|
||||
function layerPBFReader(tag, layer, pbf) {
|
||||
if (tag === 15) {
|
||||
@@ -159,7 +159,7 @@ function layerPBFReader(tag, layer, pbf) {
|
||||
* Reader callback for parsing feature.
|
||||
* @param {number} tag The tag.
|
||||
* @param {Object} feature The feature object.
|
||||
* @param {ol.ext.PBF} pbf The PBF.
|
||||
* @param {Object} pbf The PBF.
|
||||
*/
|
||||
function featurePBFReader(tag, feature, pbf) {
|
||||
if (tag == 1) {
|
||||
@@ -182,7 +182,7 @@ function featurePBFReader(tag, feature, pbf) {
|
||||
/**
|
||||
* Read a raw feature from the pbf offset stored at index `i` in the raw layer.
|
||||
* @suppress {missingProperties}
|
||||
* @param {ol.ext.PBF} pbf PBF.
|
||||
* @param {Object} pbf PBF.
|
||||
* @param {Object} layer Raw layer.
|
||||
* @param {number} i Index of the feature in the raw layer's `features` array.
|
||||
* @return {Object} Raw feature.
|
||||
@@ -205,7 +205,7 @@ function readRawFeature(pbf, layer, i) {
|
||||
* Read the raw geometry from the pbf offset stored in a raw feature's geometry
|
||||
* property.
|
||||
* @suppress {missingProperties}
|
||||
* @param {ol.ext.PBF} pbf PBF.
|
||||
* @param {Object} pbf PBF.
|
||||
* @param {Object} feature Raw feature.
|
||||
* @param {Array.<number>} flatCoordinates Array to store flat coordinates in.
|
||||
* @param {Array.<number>} ends Array to store ends in.
|
||||
@@ -294,7 +294,7 @@ function getGeometryType(type, numEnds) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @param {ol.ext.PBF} pbf PBF
|
||||
* @param {Object} pbf PBF
|
||||
* @param {Object} rawFeature Raw Mapbox feature.
|
||||
* @param {module:ol/format/Feature~ReadOptions=} opt_options Read options.
|
||||
* @return {module:ol/Feature|module:ol/render/Feature} Feature.
|
||||
|
||||
Reference in New Issue
Block a user