Skip to content

Commit

Permalink
fix(potree2): Fix sample data url
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin ETOURNEAU authored and jailln committed Jul 4, 2024
1 parent 19c0e65 commit d5ee112
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/potree2_25d_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
potreeLayer = new itowns.Potree2Layer('Lion', {
source: new itowns.Potree2Source({
file: 'metadata.json',
url: 'https://blocinbloc-public-test.s3.fr-par.scw.cloud/lion-potree2',
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/pointclouds/potree2.0/lion',
crs: view.referenceCrs,
}),
});
Expand Down
2 changes: 1 addition & 1 deletion test/unit/potree2.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Potree2', function () {
potreeLayer = new Potree2Layer('lion', {
source: new Potree2Source({
file: 'metadata.json',
url: 'https://blocinbloc-public-test.s3.fr-par.scw.cloud/lion-potree2',
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/pointclouds/potree2.0/lion',
networkOptions: process.env.HTTPS_PROXY ? { agent: new HttpsProxyAgent(process.env.HTTPS_PROXY) } : {},
}),
onPointsCreated: () => {},
Expand Down
8 changes: 4 additions & 4 deletions test/unit/potree2layerparsing.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Potree2 Provider', function () {
const layers = [];
let source = new Potree2Source({
file: 'metadata.json',
url: 'https://blocinbloc-public-test.s3.fr-par.scw.cloud/lion-potree2',
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/pointclouds/potree2.0/lion',
networkOptions: process.env.HTTPS_PROXY ? { agent: new HttpsProxyAgent(process.env.HTTPS_PROXY) } : {},
metadata,
});
Expand All @@ -63,7 +63,7 @@ describe('Potree2 Provider', function () {
// // // normals as vector
source = new Potree2Source({
file: 'metadata.json',
url: 'https://blocinbloc-public-test.s3.fr-par.scw.cloud/lion-potree2',
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/pointclouds/potree2.0/lion',
networkOptions: process.env.HTTPS_PROXY ? { agent: new HttpsProxyAgent(process.env.HTTPS_PROXY) } : {},
metadata: {
version: '2.0',
Expand Down Expand Up @@ -130,7 +130,7 @@ describe('Potree2 Provider', function () {
// // spheremapped normals
source = new Potree2Source({
file: 'metadata.json',
url: 'https://blocinbloc-public-test.s3.fr-par.scw.cloud/lion-potree2',
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/pointclouds/potree2.0/lion',
networkOptions: process.env.HTTPS_PROXY ? { agent: new HttpsProxyAgent(process.env.HTTPS_PROXY) } : {},
metadata: {
version: '2.0',
Expand Down Expand Up @@ -197,7 +197,7 @@ describe('Potree2 Provider', function () {
// // oct16 normals
source = new Potree2Source({
file: 'metadata.json',
url: 'https://blocinbloc-public-test.s3.fr-par.scw.cloud/lion-potree2',
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/pointclouds/potree2.0/lion',
networkOptions: process.env.HTTPS_PROXY ? { agent: new HttpsProxyAgent(process.env.HTTPS_PROXY) } : {},
metadata: {
version: '2.0',
Expand Down

0 comments on commit d5ee112

Please sign in to comment.