From e0de0ed5fdc3857da1e8e530cf44e3243a7bdd22 Mon Sep 17 00:00:00 2001 From: Jonathan Beezley Date: Thu, 18 Feb 2016 11:16:12 -0500 Subject: [PATCH] Use relative urls to data files in examples for github.io --- examples/quads/main.js | 16 ++++++++-------- examples/reprojection/index.jade | 2 +- examples/tiles/index.jade | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/quads/main.js b/examples/quads/main.js index 5951520084..bd894b59b6 100644 --- a/examples/quads/main.js +++ b/examples/quads/main.js @@ -21,7 +21,7 @@ $(function () { .data([{ ll: {x: -108, y: 29}, ur: {x: -88, y: 49}, - image: '/data/tilefancy.png' + image: '../../data/tilefancy.png' }, { ll: {x: -88, y: 29}, ur: {x: -58, y: 49}, @@ -46,25 +46,25 @@ $(function () { lr: {x: -33, y: 9}, ur: {x: -68, y: 9}, ul: {x: -58, y: 29}, - image: '/data/tilefancy.png' + image: '../../data/tilefancy.png' }, { ll: {x: -128, y: 29}, ur: {x: -108, y: 49}, - image: '/data/nosuchimage.png' + image: '../../data/nosuchimage.png' }, { ul: {x: -128, y: 29}, ur: {x: -108, y: 29}, ll: {x: -123, y: 9}, lr: {x: -98, y: 9}, previewImage: null, - image: '/data/nosuchimage.png' + image: '../../data/nosuchimage.png' }, { ul: {x: -148, y: 29}, ur: {x: -128, y: 29}, ll: {x: -148, y: 9}, lr: {x: -123, y: 9}, previewImage: previewImage, - image: '/data/nosuchimage.png' + image: '../../data/nosuchimage.png' }, { ll: {x: -138, y: 29}, ur: {x: -128, y: 39}, @@ -90,13 +90,13 @@ $(function () { lr: {x: -88, y: 49}, ur: {x: -108, y: 59}, ul: {x: -88, y: 59}, - image: '/data/tilefancy.png' + image: '../../data/tilefancy.png' }, { ll: {x: -88, y: 49}, ur: {x: -68, y: 49}, ul: {x: -88, y: 59}, lr: {x: -68, y: 59}, - image: '/data/tilefancy.png' + image: '../../data/tilefancy.png' */ }]) .style({ @@ -140,5 +140,5 @@ $(function () { quadDebug.quads = quads; }; - previewImage.src = '/data/grid.jpg'; + previewImage.src = '../../data/grid.jpg'; }); diff --git a/examples/reprojection/index.jade b/examples/reprojection/index.jade index a9bf3f62c7..c361320818 100644 --- a/examples/reprojection/index.jade +++ b/examples/reprojection/index.jade @@ -7,7 +7,7 @@ block append mainContent select#layer-url.layerparam(param-name="url", list="url-list", placeholder="http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png") option(value="http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png", credit='Tiles Courtesy of MapQuest') MapQuest option(value="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", credit="© OpenStreetMap contributors") OpenStreetMap - option(value="/data/tilefancy.png", credit="") Fancy Test Tile + option(value="../../data/tilefancy.png", credit="") Fancy Test Tile option(value="http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png", credit='Tiles Courtesy of MapQuest') MapQuest Satellite option(value="http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png", credit='Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.') Toner Lite .form-group(title="Web maps are most often rendered using a Mercator geographic coordinate system, but other projections can be used. See spatialreference.org for more information on projections.") diff --git a/examples/tiles/index.jade b/examples/tiles/index.jade index ec0d6fcff1..6e564a9958 100644 --- a/examples/tiles/index.jade +++ b/examples/tiles/index.jade @@ -52,7 +52,7 @@ block append mainContent datalist#url-list option(value="http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png", credit='Tiles Courtesy of MapQuest') MapQuest option(value="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", credit="© OpenStreetMap contributors") OSM - option(value="/data/tilefancy.png", credit="") Fancy Test Tile + option(value="../../data/tilefancy.png", credit="") Fancy Test Tile option(value="http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png", credit='Tiles Courtesy of MapQuest') MapQuest Satellite option(value="http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png", credit='Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.') Toner Lite .form-group(title="The subdomains used to fetch tiles. This can be a comma-separated list or a string of single-letter subdomains.")