修改index.js文件

#cat kibana-4.0.2-linux-x64/src/public/index.js


/*          var tileLayer = L.tileLayer('https://otile{s}-s.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg', {
            attribution: 'Tiles by <a href="http://www.mapquest.com/">MapQuest</a> &mdash; ' +
              'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
              '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
            subdomains: '1234'
          });
*/


将以上内容注释,并添加以下内容:


/*
 gaode map
*/
             attribution: 'Tiles by <a href="http://www.mapquest.com/">MapQuest</a> — ' +
              'Map data ? <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
              '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
              subdomains:["1","2","3","4"],
              variants: {
                Satellite:{
                    url: 'http://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}'
                    }
                }
            });


高德地图效果