[WIP] Setup of skeleton
This commit is contained in:
21
resources/views/cornford/googlmapper/rectangle.blade.php
Normal file
21
resources/views/cornford/googlmapper/rectangle.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
var rectangleCoordinates_{!! $id !!} = new google.maps.LatLngBounds(
|
||||
@foreach ($options['coordinates'] as $key => $coordinate)
|
||||
new google.maps.LatLng({!! $coordinate['latitude'] !!}, {!! $coordinate['longitude'] !!})@if (count($options['coordinates']) - 1 > $key), @endif
|
||||
@endforeach
|
||||
);
|
||||
|
||||
var rectangle_{!! $id !!} = new google.maps.Rectangle({
|
||||
strokeColor: '{!! $options['strokeColor'] !!}',
|
||||
strokeOpacity: {!! $options['strokeOpacity'] !!},
|
||||
strokeWeight: {!! $options['strokeWeight'] !!},
|
||||
fillColor: '{!! $options['fillColor'] !!}',
|
||||
fillOpacity: {!! $options['fillOpacity'] !!},
|
||||
bounds: rectangleCoordinates_{!! $id !!},
|
||||
editable: {!! $options['editable'] ? 'true' : 'false' !!}
|
||||
});
|
||||
|
||||
rectangle_{!! $id !!}.setMap({!! $options['map'] !!});
|
||||
|
||||
shapes.push({
|
||||
'rectangle_{!! $id !!}': rectangle_{!! $id !!}
|
||||
});
|
||||
Reference in New Issue
Block a user