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

11 views
Skip to first unread message

stleusc

unread,
May 19, 2021, 11:10:41 AMMay 19
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!

Emux

unread,
May 19, 2021, 11:22:26 AMMay 19
to mapsfo...@googlegroups.com
See the answer in VTM Discussions.

--
Emux
Reply all
Reply to author
Forward
0 new messages