Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CesiumION Geocoder by default #653

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

### The Next Release

- [The next improvement]
- Updated TerriaJS to `8.3.8`.
- Default geocoder changed to CesiumIon

### `0.0.8`

Expand Down
13 changes: 9 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import Terria from "terriajs/lib/Models/Terria";
import updateApplicationOnHashChange from "terriajs/lib/ViewModels/updateApplicationOnHashChange";
import updateApplicationOnMessageFromParentWindow from "terriajs/lib/ViewModels/updateApplicationOnMessageFromParentWindow";
import ViewState from "terriajs/lib/ReactViewModels/ViewState";
import BingMapsSearchProviderViewModel from "terriajs/lib/Models/SearchProviders/BingMapsSearchProvider";
// import BingMapsSearchProviderViewModel from "terriajs/lib/Models/SearchProviders/BingMapsSearchProvider";
import CesiumIonSearchProviderViewModel from "terriajs/lib/Models/SearchProviders/CesiumIonSearchProvider";
// import GazetteerSearchProviderViewModel from 'terriajs/lib/ViewModels/GazetteerSearchProviderViewModel.js';
// import GnafSearchProviderViewModel from 'terriajs/lib/ViewModels/GnafSearchProviderViewModel.js';
// import defined from 'terriajs-cesium/Source/Core/defined';
Expand Down Expand Up @@ -88,10 +89,14 @@ module.exports = terria

try {
viewState.searchState.locationSearchProviders = [
new BingMapsSearchProviderViewModel({
terria: terria,
key: terria.configParameters.bingMapsKey
new CesiumIonSearchProviderViewModel({
terria,
key: terria.configParameters.cesiumIonAccessToken
})
// new BingMapsSearchProviderViewModel({
// terria: terria,
// key: terria.configParameters.bingMapsKey
// })
// new GazetteerSearchProviderViewModel({terria}),
// new GnafSearchProviderViewModel({terria})
];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"semver": "^5.0.0",
"style-loader": "^0.23.1",
"svg-sprite-loader": "4.1.3",
"terriajs": "8.3.2",
"terriajs": "8.3.8",
"terriajs-cesium": "1.92.0-tile-error-provider-fix-2",
"ts-loader": "^5.3.3",
"typescript": "^4.9.5",
Expand Down
Loading
Loading