phpvms/resources/views/layouts/default/pireps/map.blade.php

22 lines
694 B
PHP
Raw Normal View History

<div class="row">
<div class="col-md-12">
<h3 class="description">flight map</h3>
</div>
<div class="col-12">
<div class="box-body">
<div id="map" style="width: 100%; height: 800px"></div>
</div>
</div>
</div>
@section('scripts')
<script type="text/javascript">
phpvms.map.render_route_map({
2017-12-28 11:05:53 +08:00
route_points: {!! json_encode($map_features['planned_rte_points']) !!},
planned_route_line: {!! json_encode($map_features['planned_rte_line']); !!},
actual_route_line: {!! json_encode($map_features['actual_route_line']); !!},
actual_route_points: {!! json_encode($map_features['actual_route_points']); !!},
});
</script>
@endsection