List of titles and descriptions in a single marker for differentiation

I need to identify the vehicles shown on the map as follows:

Title: license plate number
Description: driver's name

My first option would be to view all the details using the switch. However, I understand that it only allows displaying one. If you could confirm this, I would appreciate it. Or if there is another method or extension that would allow me to do this.

If not,

My second option would be to click on the vehicle and have it display the details of the selected vehicle.

Regards

marker.aia (25.9 KB)

What you’re trying to do is definitely possible, but the issue is how the markers are being handled.

Right now, it looks like you’re always selecting the first item from your lists (index = 1), which is why every marker shows the same title (like “aaaa”).

Instead, you should use the component from the when any Marker.Click event. That tells you exactly which marker was clicked.

Suggested approach:

  1. Store your markers in a list (e.g., markersList)
  2. Store your titles in another list (e.g., titlesList)
  3. When a marker is clicked:
  • Find its position in the markers list
  • Use that index to get the correct title

Example logic:

  • Get index → position of component in markersList
  • Set Marker.Title using that index from titlesList
  • Call Marker.ShowInfobox

This way, each marker will display its correct title and description.


Could you outline it in the attached .aia file, please?

I'm looking for examples on the forum and haven't found anything similar.

Though the Map MArker allows only one marker at a time to pop up its Title and Description, that might not stop a clever coder from adding a Clock Timer that cycles through a list of Marker components and instructs them to display their pop ups, one after another.

1 Like

That's exactly what I need.

But I still can't assemble the blocks Akash_Gite mentioned.

Here is a sample app, cycling map marker displays for each of the 50 state capitals in the US.

I had to brute force the CSV conversion, due to some garbage in the capitals csv file.

capitals1.csv (3.4 KB)

Sample run

State_Capitals_Map.aia (6.3 KB)

I had to manually zoom out and drag the map at run time to see the markers at a comfortable scale. Panning the Markers was dizzying, so I removed that.

The not quite CSV input file:

All markers were generated at run time from the input table.

To loop through them, a temporary copy of the marker list was made, for use by the Clock Timer.

Every second, the temporary list was checked if it needed replenishing from the master list filled from the incoming file text.

The marker at the front (item 1) of the temporary list was popped up on the map, then item was removed from the temporary list to get ready for the next Clock Timer cycle.

For Title and Description, I used columns 1 and 2 of the states CSV table.

For a dispatch app, you could use license plate and driver name.

1 Like

Here is my solution:

You can rotate the car image in the canvas if you want.

The canvas can be pushed out of screen, but do not set it as invisible.

2 Likes

Is it possible to turn the vehicles independently so they can travel on different routes?

Of course, while maintaining the license plate position.

When I try, they all rotate. If I create other markers (canvases) with the same image for each marker, will it affect the titles?

When I try, they all rotate.

If I assign another (canvas) with the same image to each existing marker, will it affect the titles?
The idea is that the titles don't rotate.

Didn't you have another thread with formulas for rotating the sprite based on previous coordinates?

Are we running in circles?


Why do the vehicles disappear when I click on (Show Details)?

This is what I would like:

*When I click on (Show Details)

both vehicles and their license plates should be displayed simultaneously.

*When I click on (Hide Details)

only the vehicles should be displayed.

Regards Kevinkun

marker_giro.aia (29.8 KB)

I already show you how to make the imageassets. you can make many images , and change them when needed.

I managed to show and hide the license plates.
I managed to rotate the images.

However, the problem is that all the vehicles turn blue when the order of the items is:
Item 1 blue
Item 2 white
Item 3 white
as shown on the initial screen.

What can I do to maintain the correct order?

marker_giro_imagen.aia (32.5 KB)

i did not check your blocks, but it think the problem maybe

1 you need a timer to slow down, since drawing on canvas, rotate the sprite, save as image may need time.

or, 2 you mismatched the images with markers.

one suggestion: prepare the image assets when the app is not busy, that is, before you click the switch.


Why set the ImageAsset twice?
The second wipes away the first.

Maybe you intended a three way JOIN, with vehicle type followed by color followed by .png?


To keep it in position during the turn.

Because when I hide the license plates, they turn in a different direction.

Check the .aia file.

I have a timer that cleans. Are you saying I should use another one?

o bien, 2. No has emparejado las imágenes con marcadores
if they are grouped


You could review the .aia file to see how it works and then modify it accordingly.
Regards

you only set image sprite ‘ heading, not set its picture.


I think I solved it by creating list variables for each image

It is extensive but

and why you like to use ‘ if true ‘?


just to differentiate the groups


thank you so much Kevinkun