Hi guys , The code below don't work for ios and android ,the marker is not displayed
try
LDecSeparator := FormatSettings.DecimalSeparator;
FormatSettings.DecimalSeparator := '.';
cp:='';
if FCurrentPosition.Distance(NewLocation) > Accuracy then
begin
FCurrentPosition := NewLocation;
latmap := NewLocation.Latitude;
Longmap := NewLocation.Longitude;
if ((latmap >= -90) and (latmap <= 90)) and
((Longmap >= -180) and (Longmap <= 180)) then
begin
TMSFMXWebGMaps1.Markers.clear;
TMSFMXWebGMaps1.MapOptions.DefaultLatitude := latmap;
TMSFMXWebGMaps1.MapOptions.DefaultLongitude := Longmap;
TMSFMXWebGMaps1.Reinitialize;
TMSFMXWebGMaps1.Markers.Add(latmap, Longmap, 'My position', '', false, true, true, true, false, 0);
end;
end;
finally
LocationSensor1.Active := False ;
ActionCostoMasajeExecute(sender);
end;
Hi,
We are not aware of any issues with adding markers to the map.
Does the issue also occur when you try to add a marker with fixed latitude and longitude coordinates?
Can you please make sure you are using the correct latitude and longitude coordinates?
Does the issue also occur when you try to add a marker with fixed latitude and longitude coordinates?
Can you please make sure you are using the correct latitude and longitude coordinates?