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);

View File

@@ -40,10 +40,11 @@ class TagFormRequest extends Request
$latitude = null;
$longitude = null;
$zoomLevel = null;
if ($this->get('setTag') === 'true') {
$latitude = $this->string('latitude');
$longitude = $this->string('longitude');
$zoomLevel = $this->integer('zoomLevel');
if ($this->get('tag_position_has_tag') === 'true') {
$latitude = $this->string('tag_position_latitude');
$longitude = $this->string('tag_position_longitude');
$zoomLevel = $this->integer('tag_position_zoomlevel');
}
$data = [