Custom Tile Map (no geo data)

Hi,

I have a tileset for a big ingame map (GTA V Example Map Interface) and I want to put it into Kibana. I created the layer and managed to make it display the images, but they are kinda screwed Screenshot

Is it even possible to make the Map feature work with a custom map like this?

And if it somehow works.. how do I set the dimensions for my custom coordinates? I just have x and y with no relation to lat and lng.

Hi @eiksch

The answer is somewhat mixed.

it is possible to use Kibana Maps for this non-geo use-case. For a similar example, see the screenshots where we used Maps to display a map of game-of-thrones (https://www.elastic.co/blog/elastic-maps-7-3-0-released). It does require that all your x-y coordinates are mapped to equivalent lats and lons in the appropriate -90/90 (for lat) and -180/180 (for lon) domains. So this may require a conversion step first on your end.

From the screenshot, it seems you are using the TMS-source. Yes, that's exactly the kind of source to use. So basically, just add https://map.statev.de/{z}/{y}/{x}.png

Unfortunately, why the GTA-map looks screwy in Kibana, is because the orientation of that GTA tile-set is flipped. The orientation of the Y-axis is bottom-to-top for your tile service. Maps only supports the tileset orientations where the Y-axis points top-to-bottom. That is why you get that odd striping effect.

The tileset spec Maps supports is the Google Maps one (https://en.wikipedia.org/wiki/Tiled_web_map). Most toolkits that support cutting up imagery in tileset should support this spec.

I extended my picture now, from 8192x8192 to 16384x8192.

Then I used gdal_translate and created a .tif to add the lat/lon information to the picture

And then I used gdal2tiles to create the tileset.

It now looks like this

@thomasneirynck can you tell me what is missing? It looks like it has something to do with the format of the tileset. Maybe gdal2tiles can't achieve what I need?

edit: it should look like this: link

Eep, that looks worse!

Can you check if the {x}/{y}/{z} parameters are ordered in the URL? it's possible that gdal2tiles puts them in a different order.

btw. you might be interested in this blogpost, that shows a similar use-case. https://www.elastic.co/blog/kibana-and-a-custom-tile-server-for-nhl-data It's a few years old, and does not use the new Kibana Maps, but the principle is the same.

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