I would like my users to set a precise location using a Map.
They move and zoom to streetlevel to set this location.
It would be nice to have a crosshair centered in the map.
On windows I managed to get a little Tpanel to appear on top of the map, but this doesn't work across platforms. I know why, no need to explain.
But as the doc says, there are events that should make it possible to inject some Javascript in the map-rendering process. Would that be the way to go?
I'd love to see an example of such code, just to see a crosshair appear, fixed in the center of the map.
procedure SetzeCursor;
begin
Form2.TMSFNCGoogleMaps1.ExecuteJavascript('function SetzeCursor() {map.setOptions({draggableCursor: "crosshair"});}SetzeCursor();',
begin
//
end
);
end;
procedure SetzeCursorDefault;
begin
Form2.TMSFNCGoogleMaps1.ExecuteJavascript('function SetzeCursor() {map.setOptions({draggableCursor: "auto"});}SetzeCursor();',
procedure(const AValue: string)
begin
//
end
);
end;