Use 'PBF' type instead of 'Object'
This commit is contained in:
@@ -94,7 +94,7 @@ class MVT extends FeatureFormat {
|
|||||||
/**
|
/**
|
||||||
* Read the raw geometry from the pbf offset stored in a raw feature's geometry
|
* Read the raw geometry from the pbf offset stored in a raw feature's geometry
|
||||||
* property.
|
* property.
|
||||||
* @param {Object} pbf PBF.
|
* @param {PBF} pbf PBF.
|
||||||
* @param {Object} feature Raw feature.
|
* @param {Object} feature Raw feature.
|
||||||
* @param {Array<number>} flatCoordinates Array to store flat coordinates in.
|
* @param {Array<number>} flatCoordinates Array to store flat coordinates in.
|
||||||
* @param {Array<number>} ends Array to store ends in.
|
* @param {Array<number>} ends Array to store ends in.
|
||||||
@@ -157,7 +157,7 @@ class MVT extends FeatureFormat {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} pbf PBF
|
* @param {PBF} pbf PBF
|
||||||
* @param {Object} rawFeature Raw Mapbox feature.
|
* @param {Object} rawFeature Raw Mapbox feature.
|
||||||
* @param {import("./Feature.js").ReadOptions=} opt_options Read options.
|
* @param {import("./Feature.js").ReadOptions=} opt_options Read options.
|
||||||
* @return {import("../Feature.js").FeatureLike} Feature.
|
* @return {import("../Feature.js").FeatureLike} Feature.
|
||||||
@@ -288,7 +288,7 @@ class MVT extends FeatureFormat {
|
|||||||
* Reader callback for parsing layers.
|
* Reader callback for parsing layers.
|
||||||
* @param {number} tag The tag.
|
* @param {number} tag The tag.
|
||||||
* @param {Object} layers The layers object.
|
* @param {Object} layers The layers object.
|
||||||
* @param {Object} pbf The PBF.
|
* @param {PBF} pbf The PBF.
|
||||||
*/
|
*/
|
||||||
function layersPBFReader(tag, layers, pbf) {
|
function layersPBFReader(tag, layers, pbf) {
|
||||||
if (tag === 3) {
|
if (tag === 3) {
|
||||||
@@ -310,7 +310,7 @@ function layersPBFReader(tag, layers, pbf) {
|
|||||||
* Reader callback for parsing layer.
|
* Reader callback for parsing layer.
|
||||||
* @param {number} tag The tag.
|
* @param {number} tag The tag.
|
||||||
* @param {Object} layer The layer object.
|
* @param {Object} layer The layer object.
|
||||||
* @param {Object} pbf The PBF.
|
* @param {PBF} pbf The PBF.
|
||||||
*/
|
*/
|
||||||
function layerPBFReader(tag, layer, pbf) {
|
function layerPBFReader(tag, layer, pbf) {
|
||||||
if (tag === 15) {
|
if (tag === 15) {
|
||||||
@@ -344,7 +344,7 @@ function layerPBFReader(tag, layer, pbf) {
|
|||||||
* Reader callback for parsing feature.
|
* Reader callback for parsing feature.
|
||||||
* @param {number} tag The tag.
|
* @param {number} tag The tag.
|
||||||
* @param {Object} feature The feature object.
|
* @param {Object} feature The feature object.
|
||||||
* @param {Object} pbf The PBF.
|
* @param {PBF} pbf The PBF.
|
||||||
*/
|
*/
|
||||||
function featurePBFReader(tag, feature, pbf) {
|
function featurePBFReader(tag, feature, pbf) {
|
||||||
if (tag == 1) {
|
if (tag == 1) {
|
||||||
@@ -366,7 +366,7 @@ function featurePBFReader(tag, feature, pbf) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Read a raw feature from the pbf offset stored at index `i` in the raw layer.
|
* Read a raw feature from the pbf offset stored at index `i` in the raw layer.
|
||||||
* @param {Object} pbf PBF.
|
* @param {PBF} pbf PBF.
|
||||||
* @param {Object} layer Raw layer.
|
* @param {Object} layer Raw layer.
|
||||||
* @param {number} i Index of the feature in the raw layer's `features` array.
|
* @param {number} i Index of the feature in the raw layer's `features` array.
|
||||||
* @return {Object} Raw feature.
|
* @return {Object} Raw feature.
|
||||||
|
|||||||
Reference in New Issue
Block a user