mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
rename geoTile -> tiler
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user