TWebOSMaps in Delphi2010

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

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

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.

Hello

through :

   webosmaps1.WebBrowser.Navigate(URL);

I can get to a specific address and specify the location according to the shape of the building.
My question is whether this can be achieved in another way in TWebOSMaps.
My goal is to access the address and display the place  as in ( nominatim.openstreetmap) and then specify a mark or more on the place. Is this possible in TWebOSMaps.

Thanks

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

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 ??