Uppercase for PBF constructor

This commit is contained in:
Tim Schaub
2017-05-02 09:56:34 -06:00
parent 642ed5f46e
commit 584d4f67bd
3 changed files with 5 additions and 4 deletions

View File

@@ -106,6 +106,7 @@
},
{
"module": "pbf",
"name": "PBF",
"browserify": true
},
{

View File

@@ -3,7 +3,7 @@
goog.provide('ol.format.MVT');
goog.require('ol');
goog.require('ol.ext.pbf');
goog.require('ol.ext.PBF');
goog.require('ol.ext.vectortile');
goog.require('ol.format.Feature');
goog.require('ol.format.FormatType');
@@ -149,7 +149,7 @@ ol.format.MVT.prototype.readRenderFeature_ = function(rawFeature, layer) {
ol.format.MVT.prototype.readFeatures = function(source, opt_options) {
var layers = this.layers_;
var pbf = new ol.ext.pbf(/** @type {ArrayBuffer} */ (source));
var pbf = new ol.ext.PBF(/** @type {ArrayBuffer} */ (source));
var tile = new ol.ext.vectortile.VectorTile(pbf);
var features = [];
var featureClass = this.featureClass_;

View File

@@ -1,7 +1,7 @@
goog.provide('ol.test.format.MVT');
goog.require('ol.Feature');
goog.require('ol.ext.pbf');
goog.require('ol.ext.PBF');
goog.require('ol.ext.vectortile');
goog.require('ol.format.MVT');
goog.require('ol.geom.Point');
@@ -40,7 +40,7 @@ where('ArrayBuffer.isView').describe('ol.format.MVT', function() {
featureClass: ol.Feature,
layers: ['poi_label']
});
var pbf = new ol.ext.pbf(data);
var pbf = new ol.ext.PBF(data);
var tile = new ol.ext.vectortile.VectorTile(pbf);
var geometry, rawGeometry;