Merge pull request #4518 from ahocevar/osm-vector-tiles
Add support for OSM vector tiles
This commit is contained in:
@@ -56,7 +56,7 @@ ol.source.VectorTile = function(options) {
|
||||
/**
|
||||
* @protected
|
||||
* @type {function(new: ol.VectorTile, ol.TileCoord, ol.TileState, string,
|
||||
* ol.format.Feature, ol.TileLoadFunctionType)}
|
||||
* ol.format.Feature, ol.TileLoadFunctionType, ol.proj.Projection)}
|
||||
*/
|
||||
this.tileClass = options.tileClass ? options.tileClass : ol.VectorTile;
|
||||
|
||||
@@ -83,8 +83,7 @@ ol.source.VectorTile.prototype.getTile =
|
||||
tileCoord,
|
||||
tileUrl !== undefined ? ol.TileState.IDLE : ol.TileState.EMPTY,
|
||||
tileUrl !== undefined ? tileUrl : '',
|
||||
this.format_,
|
||||
this.tileLoadFunction);
|
||||
this.format_, this.tileLoadFunction, projection);
|
||||
goog.events.listen(tile, goog.events.EventType.CHANGE,
|
||||
this.handleTileChange, false, this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user