Google Map Marker Offset

When adding a marker to the Google map, where the marker is an image URL, the default anchor of the marker is the centre/bottom pixel of the image. For many images it would be better for this anchor to be elsewhere, typically at the centre of the image.

Without doing this, the marker is offset and appears to move on the map as the user zooms in and out.

Google allow this default to be overridden however the map in TMS Web Core doesn't provide that capability. I've modified the source in WEBLib.WebCtrls.pas to add a new override of AddMarker so I can do this:

procedure TGoogleMaps.AddMarker(Lat, Lon: double; PinIcon, Title: string; XOffset, YOffset: Integer);
var
map: TJSHTMLElement;
ptr: Pointer;
begin
ptr := @HandleMarkerClick;

map := GetMap;
asm
var pinImage = new google.maps.MarkerImage(PinIcon, null, null, new google.maps.Point(XOffset, YOffset));
var myLatLng = {lat: Lat, lng: Lon};
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: Title,
icon: pinImage
});
marker.idx = this.FMarkers.length;
marker.addListener('click', function() { ptr(marker); } );

this.FMarkers.push(marker);

end;
end;

Could this or something similar be added please?

This feature was implemented.