Frontend maps to use the commonjs compiled files

This commit is contained in:
Nabeel Shahzad
2018-03-12 18:10:35 -05:00
parent 8076c2d8c1
commit 0f9ce8bbb9
13 changed files with 9473 additions and 14 deletions

View File

@@ -12,10 +12,10 @@
@section('scripts')
<script type="text/javascript">
phpvms.map.render_route_map({
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']) }},
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