How to render polygon at lat/lon and size in meters

Skip to first unread message


May 19, 2021, 11:10:41 AM5/19/21
to Mapsforge & VTM
I see examples like the HexagonRenderer however all example I find simply draw on the center of the map.
I want to draw at give lat/lon points. Also don't want to do tiling like the default VectorTileRenderer.

A simple question would be, how to modify HexagonRenderer example file to render the hexagons centered at a give lat/lon (not middle of map) and size them a give size in meters/feet on the map surface to make sure it scales.

For simplicity, what would need to be done to draw the HexagonRenderer and N8 00.000 W5 00.000 with a size of 100m per hexagon. Drawing a single Hexagon centered at that point is good enough as an example.

Of course, rotating the map shall rotate the object, NOT like markers that always 'face up'.

It can't be too hard but not finding any good starting point.

Thanks everyone!


May 19, 2021, 11:22:26 AM5/19/21
See the answer in VTM Discussions.

Reply all
Reply to author
0 new messages