Remove bundling magic for Mapbox styles script

This commit is contained in:
Andreas Hocevar
2017-08-20 09:26:37 -04:00
parent 98b863604b
commit 2ef5f99599
4 changed files with 16 additions and 20 deletions

View File

@@ -1,4 +1,3 @@
/* eslint-disable openlayers-internal/no-unused-requires */
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.format.MVT');
@@ -46,7 +45,7 @@ var map = new ol.Map({
}),
tileUrlFunction: tileUrlFunction
}),
style: createMapboxStreetsV6Style()
style: createMapboxStreetsV6Style(ol.style.Style, ol.style.Fill, ol.style.Stroke, ol.style.Icon, ol.style.Text)
})
],
target: 'map',
@@ -56,6 +55,3 @@ var map = new ol.Map({
zoom: 2
})
});
// ol.style.Fill, ol.style.Icon, ol.style.Stroke, ol.style.Style and
// ol.style.Text are required for createMapboxStreetsV6Style()