Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Property Marker.Title in WebOSMaps

 Post Reply Post Reply
Author
Tsipan Volodymyr View Drop Down
New Member
New Member
Avatar

Joined: 23 Oct 2017
Posts: 3
Post Options Post Options   Quote Tsipan Volodymyr Quote  Post ReplyReply Direct Link To This Post Topic: Property Marker.Title in WebOSMaps
    Posted: 27 Sep 2018 at 5:36pm
I use 2.0.3.0 version WebOSMaps.
I try to use code:

      Marker := OSM.Markers.Add;
      Marker.Icon:=my_url;
      Marker.Latitude := 10;
      Marker.Longitude := 20;
      Marker.Title:='my_title';
      OSM.CreateMapMarker(Marker);

or

      OSM.Markers.Add(10, 20,'my_title',my_url, true, false);

Icon from URL is displayed on the map, but the title property is not displayed.

Any suggestion? Thanks

Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2112
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 01 Oct 2018 at 8:43am
Unfortunately it's currently not supported to display a label for a Marker.
This is a limitation of the OpenLayers API which we have no control over.

As an alternative you can use a Polyline or Polygon object and use the LabelText property.
Back to Top
Nico Ros View Drop Down
New Member
New Member
Avatar

Joined: 20 Feb 2019
Posts: 1
Post Options Post Options   Quote Nico Ros Quote  Post ReplyReply Direct Link To This Post Posted: 19 Mar 2019 at 11:38pm
do you have an example on how to make a marker with label on webosmaps
how can i do that with a poligon or polyline ??

Nico
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2112
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 20 Mar 2019 at 8:37am
The text assigned to the LabelText property of a Polyline or Polygon object will be displayed together with the Polyline or Polygon on the map.
An example can be found in the OverviewDemo application included with the product download.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down