Merge pull request #235 from antvis/map_ts

fix: fix map reference
This commit is contained in:
@thinkinggis 2020-03-02 18:08:30 +08:00 committed by GitHub
commit 4fd3e3d141
3 changed files with 3 additions and 6 deletions

View File

@ -29,10 +29,10 @@
"gl-matrix": "^3.1.0",
"inversify": "^5.0.1",
"mapbox-gl": "^1.2.1",
"viewport-mercator-project": "^6.2.1"
"viewport-mercator-project": "^6.2.1",
"@types/amap-js-api": "^1.4.6"
},
"devDependencies": {
"@types/amap-js-api": "^1.4.6",
"@types/gl-matrix": "^2.4.5",
"@types/mapbox-gl": "^0.54.3",
"@types/viewport-mercator-project": "^6.1.0"

View File

@ -1,6 +1,4 @@
/// <reference types="amap-js-api" />
/// <reference path="../../../node_modules/eventemitter3/index.d.ts" />
import { IControl } from 'mapbox-gl';
interface Window {

View File

@ -1,9 +1,8 @@
import { IMapWrapper, Scene } from '@antv/l7';
import React, { createElement, createRef, useEffect, useState } from 'react';
import { SceneContext } from './SceneContext';
interface IMapSceneConig {
style?: React.CSSProperties;
style?: Partial<React.CSSProperties>;
className?: string;
map: IMapWrapper;
children?: JSX.Element | JSX.Element[] | Array<JSX.Element | undefined>;