Align styling with bengoldsworthy.net
This commit is contained in:
parent
739f2c86bf
commit
3f8a675c32
2 changed files with 33 additions and 11 deletions
|
@ -77,13 +77,16 @@
|
|||
@foreach($trip->locations as $location)
|
||||
[{{ $location->latitude }}, {{ $location->longitude }}],
|
||||
@endforeach
|
||||
]).addTo(map);
|
||||
], {
|
||||
color: '#3d3d3d'
|
||||
}).addTo(map);
|
||||
|
||||
/*
|
||||
* Populate all the checkins and popup texts.
|
||||
*/
|
||||
var checkinMarkers = [];
|
||||
var marker = null, popupMarkup = null;
|
||||
L.Icon.Default.imagePath = "https://track.bengoldsworthy.net/images/";
|
||||
@foreach($trip->checkins as $checkin)
|
||||
marker = L.marker([{{ $checkin->location->latitude }}, {{ $checkin->location->longitude }}]).addTo(map);
|
||||
|
||||
|
@ -119,13 +122,15 @@
|
|||
* TODO: Revisit once fixed with other popups.
|
||||
*/
|
||||
var currLocationMarker = L.icon({
|
||||
iconUrl: 'current-location-icon.png',
|
||||
iconUrl: 'images/current-location-icon.png',
|
||||
iconSize: [30, 45],
|
||||
});
|
||||
|
||||
var currLocation = L.marker(
|
||||
[{{ end($trip->locations)->latitude }}, {{ end($trip->locations)->longitude }}],
|
||||
{icon: currLocationMarker}
|
||||
[{{ end($trip->locations)->latitude }}, {{ end($trip->locations)->longitude }}],
|
||||
{
|
||||
icon: currLocationMarker
|
||||
}
|
||||
).addTo(map).setZIndexOffset(1000);
|
||||
currLocation.bindPopup('<p>Current location</p>').openPopup();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue