Code: Select all
$query2 = 'SELECT id, title, alias, startdate, city, country, lat as latitude, lng as longitude, `desc` as description FROM #__icagenda_events WHERE startdate >= NOW() AND TO_DAYS( startdate ) - TO_DAYS( NOW() ) < 180 AND access=1';
$db->setQuery($query);
$markerp = $db->loadObjectList();
$db->setQuery($query2);
$markerp2 = $db->loadObjectList();
foreach( $markerp2 as &$row) {
$row->displaygps = 0;
$row->icon = 0;
$row->iconext = 0;
$row->contentwidth="";
$row->contentheight="";
$row->markerwindow=0;
$row->url="/index.php/events/" . $row->id . "-" . $row->alias;
// add url to desc
$row->description = "<p><a href = \"" . $row->url . "\">Learn more about this event</a></p>";
}
$markerp=$markerp2;
You can see here
http://dev.pfp-consortium.org
http://dev.pfp-consortium.org/index.php ... g-workshop
First link is fine, second shows map with no markers.
Any ideas?