Add openstreetmap with a mapbox.com layer. #420

This commit is contained in:
James Cole
2017-09-30 17:50:22 +02:00
parent c0d62dfc86
commit cc61281523
24 changed files with 14474 additions and 193 deletions

View File

@@ -157,10 +157,19 @@ class TagController extends Controller
*/
public function index(TagRepositoryInterface $repository)
{
// collect tags by year:
// start with oldest tag
$oldestTag = $repository->oldestTag();
/** @var Carbon $start */
$start = clone(session('first'));
$start = new Carbon;
if (!is_null($oldestTag)) {
/** @var Carbon $start */
$start = $oldestTag->date;
}
if (is_null($oldestTag)) {
/** @var Carbon $start */
$start = clone(session('first'));
}
$now = new Carbon;
$clouds = [];
$clouds['no-date'] = $repository->tagCloud(null);