Adopt to alternative WMTS sources #1639
-
ContextThe So I wanted to test alternative WMTS sources, specifially Mars maps from NASA: My question is, how I could adopt itowns to work with the
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The var marsSource = new itowns.TMSSource({
// crs: 'EPSG:104905',
crs: 'EPSG:4326',
url : 'https://api.nasa.gov/mars-wmts/catalog/Mars_Viking_MDIM21_ClrMosaic_global_232m/1.0.0//default/default028mm/${z}/${y}/${x}.jpg' });
var marsLayer = new itowns.ColorLayer('wms_imagery', {
source: marsSource,
});
view.addLayer(marsLayer); With other Atmosphere parameter: |
Beta Was this translation helpful? Give feedback.
-
I add a this mars example in this PR #1610 |
Beta Was this translation helpful? Give feedback.
-
Mars example added! |
Beta Was this translation helpful? Give feedback.
The
api_key
url param isn't necessary. This source isn'tWTMSSource
, useTMSSource
instead of.With other Atmosphere parameter: