aswi2022code-of-duty-gitlab/map_frameworks/src/component/PigeonMapsExample.tsx @ a68cb363
1 | 351a2dd2 | Vaclav Honzik | import { Map, Marker } from 'pigeon-maps' |
---|---|---|---|
2 | import { useState } from 'react' |
||
3 | |||
4 | // This would be also a great library but did not find any official way to draw path
|
||
5 | const PigeonMapsExample = () => { |
||
6 | return ( |
||
7 | <>
|
||
8 | <h1>PigeonMaps Example</h1> |
||
9 | <Map height={ 400 } defaultCenter={ [50.879, 4.6997] } defaultZoom={ 11 }> |
||
10 | <Marker width={ 50 } anchor={ [50.879, 4.6997] }/> |
||
11 | </Map> |
||
12 | </>
|
||
13 | )
|
||
14 | }
|
||
15 | |||
16 | export default PigeonMapsExample |