Skip to content

tilelayer data from private GitHub repo using authorization token #5499

Answered by cornhundred
cornhundred asked this question in Q&A
Discussion options

You must be logged in to vote

I tried adding loadOptions to the TileLayet, but I am getting a 404 error on the GET request (from the console). Am I setting the loadOptions correctly?

  const moonLayer = new deck.TileLayer({
      pickable: autoHighlight,
      tileSize: dimensions.tileSize,
      autoHighlight,
      highlightColor: [60, 60, 60, 100],
      minZoom: -7,
      maxZoom: 0,
      coordinateSystem: deck.COORDINATE_SYSTEM.CARTESIAN,
      extent: [0, 0, dimensions.width, dimensions.height],,
      getTileData: ({x, y, z}) => {
        return loaders.load(`${ROOT_URL}/moon.image_files/${15 + z}/${x}_${y}.jpeg`);
      },
      onViewportLoad: getMetaData,
      renderSubLayers: renderSubLayers,
      loadOp…

Replies: 4 comments 21 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
21 replies
@cornhundred
Comment options

@Pessimistress
Comment options

@cornhundred
Comment options

@Pessimistress
Comment options

@cornhundred
Comment options

Answer selected by cornhundred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants