maps

ELK之7版本Elastic Maps功能介绍

百般思念 提交于 2019-12-01 16:18:06
  Elasticsearch 7.0 中还引入了一个新的聚合来处理地理地图图块,允许用户在地图上放大和缩小,而不会改变结果数据的形状,实现更加平滑地缩放 Elastic Maps;使用纳秒精度存储时序数据的时间戳,允许具有高频数据采集需求的用户可以更加精确地存储和排序他们的数据   详情查看发布公告    https://www.elastic.co/cn/blog/elastic-stack-7-0-0-released   一,系统环境查看及软件版本选择   系统环境查看   软件版本选择 elasticsearch-7.4.0-x86_64.rpm filebeat-7.4.0-x86_64.rpm kibana-7.4.0-x86_64.rpm logstash-7.4.0.rpm metricbeat-7.4.0-x86_64.rpm jdk 1.8.0_171   二,安装配置   安装jdk环境不详述   官方网站下载对应软件包   安装elasticsearch rpm -ivh elasticsearch-7.4.0-x86_64.rpm   修改配置文件 /etc/elasticsearch/elasticsearch.yml   配置如下 cluster.name: myes node.name: node-1 path.data: /var/lib

MarkerWithLabel stopped working correctly

懵懂的女人 提交于 2019-12-01 15:53:17
问题 All of a sudden yesterday 3/4/2014 my MarkerWithLabel (Google map API application) is only showing the last marker but the labels all show up. It had been working just fine. The Google Example at: https://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.0.1/examples/basic.html is not working at all and I based my code on this example that used to work just fine. In link below I placed 2 markers with labels on a map. Only marker 2 displays while both labels display.

Deep copying maps in Golang

随声附和 提交于 2019-12-01 13:56:12
From what I understand, maps are reference types in Go. So assignment will do shallow copy. I plan to do a recursive deep copy of Maps in golang. Recursive because I am dealing with a map that holds the unmarshalled contents of a JSON. func deepCopyJSON(src map[string]interface{}, dest *map[string]interface{}) error { if src == nil || dest == nil { return errors.New("src/dest is nil. You cannot insert to a nil map") } for key, value := range src { if reflect.TypeOf(value).String() != jsonType { (*dest)[key] = value } else { (*dest)[key] = make(map[string]int) //Suspect code below causes the

Xamarin Forms Custom Map Pin

怎甘沉沦 提交于 2019-12-01 13:47:39
In one of the apps I'm working on I require the use of custom map pins and I've followed the guide on Xamarin https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/custom-renderer/map/customized-pin/ as well as borrowed their sample code to try and make my own example. It works to a degree in such that the info window is actually updated to the custom layout but the map pin never changes. My CustomMapRenderer: using System; using System.Collections.Generic; using System.ComponentModel; using Android.Content; using Android.Gms.Maps; using Android.Gms.Maps.Model; using

Xamarin Forms Custom Map Pin

狂风中的少年 提交于 2019-12-01 13:07:19
问题 In one of the apps I'm working on I require the use of custom map pins and I've followed the guide on Xamarin https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/custom-renderer/map/customized-pin/ as well as borrowed their sample code to try and make my own example. It works to a degree in such that the info window is actually updated to the custom layout but the map pin never changes. My CustomMapRenderer: using System; using System.Collections.Generic; using System

iOS open link with maps apps

大憨熊 提交于 2019-12-01 13:06:19
问题 I'm working on an event app and I'm trying to add a "Get directions" button that opens up directions in either Apple Maps or Google Maps. I'm happy to use Apple maps for now because it's easy to embed with http://maps.apple.com/?q=XYZ() . My app is displaying an HTML website with a UIWebView , so this may be the problem, but when you press the link it actually opens within the UIWebView and displays Google Maps randomly but accurately. Is there a function I can put into my HTML code that

Deep copying maps in Golang

余生颓废 提交于 2019-12-01 12:48:11
问题 From what I understand, maps are reference types in Go. So assignment will do shallow copy. I plan to do a recursive deep copy of Maps in golang. Recursive because I am dealing with a map that holds the unmarshalled contents of a JSON. func deepCopyJSON(src map[string]interface{}, dest *map[string]interface{}) error { if src == nil || dest == nil { return errors.New("src/dest is nil. You cannot insert to a nil map") } for key, value := range src { if reflect.TypeOf(value).String() != jsonType

How to display Loading Icon while rendering Markers on the MAP

蹲街弑〆低调 提交于 2019-12-01 12:43:26
Rightnow i'm developing an application where i have to display huge number of markers on the map roughly (30K to 50K).right now while rendering the map it is taking time to render whole points so i would like to add an loading gif icon while Navteq Map renders the pointsso that user will be aware of that map is rendering the points. I'm using latest Nokia(Here)- Maps API version 2.5.3 . i have tried with transitionstart and transistionend events but it is not showing my GIF icon but if i only handle the tranisionstart event then the ICON willbe shown.but if i handle both events it would

Google Maps: Given the Lat Long coordinates

Deadly 提交于 2019-12-01 12:06:57
I have the the following Lat Long coordinates (in a JS array), how can we draw the Google Map with markers on these coordinates. Please give a simple example, as the examples in the API documentation do not really give a conclusive answer or are too complex for me. 43.82846160000000000000, -79.53560419999997000000 43.65162010000000000000, -79.73558579999997000000 43.75846240000000000000, -79.22252100000003000000 43.71773540000000000000, -79.74897190000002000000 Thanks in advance. You may try this var map, locations = [ [43.82846160000000000000, -79.53560419999997000000], [43

MarkerClusterer not working only in webkit (Chrome and Safari), fine in Firefox?

我的未来我决定 提交于 2019-12-01 12:03:17
问题 This is driving me mental. I'm using MarkerCluster with google maps v3, and it works fine in FF, however when I (and the client) kick it up in Chrome or Safari the clusters arn't there. No errors, just not working in webkit. A few notes: it's coming from some ajax-loaded json and it's in jquery. This is the function taking care of the adding: add_clusters: function() { markers = []; $.each( interpreters, function ( i, interpreter ){ //maps.add_postcode_marker(i, 'interpreter'); var latLng =