feat(pbf): add map component
This commit is contained in:
parent
16abe8b37a
commit
15f98a481f
|
@ -0,0 +1,9 @@
|
|||
import React from 'react';
|
||||
const Map = () => {
|
||||
return (
|
||||
<>
|
||||
<h2>Map</h2>
|
||||
</>
|
||||
);
|
||||
}
|
||||
export default Map
|
|
@ -3,6 +3,7 @@ import axios from 'axios';
|
|||
import Pbf from 'pbf';
|
||||
import Hello from '../components/hello';
|
||||
import { FeedMessage } from '../../proto2js/js/gtfs-rt.js';
|
||||
import Map from '../components/map/map';
|
||||
import '../style.css';
|
||||
const Home = () => {
|
||||
/*storage*/
|
||||
|
@ -98,6 +99,7 @@ const Home = () => {
|
|||
<p>
|
||||
vehicle position count: {vehPos.length}
|
||||
</p>
|
||||
<Map />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue