How to visualize data on bettermap in Banana Solr Dashboard?

喜你入骨 提交于 2019-12-11 17:29:30

问题


I am trying to visualize a set of indexed data through Banana and it's bettermap panel.

Below is my indexed data for storing the lat long information:

{
        "user_lang":"en",
        "user_screenname":"Kashyep2",
        "latlonggis_0_coordinate":25.25,
        "latlonggis_1_coordinate":86.98,
        "latlonggis":"25.25,86.98",
        "longlatgis_0_coordinate":86.98,
        "longlatgis_1_coordinate":25.25,
        "longlatgis":"86.98,25.25",
        "timestamp":"2019-02-09T08:09:09.280Z",
        "_version_":1624977964309413888}
  }

I do not get any thing on the bettermap panel.

My question is whether the data format shown above to represent the lat long information is correct?


回答1:


In the banana sourcecode inside panels/bettermap/module.js the following changes had to be made.

//var sorting = '&sort=' + filterSrv.getTimeField() + ' desc'; // Only get the latest data, sorted by time field.

// Removed the sorting field from the final query
$scope.panel.queries.query = querySrv.getORquery() + wt_json + rows_limit + fq;

The filterSrv.getTimeField() is undefined for the query and hence the locations could not be displayed on the map.



来源:https://stackoverflow.com/questions/54604611/how-to-visualize-data-on-bettermap-in-banana-solr-dashboard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!