libgdx - How to resize a Tilemap according to aspect ratio

How can I resize my TiledMap so i can have it stretched correctly to the screen sizes of devices with different aspect ratio’s?

I’m looking for a way to be able to stretch X & Y direction seperately.

So something like using the TiledMapRenderer’s unitscale isn’t sufficient. (like mentioned here f.e.:
http://badlogicgames.com/forum/viewtopic.php?f=11&t=11584)

Been googling around but can’t find any examples

When i create my camera this is what my code looks like :

	cam = new OrthographicCamera(V_WIDTH, V_HEIGHT );
		cam.position.set((V_WIDTH / 3.55f), (V_HEIGHT / 2f), 0); // my map doesnt cover whole screen that's why ../ 3.55f


And I load my map with the tmxMapLoader & pass it to the tilemaprenderer like this:

	tilemaprenderer = new OrthogonalTiledMapRenderer(map)
		tilemaprenderer.setView(cam);

You could use Libgdx Viewport

Yeah, I’ve been trying that.
Thanks for the link btw, hadnt read the part on viewports yet

It indeed enables me to resize x,y seperate but unfortunately my map’s origin gets displaced as well.

What i found now is that if that when i create my camera and give my camera fixed dimensions (800x480 of which 480 is the original tilemaps height) then the map scales perfectly/automatically.

I’m not fully understanding it atm, but it seems to work.