current position:Home>Baidu map JavaScript API, the earth mode is always similar to the "night mode", solve!

Baidu map JavaScript API, the earth mode is always similar to the "night mode", solve!

2022-06-24 09:02:29CSDN Q & A

Baidu Maps java script api, Why call the earth map , There is always this kind of nighttime pattern ? Don't want this , solve , Why? ! I hope the great God can answer my doubts ,

```javascript<!DOCTYPE html> <html><head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Baidu Maps </title> <style type="text/css"> html{ 
    height:100%} body{ 
    height:100%;margin:0px;padding:0px} #container{ 
    height:100%} </style> <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&type=webgl&ak= Your key "></script></head>  <body> <div id="container"></div><script type="text/javascript">var map = new BMapGL.Map("container"); map.centerAndZoom(point, 15); var scaleCtrl = new BMapGL.ScaleControl(); map.addControl(scaleCtrl);map.addControl(new BMapGL.MapTypeControl({ 
    mapTypes:[BMAP_NORMAL_MAP,BMAP_EARTH_MAP]}));</script> </body> </html>

img

```

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/175/202206171620074287.html

Random recommended