编辑kibana-4.3.1-linux-x64/src/ui/public/vislib/visualizations/_map.js
添加highlight行,注释原来的内容
url: 'http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',


更改后发现打开map中吹出现空白,如下图

需要点放大+号,才会出现地图。
查看elasticsearch.cn高手们发现如下内容:
白板是地图的默认值mapZoom=2
if (self._attr.lastZoom) {mapZoom = self._attr.lastZoom;}修改为if (self._attr.lastZoom) {mapZoom = self._attr.lastZoom;} else {mapZoom = 5;}
修改默认显示中国
if (self._attr.lastCenter) {
mapCenter = self._attr.lastCenter;
}
修改为
if (self._attr.lastCenter) {
mapCenter = self._attr.lastCenter;
} else {
mapCenter = {lat: 32.97180377635759, lng: 108.28125};
}
修改以下文件:kibana-4.5.0-linux-x64/src/ui/public/vislib/visualizations/_map.js
defaultMapZoom = 2 改为5
本文介绍如何在Kibana 4.3.1和4.5.0版本中配置地图视图,包括修改地图源URL、调整默认缩放级别及地图中心位置等操作步骤。通过这些设置可以优化地图加载速度并改善用户体验。
6598

被折叠的 条评论
为什么被折叠?



