What is required to replace the default base maps in TerriaMap? #5068
-
What is required to replace the default base maps in TerriaMap? - i.e. different sources, thumbnails, etc. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @lstillwe Yes, you can do this in TerriaMap. I copied the whole Then edit
I think this is the recommended approach. Someone else will tell us if there is a better way. Good luck. |
Beta Was this translation helpful? Give feedback.
Hi @lstillwe
Yes, you can do this in TerriaMap.
I copied the whole
createGlobalViewModels.js
from TerriaJS into my TerriaMap forklib/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 TerriaJSvar 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.