mirror of https://gitee.com/antv-l7/antv-l7
fix: 路径修改
This commit is contained in:
parent
47079b9b0b
commit
6130514a2d
|
@ -1,6 +1,6 @@
|
|||
import { ILayer, StyleAttrField } from '@antv/l7';
|
||||
import * as React from 'react';
|
||||
import { IAttributeOptions } from '.';
|
||||
import { IAttributeOptions } from './';
|
||||
|
||||
const { useEffect } = React;
|
||||
interface ILayerProps {
|
||||
|
|
|
@ -3,12 +3,35 @@ import * as React from 'react';
|
|||
import { LayerContext } from '../LayerContext';
|
||||
import { useSceneValue } from '../SceneContext';
|
||||
|
||||
import { Active, Color, Filter, ILayerProps, Scales, Shape, Size, Source, Style } from '.';
|
||||
import {
|
||||
Active,
|
||||
Color,
|
||||
Filter,
|
||||
ILayerProps,
|
||||
Scales,
|
||||
Shape,
|
||||
Size,
|
||||
Source,
|
||||
Style,
|
||||
} from './';
|
||||
|
||||
const { useEffect, useState } = React;
|
||||
|
||||
export default function BaseLayer(type: string, props: ILayerProps & { children?: any }) {
|
||||
const { source, color, shape, style, size, scales, active, filter, options } = props;
|
||||
export default function BaseLayer(
|
||||
type: string,
|
||||
props: ILayerProps & { children?: any },
|
||||
) {
|
||||
const {
|
||||
source,
|
||||
color,
|
||||
shape,
|
||||
style,
|
||||
size,
|
||||
scales,
|
||||
active,
|
||||
filter,
|
||||
options,
|
||||
} = props;
|
||||
const mapScene = (useSceneValue() as unknown) as Scene;
|
||||
const [layer, setLayer] = useState();
|
||||
if (!layer) {
|
||||
|
|
Loading…
Reference in New Issue