[WIP] Setup of skeleton
This commit is contained in:
20
resources/views/cornford/googlmapper/polyline.blade.php
Normal file
20
resources/views/cornford/googlmapper/polyline.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
var polylineCoordinates_{!! $id !!} = [
|
||||
@foreach ($options['coordinates'] as $coordinate)
|
||||
new google.maps.LatLng({!! $coordinate['latitude'] !!}, {!! $coordinate['longitude'] !!}),
|
||||
@endforeach
|
||||
];
|
||||
|
||||
var polyline_{!! $id !!} = new google.maps.Polyline({
|
||||
path: polylineCoordinates_{!! $id !!},
|
||||
geodesic: {!! $options['strokeColor'] ? 'true' : 'false' !!},
|
||||
strokeColor: '{!! $options['strokeColor'] !!}',
|
||||
strokeOpacity: {!! $options['strokeOpacity'] !!},
|
||||
strokeWeight: {!! $options['strokeWeight'] !!},
|
||||
editable: {!! $options['editable'] ? 'true' : 'false' !!}
|
||||
});
|
||||
|
||||
polyline_{!! $id !!}.setMap({!! $options['map'] !!});
|
||||
|
||||
shapes.push({
|
||||
'polyline_{!! $id !!}': polyline_{!! $id !!}
|
||||
});
|
||||
Reference in New Issue
Block a user