event place map
This commit is contained in:
parent
c5473c40ff
commit
d116c1b961
|
|
@ -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&source=s_q&hl=en&geocode=&q={{$event->map_address}}&aq=0&oq={{$event->map_address}}&sll=28.659344,-81.187888&sspn=0.128789,0.264187&ie=UTF8&hq={{$event->map_address}}&t=m&z=15&iwloc=A&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
|
||||
|
|
|
|||
Loading…
Reference in New Issue