Jump to content

TUniMap


MOGSY

Recommended Posts

Hi

Using TUniMap, how can we display different icons. I have tried even changing a working icon, TUnimap stop displaying the new icon.

I have attached two icons one working "marker-icon" and the second I have just altered the icon colour and the new icon won’t show "marker-red".

Another question is I would like to display a label inside the icon for example a number "1", "2" etc.

 

Regards

marker-icon.png

marker-red.png

Link to comment
Share on other sites

38 minutes ago, MOGSY said:

Using TUniMap, how can we display different icons.

Hello,

\FMSoft\Framework\uniGUI\Demos\Desktop\UniMap

addMarker.png.039cd5c6fd726a71948b6a7b59c6a8c8.png

procedure TMainForm.UniButton7Click(Sender: TObject);
begin
  with UniMap1.Markers.Add do
  begin
    id:= Trunc(UniNumberEdit4.Value);
    Latitude:= UniFormattedNumberEdit5.Value;
    Longitude:= UniFormattedNumberEdit6.Value;
    Icon.iconUrl:= UniEdit1.Text; //<--------
    Draggable:= UniCheckBox2.Checked;
    AddToMap;
    PanToMarker(8);
  end;
end;

 

Link to comment
Share on other sites

3 hours ago, MOGSY said:

Hi

Using TUniMap, how can we display different icons. I have tried even changing a working icon, TUnimap stop displaying the new icon.

I have attached two icons one working "marker-icon" and the second I have just altered the icon colour and the new icon won’t show "marker-red".

Another question is I would like to display a label inside the icon for example a number "1", "2" etc.

 

Regards

marker-icon.png

marker-red.png

Hi,

We created a specific demo for your request. Did you get the latest build?

Please check "UniMap - Custom Marker" Demo

image.png.b6f6217fb6990e802cc8b113cad7aa55.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...