try of activitiesposition) {
            if (filterBy === "none")
                data.features.push({
                    "type": "Feature",
                    "properties": { "id": entry.id, "title": entry.title, "activitytype" : entry.activitytype, "trackgroupentrycount": entry.trackgroupentrycount},
                    "geometry": { "type": "Point", "coordinates": [ entry.longitude, entry.latitude, 0.0 ] }
                });
            else {
                if (entry.activitytype === filterBy)
     