Daniel Dimitrov wrote: Wow, some times I wonder if the users aren't uniting to wish the same thing at the same time
Check this thread out:
compojoom.com/forum/27-hotspots/52-newbi...657-newest-locations
Hello, I'm back! I looked at the thread you referenced and wanted to clarify that what I would like to do is show all markers for
all categories on the map at once - so if there are four categories with four different marker icons, four different icons would show on a single map. I'm fine with limiting the number of markers to 50 so the map doesn't run slow.
This could be a link somewhere, maybe in the sidebar or another map in another tab, whatever is the easiest method with the least amount of files to change. I started playing around with gethotspots.php - I'm thinking something like:
public function getAllHotspots() {
$db = JFactory::getDBO();
$query = "SELECT * FROM #__hotspots_marker WHERE published = '1'";
$db->setQuery($query, 0, 50);
$rows = $db->loadObjectList();
return $rows;
}
I'm just not sure what file you use to call the actual function? Does there also need to be something in hotspots.js without a category ID i.e.:
function getAllHotspots(){
params = new Object();
params.url = hotspots_route+"index.php?option=com_hotspots&task=getAllHotspots&format=raw";
params.method = 'get';
params.update = 'allSpots';
hotspotsAjax(params);
}
If you could let me know if I'm even going in the right direction that would be great, LOL! Thanks!