×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Order of markers

Order of markers 10 years 3 weeks ago #28653

  • Brecht Coene
  • Brecht Coene's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Thank you received: 0
Is there a way to have different order of markers on the list and on the map?
We have 6 categories with different icons. The best markers have green icon, the worst have red icon. Icons are the same size.
Problem is some markers are on the same position and you can see only red icon (green is below).
It is natural to show first best markers with green color on the list.
I understand markers are generated on map in the same order like on the list view. Is there a way to change this?

We use custom 'order by' in query for getting markers.

Order of markers 10 years 3 weeks ago #28655

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
So you have a category that contains the best markers (the green one) and a category that contains the worst?

Order of markers 10 years 3 weeks ago #28657

  • Brecht Coene
  • Brecht Coene's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Thank you received: 0
yes, what's more - there are 5 categories + one default.

Order of markers 10 years 3 weeks ago #28658

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
well. What are the names of the categories? Can you order by category name for example?
How is hotspots supposed to know which markers are good and which aren't?

Regards,
Daniel

Order of markers 10 years 3 weeks ago #28663

  • Brecht Coene
  • Brecht Coene's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Thank you received: 0
We can't order categories by names. Only by ID makes sense.
Markers are ordered by extra column in table with markers. We use this column in plugin in onBeforeBuildQuery to change order of markers.

Order of markers 10 years 3 weeks ago #28681

  • Brecht Coene
  • Brecht Coene's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Thank you received: 0
We have found other way to do this - different sizes of icons.
The best ones (green) are the biggest.
The worst ones (red / black) are the smallest.
Now on chart you can see all different icons on one place.

Order of markers 10 years 3 weeks ago #28682

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Cool idea! Can we see at least a screenshot?

Order of markers 10 years 3 weeks ago #28683

  • Brecht Coene
  • Brecht Coene's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Thank you received: 0
Printscreen (3 markers in same place):
Attachments:
  • Page:
  • 1
Time to create page: 0.111 seconds