Skip to content

Commit

Permalink
prepare for source-available
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie committed Jun 19, 2024
1 parent 9bed29d commit 40f30e5
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 32 deletions.
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MapTiler JS Module

Copyright © 2024 MapTiler AG. All rights reserved.

The software and files (collectively “Software”) in this repository are licensed for use only with MapTiler service(s).

For the license terms, please reference MapTiler JavaScript Module Terms and Conditions and Privacy policy.

This license allows users with an active MapTiler account to modify and integrate authorized portions of the Software for use with the relevant MapTiler service(s) in accordance with the MapTiler Terms. This license terminates automatically if a user no longer maintains a MapTiler account or their usage breaches MapTiler Terms.
2 changes: 0 additions & 2 deletions demos/auto-activate2.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@

// Waiting for the map to be ready
map.on("load", (e) => {
console.log(">>>>>> user agent", navigator.userAgent);


const qrCodeOptions = isMobile ? {} : {
logo: generateQRCode(generateQRCode()),
Expand Down
23 changes: 12 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maptiler/ar-control",
"version": "2.1.0",
"version": "2.1.1",
"description": "AR Control for MapTiler SDK",
"type": "module",
"homepage": "https://docs.maptiler.com/sdk-js/modules/ar/",
Expand Down Expand Up @@ -37,29 +37,29 @@
"type": "git",
"url": "git+https://github.com/maptiler/maptiler-ar-control.git"
},
"license": "",
"license": "See LICENSE.md",
"devDependencies": {
"@types/events": "^3.0.0",
"@types/node": "^20.4.5",
"@types/three": "^0.163.0",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@typescript-eslint/typescript-estree": "^7.0.2",
"eslint": "^8.44.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.28.0",
"prettier": "^2.8.8",
"typescript": "^5.0.4",
"vite": "^4.4.8",
"vite-plugin-dts": "^3.4.0",
"@typescript-eslint/typescript-estree": "^7.0.2",
"@types/events": "^3.0.0"
"vite-plugin-dts": "^3.4.0"
},
"dependencies": {
"@google/model-viewer": "^3.5.0",
"@maptiler/sdk": "^2.0.3",
"events": "^3.3.0",
"three": "^0.163.0",
"@capacitor-community/file-opener": "^1.0.5",
"@capacitor/core": "^5.7.1",
"@capacitor/filesystem": "^5.2.1"
"@capacitor/filesystem": "^5.2.1",
"@google/model-viewer": "^3.5.0",
"@maptiler/sdk": "^2.1.0",
"events": "^3.3.0",
"three": "^0.163.0"
}
}
10 changes: 1 addition & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,4 @@ npm install @capacitor/core @capacitor/filesystem @capacitor-community/file-open
```

# License
MapTiler AR Control

Copyright © 2023 MapTiler AG. All rights reserved.

The software and files (collectively “Software”) in this repository are licensed for use only with MapTiler service(s).

For the license terms, please reference [MapTiler General Terms and Conditions](https://www.maptiler.com/terms/) which incorporate MapTiler AR Control Product [Terms (collectively “Terms”) and Privacy Policy at Privacy policy](https://www.maptiler.com/privacy-policy).

This license allows users with an active MapTiler account to modify and integrate authorized portions of the Software for use with the relevant MapTiler service(s) in accordance with the MapTiler Terms. This license terminates automatically if a user no longer maintains a MapTiler account or their usage breaches MapTiler Terms.
See [LICENSE.md](LICENSE.md)
12 changes: 12 additions & 0 deletions src/MaptilerARControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,9 @@ export class MaptilerARControl extends EventEmitter implements IControl {
}
}

// Export warning!
// This function should not be used.
// Saving model and self-hosting is illegal and against MapTiler Terms https://www.maptiler.com/terms/
downloadGLTF(binary = false) {
this.threeTileContainerGLTF.updateMatrix();
this.threeTileContainerGLTF.updateMatrixWorld();
Expand Down Expand Up @@ -1059,6 +1062,9 @@ export class MaptilerARControl extends EventEmitter implements IControl {
);
}

// Export warning!
// This function should not be used.
// Saving model and self-hosting is illegal and against MapTiler Terms https://www.maptiler.com/terms/
async downloadUSDZ() {
this.threeTileContainerUSDZ.updateMatrix();
this.threeTileContainerUSDZ.updateMatrixWorld();
Expand All @@ -1072,6 +1078,9 @@ export class MaptilerARControl extends EventEmitter implements IControl {
link.click();
}

// Export warning!
// This function should not be used.
// Saving model and self-hosting is illegal and against MapTiler Terms https://www.maptiler.com/terms/
private async getModelBlobGLB(): Promise<Blob> {
return new Promise((resolve, reject) => {
this.gltfExporter.parse(
Expand Down Expand Up @@ -1100,6 +1109,9 @@ export class MaptilerARControl extends EventEmitter implements IControl {
});
}

// Export warning!
// This function should not be used.
// Saving model and self-hosting is illegal and against MapTiler Terms https://www.maptiler.com/terms/
private async getModelBlobUSDZ(): Promise<Blob> {
const exporter = new USDZExporter();
const arraybuffer = await exporter.parse(this.threeSceneUSDZ, {
Expand Down

0 comments on commit 40f30e5

Please sign in to comment.