Tilemap not showing geohash coordinates

I'm in Kibana and ElasticSearch 5.3.0. I have a geojson of type polygon. First, I tried to map it as a geo_shape, but this threw an error on tilemap visualization in Kibana that there was no geo_point. I then tried to change the mapping to geo_point, which now gives me a Field to perform aggregation, but when I press play to run, the map disappears completely.

My mapping:

{
  index" : {
    "mappings" : {
      "my_type" : {
        "properties" : {
          "geometry" : {
            "properties" : {
              "coordinates" : {
                "type" : "float"
              },
              "coordinates[0][0]" : {
                "type" : "geo_point"
              },

My geoJson:

{
	"geometry": {
		"type": "Polygon",
		"coordinates": [
			[
				[115.76534464822194, 43.100528765960625],
				[115.70159757112356, 43.1315030055377],
				[115.5691744231615, 43.978972243845114],
				[115.63322290845105, 43.94825722049262],
				[115.76534464822194, 43.100528765960625]
			]
		]
	},

I don't think that you can show a polygon on a tilemap can you?

ie - this is not a supported use.

But if I put in as a geo_point, should I not be able to get some functionality?
I feel there should be some way to plot those points on a map.

Is there a way to query to see what coordinates[0][0] has in it? I have a feeling it has no values, which is why nothing is showing.

Have a look at it in Discover.

This is the mapping elasticsearch defaults to when I index my json:

{
  "indexname" : {
    "mappings" : {
      "my_type" : {
        "properties" : {
          "geometry" : {
            "properties" : {
              "coordinates" : {
                "type" : "float"
              },
              "type" : {
                "type" : "text",
                "fields" : {
                  "keyword" : {
                    "type" : "keyword",
                    "ignore_above" : 256
                  }
                }
              }
            }
          },

This is the attempt I just tried to fix the mapping (however, this approach does not take to any indexed data:

curl -XPUT "http://localhost:9200/indexname" -d "{\"mappings\" : {\"my_type\" : {\"properties\" : {\"geometry\" : {\"type\":\"geo_point\"}}}}}"

If I try this command it shows up in kibana, but when I try to run a tilemap, the map just disappears, so I'm assuming it is not getting the correct data:

curl -XPUT "http://localhost:9200/indexname" -d "{\"mappings\" : {\"my_type\" : {\"properties\" : {\"coordinates\" : {\"type\":\"geo_point\"}}}}}"

Do you mean the actual tile images?

I can't get tile images. I have the map and have tried enhanced_tilemap, but my coordinates are never showing up

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.