首页 > 学院 > 操作系统 > 正文

kibana uses openStreetMap and Gaode map with higher zoom level

2024-06-28 16:05:04
字体:
来源:转载
供稿:网友

Kibana map

Background

From July 11, 2016 Kibana was not allowed to use MapQuest anymore. But Kibana distributes their own map service named elastic tile map service. Unfortunately it limits the zoom level to only 8, disappointing a lot of kibana users. This post PRovides a solution for users to use a better map with higher zoom level.

What does the original elastic tile map service look like? 这里写图片描述 The zoom level of 8 could not make some users happy.

Solution

Current I have got two ways to make this done. The first is to use the openstreetmap, and the other way is to use Gaode Map (高德地图) . Kibana 使用高德地图,OpenStreetMap,提升地图放大级别,体验更精细的地图。

openStreetMap

Step 1, add the two lines to your kibana.yml

tilemap.options.maxZoom: 18tilemap.url: http://a.tile.openstreetmap.org/{z}/{x}/{y}.png

Step 2, restarts your kibana Now it provides a max zoom level of 18. Very cool! 这里写图片描述

Gaode Map 高德地图

Step 1, add the following two lines to your kibana.yml

tilemap.options.maxZoom: 18tilemap.url: 'http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}'

Step 2, restarts your kibana Now it looks like this. 这里写图片描述

It also looks good. Since Gaode is the product from a Chinese company, it provides a better experience for Chinese users.

Reference

https://github.com/elastic/kibana/issues/7742http://kaeff.net/posts/increasing-map-zoom-level-in-kibana.html

If you got any question, you are welcome to contact me via:

email: nisxiya@yeah.netwechat: nisxiya
上一篇:logstash 自定义正则

下一篇:管程

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表