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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...