Skip to content

Adopt to alternative WMTS sources #1639

Answered by gchoqueux
civilizemars asked this question in Q&A
Discussion options

You must be logged in to vote

The api_key url param isn't necessary. This source isn't WTMSSource, use TMSSource instead of.

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:

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gchoqueux
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #1607 on April 20, 2021 08:35.