Skip to content

What is required to replace the default base maps in TerriaMap? #5068

Answered by hardreddata
lstillwe asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lstillwe

Yes, you can do this in TerriaMap.

I copied the whole createGlobalViewModels.js from TerriaJS into my TerriaMap fork lib/ViewModels and modified it by adding a new map.

Then edit index.js such that you use your modified copy rather than the one from TerriaJS

var createGlobalBaseMapOptions = require('./lib/ViewModels/createGlobalBaseMapOptions');

I think this is the recommended approach. Someone else will tell us if there is a better way.

Good luck.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KeyboardSounds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants