Add support for MapTiler key configuration and Cesium resource ID#444
Open
Troyhy wants to merge 2 commits intoArduPilot:masterfrom
Open
Add support for MapTiler key configuration and Cesium resource ID#444Troyhy wants to merge 2 commits intoArduPilot:masterfrom
Troyhy wants to merge 2 commits intoArduPilot:masterfrom
Conversation
Integrated MapTiler API key into the application, replacing the hardcoded key with a dynamic environment variable. Updated relevant code, documentation, and configuration files to support this change, ensuring flexibility for different environments.
Open
Replaced hardcoded Cesium asset ID with a dynamic value sourced from an environment variable. Updated relevant code and configuration files to enhance flexibility across environments.
Author
|
Motivation for this was to get map tiles to work with local development version of UAVLogViewer. Initially I thought that it is needed to have cesium account and some other platform to get map tiles, but noticed that my cesion ion account resource number did not match the viewer. So that's why I initially added the MapTiler account key and then realised that it is not needed. Cesium ion can provide basic map tiles also. So here are both now configurable with env variables. |
Author
Williangalvani
requested changes
Aug 5, 2025
Collaborator
Williangalvani
left a comment
There was a problem hiding this comment.
looks good overall. just a minor type and I'm not sure where that key came from
| VUE_APP_CESIUM_TOKEN: JSON.stringify(process.env.VUE_APP_CESIUM_TOKEN || '') | ||
| VUE_APP_CESIUM_TOKEN: JSON.stringify(process.env.VUE_APP_CESIUM_TOKEN || ''), | ||
| VUE_APP_CESIUM_RESOURCE_ID: JSON.stringify(process.env.VUE_APP_CESIUM_RESOUR_ID || 3), | ||
| VUE_APP_MAPTILER_KEY: JSON.stringify(process.env.VUE_APP_MAPTILER_KEY || 'o3JREHNnXex8WSPPm2BU') |
| NODE_ENV: '"production"', | ||
| VUE_APP_CESIUM_TOKEN: JSON.stringify(process.env.VUE_APP_CESIUM_TOKEN || '') | ||
| VUE_APP_CESIUM_TOKEN: JSON.stringify(process.env.VUE_APP_CESIUM_TOKEN || ''), | ||
| VUE_APP_CESIUM_RESOURCE_ID: JSON.stringify(process.env.VUE_APP_CESIUM_RESOUR_ID || 3), |
Collaborator
There was a problem hiding this comment.
Suggested change
| VUE_APP_CESIUM_RESOURCE_ID: JSON.stringify(process.env.VUE_APP_CESIUM_RESOUR_ID || 3), | |
| VUE_APP_CESIUM_RESOURCE_ID: JSON.stringify(process.env.VUE_APP_CESIUM_RESOURCE_ID || 3), |
Collaborator
Williangalvani
left a comment
There was a problem hiding this comment.
This change means we'll have bing maps as the default provider, right?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Integrated MapTiler API key into the application, replacing the hardcoded key with a dynamic environment variable. Updated relevant code, documentation, and configuration files to support this change, ensuring flexibility for different environments.