×

Notice

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

TOPIC: Selecting what markers are shown

Selecting what markers are shown 11 years 8 months ago #19902

  • Adam Dempsey
  • Adam Dempsey's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
I have about 250 markers with tiling on.

Everything is working fine. When you zoom out only the 100 "Tacks" are shown and the remaining 150 markers are just dots. Which is just fine.

My question is, is there anyway to change which 100 (or whatever you have selected to be shown) show the tacks instead of the dots? Currently it looks like it's based on how I entered the data - which could be by date or alphabetically. When my map is zoomed out the 100 of the 250 that show tacks are all clustered together. I'd rather have the markers showing tacks to be spread out across the map instead of in one big clump. Was hoping there might be a way to do this.

Thanks.

Selecting what markers are shown 11 years 8 months ago #19917

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Adam,
How are you entering your hotspots? Do the hotspots in the same location have the same name?

in components/com_hotspots/models/json.php you can modify the order on line 76
->order('name ASC');

you can make it for example "name RAND(1)" -> but this will make the hotspots in the menu not sorted alphabetically as well.

Regards,
Daniel

Selecting what markers are shown 11 years 8 months ago #19918

  • Adam Dempsey
  • Adam Dempsey's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Thanks Daniel.

I am entering them alphabetically, which is the problem. So, it's entirely how I am doing it, but maybe in the future you could add a feature to randomize which of the X number of hotspots show the tacks and which show the dots or something? Worst case, I suppose I can just re-enter some of the data to spread things out a bit.

What I ended up doing was splitting my single category into two and that helped somewhat.

-adam
  • Page:
  • 1
Time to create page: 0.154 seconds