rename geoTile -> tiler

This commit is contained in:
Bryan Housel
2018-07-21 21:27:44 -04:00
parent 292347b28a
commit cd3d576276
4 changed files with 8 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ import { svgDefs } from '../svg';
import { utilDetect } from '../util/detect';
import { utilQsString, utilRebind, utilTiler } from '../util';
var geoTile = utilTiler().skipNullIsland(true);
var tiler = utilTiler().skipNullIsland(true);
var apibase = 'https://a.mapillary.com/v3/';
var viewercss = 'mapillary-js/mapillary.min.css';
@@ -58,7 +58,7 @@ function loadTiles(which, url, projection) {
var currZoom = Math.floor(Math.max(Math.log(s) / Math.log(2) - 8, 0));
var dimension = projection.clipExtent()[1];
var tiles = geoTile.getTiles(projection, dimension, tileZoom);
var tiles = tiler.getTiles(projection, dimension, tileZoom);
// abort inflight requests that are no longer needed
var cache = _mlyCache[which];

View File

@@ -32,7 +32,7 @@ import {
utilSetTransform
} from '../util';
var geoTile = utilTiler().skipNullIsland(true);
var tiler = utilTiler().skipNullIsland(true);
var apibase = 'https://openstreetcam.org';
var maxResults = 1000;
@@ -67,7 +67,7 @@ function loadTiles(which, url, projection) {
var currZoom = Math.floor(Math.max(Math.log(s) / Math.log(2) - 8, 0));
var dimension = projection.clipExtent()[1];
var tiles = geoTile.getTiles(projection, dimension, tileZoom);
var tiles = tiler.getTiles(projection, dimension, tileZoom);
// abort inflight requests that are no longer needed
var cache = _oscCache[which];

View File

@@ -33,7 +33,7 @@ import {
utilQsString
} from '../util';
var geoTile = utilTiler();
var tiler = utilTiler();
var dispatch = d3_dispatch('authLoading', 'authDone', 'change', 'loading', 'loaded', 'loadedNotes');
var urlroot = 'https://www.openstreetmap.org';
@@ -778,7 +778,7 @@ export default {
}
// determine the needed tiles to cover the view
var tiles = geoTile.getTiles(projection, dimensions, tilezoom);
var tiles = tiler.getTiles(projection, dimensions, tilezoom);
// abort inflight requests that are no longer needed
var hadRequests = !_isEmpty(cache.inflight);

View File

@@ -33,7 +33,7 @@ import { utilQsString, utilRebind, utilTiler } from '../util';
import Q from 'q';
var geoTile = utilTiler().skipNullIsland(true);
var tiler = utilTiler().skipNullIsland(true);
var bubbleApi = 'https://dev.virtualearth.net/mapcontrol/HumanScaleServices/GetBubbles.ashx?';
var streetsideImagesApi = 'https://t.ssl.ak.tiles.virtualearth.net/tiles/';
@@ -84,7 +84,7 @@ function loadTiles(which, url, projection, margin) {
var currZoom = Math.floor(Math.max(Math.log(s) / Math.log(2) - 8, 0));
var dimension = projection.clipExtent()[1];
var tiles = geoTile
var tiles = tiler
.margin(margin)
.getTiles(projection, dimension, tileZoom);