Hello,
1. Is it possible to get geolocation from name of the place only?
2.Is it possible, once the name of the place is written, to identify the site's ribs [Create a polygon or rectangle].
Thanks
Bart
(Bart)
July 9, 2018, 11:25am
2
Hi,
1. Unfortunately geolocation is only available in TMS WebGMaps, not in TMS WebOSMaps. 2. Unfortunately this is currently not supported. We would have to investigate if this can be implemented in a future version.
Hi
Another question, please
Why can not program create file( Directions.dir)??
Is the reason I use '' Delphi 2010'' !!
Thanks
Bart
(Bart)
July 9, 2018, 3:03pm
4
I'm not sure which function you are referring to. Retrieving directions is only supported in WebGMaps, not in WebOSMaps.
If the problem persists, please explain exactly what you are trying to do and what is going wrong so I can further investigate this.
Bart
(Bart)
July 16, 2018, 3:28pm
6
Unfortunately this feature is currently not supported in TMS VCL WebOSMaps.
We'll have to investigate if this is supported in the OpenLayers API and if it can be added in a future version.
Hello
but in fact,that we bought it just because of that !!!
We will investigate if it is feasible to add this feature.
Hello
I have trouble creating polygon. Where is the error in this program??
procedure TForm1.polydrow(Adresse: string);
var
Poly: TMapPolygon;
PItem: TPolygonItem;
Pi: TPathItem;
i:integer;
begin
WebOSMaps1.MapPanTo(WebOSMaps1.MapOptions.DefaultLatitude,
WebOSMaps1.MapOptions.DefaultLongitude);
WebOSMaps1.MapOptions.ZoomMap := 18;
WebOSMaps1.DeleteAllMapPolygon;
WebOSMaps1.Polygons.Clear;
if PItem =nil then
begin
PItem := WebOSMaps1.Polygons.Add;
Poly := PItem.Polygon;
Poly.PolygonType := ptpath;
Poly.BorderWidth := 4;
Poly.BorderColor := clWebDarkBlue;
Poly.BorderOpacity := 100;
Poly.LabelFont.Style := [fsBold];
Poly.LabelOffset.Y := 30;
for i := 2 to excel.cells.count - 1 do
begin
Pi := Poly.Path.Add;
Pi.Latitude := StrToFloat(excel.cells[i, 4]);
Pi.Longitude := StrToFloat(excel.cells[i, 5]);
end;
WebOSMaps1.CreateMapPolygon(Poly);
end
else
WebOSMaps1.UpdateMapPolygon(PItem.Polygon);
end;
I have the error message :
'' is not a valid float value
Bart
(Bart)
July 25, 2018, 11:35am
11
Can you please make sure the string values you are casting to a float are valid values?
Pi.Latitude := StrToFloat(excel.cells[i, 4]);
Pi.Longitude := StrToFloat(excel.cells[i, 5]);
what did I find:
for i := 2 to excel.cells.count - 1 do
begin
Pi := Poly.Path.Add;
Pi.Latitude := StrToFloat(excel.cells[i, 4]);
Pi.Longitude := StrToFloat(excel.cells[i, 5]);
WebOSMaps1.CreateMapPolygon(Poly);
end;
Draw polygons with a number of loop (for)elements !!!!!
Hello
can indicate to a certain place by a certain address (street, city)??
thanks
To do that, geocoding is needed. We have geocoding in TMS WeBGMaps, using the Google geocoding service. This converts an address to longitude/latitude coordinates that can be used on the map. Without using the Google geocoding service, we do not have this.
I can use it with (TWebOSMap)??
because I bought these components
This is a non-visual component that is part of TMS WebGMaps. As it is non-visual, its results could be used to add markers on a WebOSMaps as well.
How can I do that !!
Could you explain more??
Because I need to complete my program that I work on.
You will need to install TMS WebGMaps. It contains the demo for using the non-visual geocoding components.
should I buy it ?? it needs API ??