event place map

This commit is contained in:
merdan 2019-11-30 12:33:48 +05:00
parent c5473c40ff
commit d116c1b961
1 changed files with 17 additions and 5 deletions

View File

@ -56,13 +56,25 @@
<section id="location" class="container p0" style="margin-bottom: 50px">
<div class="row">
<div class="col-md-12">
<div class="google-maps content">
<iframe frameborder="0" style="border:0; width: 100%; height: 200px"
src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q={{$event->map_address}}&amp;aq=0&amp;oq={{$event->map_address}}&amp;sll=28.659344,-81.187888&amp;sspn=0.128789,0.264187&amp;ie=UTF8&amp;hq={{$event->map_address}}&amp;t=m&amp;z=15&amp;iwloc=A&amp;output=embed">
</iframe>
<div class="google-maps content">
</div>
</div>
</div>
</section>
@endsection
@endsection
@section('after_scripts')
<script>
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('google-maps'), {
center: {lat: {{$event->venue->address['latlng']['lat']}}, lng: {{$event->venue->address['latlng']['lng']}}},
zoom: 8
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key={{config('services.google_places.key')}}&callback=initMap"
async defer></script>
@endsection