Marker lat/lon and rotation

Two questions:

  1. It's my understanding that the default marker's lat/lon is located at the pointy end of the teardrop marker. I would like to use a custom marker such as the white circle in the image below. For the circle to be in the correct position, the lat/lon needs to refer to the center of the marker image. What is the best way to do this?
  2. For a directional custom marker (as below) I want to be able to rotate it in real time depending on the current bearing. What is the recommended method for doing this? (I can get the bearing. I need to know how best to rotate the marker).
    Thanks.

image

Hi,

Unfortunately there is currently no built-in functionality to offset and/or rotate markers.
However, this is a good suggestion and we'll consider adding these features in a future version.

1 Like

As an alternative, I have tried to draw to the AGraphics.Canvas via the Map.OnAfterDraw event and I can see the drawing immediately before the tiles are rendered (which then cover the drawing). Is there a way to draw on the map after the tiles are rendered?

Is this still interesting? I’m about to need this, so if it’s a near-future feature, I will wait for it, otherwise I will implement it by hand (using polygons).

There are currently no plans to implement marker rotation in TMS FNC Maps.
To help us evaluate whether this is something we should add, could you share a bit more about your use case?

  • Which mapping service(s) do you require marker rotation for?
  • Which marker types (default, image, svg) do you require marker rotation for?

Hello!

It’s a pity, but I understand your point of view.

Using Open street maps.

The purpose is to draw vessels in a port. Since the piers have different angles, I need to rotate the marker or polygon. Marker is a little bit preferred, because I can interact with it (hint, onclick,… etc.).

The preferred way would be SVG, because it’s resolution independent, but and solution would be nice :slight_smile: