You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
464 B
TypeScript
26 lines
464 B
TypeScript
2 years ago
|
/*
|
||
|
* Author: 黎永顺
|
||
|
* name: 地图组件
|
||
|
* Description:
|
||
|
* Date: 2023/5/4
|
||
|
*/
|
||
|
import React, { FC } from "react";
|
||
|
import Chart from "@/utils/chart";
|
||
|
import { mapOptions } from "./options";
|
||
|
import styles from "./index.less";
|
||
|
|
||
|
interface OwnProps {
|
||
|
}
|
||
|
|
||
|
type Props = OwnProps;
|
||
|
const Map: FC<Props> = (props) => {
|
||
|
|
||
|
return (
|
||
|
<div className={styles.mapWrapper}>
|
||
|
<Chart renderer={"canvas"} option={mapOptions({})}/>
|
||
|
</div>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default Map;
|