Skip to content

你们的深色系能用吗 #2197

Closed Answered by bzk1994
lllianreg asked this question in Q&A
Dec 20, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

已解决,设置深色无效大概率是高德的 key-token没设置好

window._AMapSecurityConfig = {
    securityJsCode: '高德密钥'
  };

  const scene = new Scene({
    id: 'map',
    map: new GaodeMap({
      style: 'dark',
      center: [84.288144, 31.239692],
      zoom: 3.4,
      token: '高德Key'
    })
  });

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bzk1994
Comment options

Answer selected by lzxue
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