Skip to content

Commit

Permalink
Complete layers v1 implementation, and add feature names if available (
Browse files Browse the repository at this point in the history
…#3)

* feat: add map focus feature

* feat: add a example geojson
  • Loading branch information
bishalspkt authored Jan 13, 2024
1 parent 0eae8f3 commit 0dd5b67
Show file tree
Hide file tree
Showing 10 changed files with 1,060 additions and 40 deletions.
8 changes: 5 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ import { Map, MapLabel } from './components/map/'
import { MapControls } from './components/map-controls'
import { useState } from 'react'
import { GeoJSON } from 'geojson';
import { MapFocus } from './components/map-controls/types';



function App() {
const [geoJson, setGeoJson] = useState<GeoJSON|undefined>(undefined);

const [ mapFocus, setMapFocus ] = useState<MapFocus|undefined>(undefined);
return <>
<MapLabel/>
<Map geojson={geoJson}/>
<MapControls geoJson={geoJson} setGeoJSON={setGeoJson} />
<Map geojson={geoJson} mapFocus={mapFocus}/>
<MapControls geoJson={geoJson} setGeoJSON={setGeoJson} setMapFocus={setMapFocus}/>
</>
}

Expand Down
Loading

0 comments on commit 0dd5b67

Please sign in to comment.