Files
opensem/resources/views/cornford/googlmapper/overlay.blade.php
Ludovic CANDELLIER 64abc46d99 [WIP] Refactor project
2021-05-21 00:21:05 +02:00

13 lines
418 B
PHP

var overlayCoordinates_{!! $id !!} = new google.maps.LatLngBounds(
@foreach ($options['coordinates'] as $coordinate)
new google.maps.LatLng({!! $coordinate['latitude'] !!}, {!! $coordinate['longitude'] !!}),
@endforeach
);
overlay_{!! $id !!} = new google.maps.GroundOverlay(
'{!! $options['image'] !!}',
overlayCoordinates_{!! $id !!}
);
overlay_{!! $id !!}.setMap({!! $options['map'] !!});