Make sure compiled code calls ol.VectorTile#setProjection
This commit is contained in:
@@ -108,7 +108,7 @@ ol.featureloader.loadFeaturesXhr = function(url, format, success, failure) {
|
|||||||
var dataUnits = format.readProjection(source).getUnits();
|
var dataUnits = format.readProjection(source).getUnits();
|
||||||
if (dataUnits === ol.proj.Units.TILE_PIXELS) {
|
if (dataUnits === ol.proj.Units.TILE_PIXELS) {
|
||||||
projection = new ol.proj.Projection({
|
projection = new ol.proj.Projection({
|
||||||
code: projection.getCode(),
|
code: this.getProjection().getCode(),
|
||||||
units: dataUnits
|
units: dataUnits
|
||||||
});
|
});
|
||||||
this.setProjection(projection);
|
this.setProjection(projection);
|
||||||
|
|||||||
Reference in New Issue
Block a user