From 584d4f67bda150da4bb24ec9946542bf62e8c4a6 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 2 May 2017 09:56:34 -0600 Subject: [PATCH] Uppercase for PBF constructor --- package.json | 1 + src/ol/format/mvt.js | 4 ++-- test/spec/ol/format/mvt.test.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 27037217cb..3f6e9199e0 100644 --- a/package.json +++ b/package.json @@ -106,6 +106,7 @@ }, { "module": "pbf", + "name": "PBF", "browserify": true }, { diff --git a/src/ol/format/mvt.js b/src/ol/format/mvt.js index 5b83304ab8..ca0a7c4f2b 100644 --- a/src/ol/format/mvt.js +++ b/src/ol/format/mvt.js @@ -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_; diff --git a/test/spec/ol/format/mvt.test.js b/test/spec/ol/format/mvt.test.js index 978d959c05..8277dbbf50 100644 --- a/test/spec/ol/format/mvt.test.js +++ b/test/spec/ol/format/mvt.test.js @@ -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;