Merge pull request #4518 from ahocevar/osm-vector-tiles

Add support for OSM vector tiles
This commit is contained in:
Andreas Hocevar
2015-12-08 11:01:49 +01:00
10 changed files with 229 additions and 17 deletions

View File

@@ -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);