Skip to content

Commit

Permalink
Merge pull request #538 from OpenGeoscience/example-relative-urls
Browse files Browse the repository at this point in the history
Use relative urls to data files in examples for github.io
  • Loading branch information
jbeezley committed Feb 18, 2016
2 parents aff634e + 19e1f82 commit 841fb44
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions examples/quads/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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},
Expand All @@ -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({
Expand Down Expand Up @@ -140,5 +140,5 @@ $(function () {
quadDebug.quads = quads;
};

previewImage.src = '/data/grid.jpg';
previewImage.src = '../../data/grid.jpg';
});
2 changes: 1 addition & 1 deletion examples/reprojection/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="http://www.mapquest.com/">MapQuest</a>') 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 <a href="http://www.mapquest.com/">MapQuest</a>') MapQuest Satellite
option(value="http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png", credit='Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.') 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.")
Expand Down
2 changes: 1 addition & 1 deletion examples/tiles/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="http://www.mapquest.com/">MapQuest</a>') 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 <a href="http://www.mapquest.com/">MapQuest</a>') MapQuest Satellite
option(value="http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png", credit='Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.') 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.")
Expand Down

0 comments on commit 841fb44

Please sign in to comment.