-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
346 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import React from 'react'; | ||
import { GeoDataSource, GeoMap } from '../../../src/lib'; | ||
import React from "react"; | ||
import { GeoDataSource, GeoMap } from "../../../src/lib"; | ||
|
||
const DataSourceExample: React.FC = () => { | ||
return ( | ||
<div style={{ width: '300px', height: '300px' }}> | ||
<GeoMap className='w-full h-full'> | ||
<div style={{ width: "300px", height: "300px" }}> | ||
<GeoMap> | ||
<GeoDataSource url="sample.geojson" /> | ||
</GeoMap> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DataSourceExample; | ||
export default DataSourceExample; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import type React from "react"; | ||
|
||
export interface GeoMapProps { | ||
children?: React.ReactNode; | ||
className?: string; | ||
children?: React.ReactNode; | ||
className?: string; | ||
} | ||
|
||
export function GeoMap(props: GeoMapProps): React.ReactElement; | ||
|
||
export interface DataSourceProps { | ||
url: string; | ||
fitViewToData?: boolean; | ||
url: string; | ||
fitViewToData?: boolean; | ||
} | ||
|
||
export function GeoDataSource(props: DataSourceProps): React.ReactElement; | ||
|
||
// NOTE:: WIP | ||
export interface PopupProps<P> { | ||
properties: P; | ||
popupFunc: (properties: P) => React.ReactNode; | ||
properties: P; | ||
popupFunc: (properties: P) => React.ReactNode; | ||
} | ||
|
||
export function Popup<P>(props: PopupProps<P>): React.ReactElement | null; | ||
|
||
export function observeCSSVariables( | ||
targetElement: HTMLElement, | ||
callback: () => void, | ||
targetElement: HTMLElement, | ||
callback: () => void | ||
): MutationObserver; |
Oops, something went wrong.