Skip to content

Commit

Permalink
fix: fix map reference
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Mar 2, 2020
1 parent 52a3c4c commit 79e16f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/maps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions packages/maps/typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/// <reference types="amap-js-api" />
/// <reference path="../../../node_modules/eventemitter3/index.d.ts" />

import { IControl } from 'mapbox-gl';

interface Window {
Expand Down
3 changes: 1 addition & 2 deletions packages/react/src/component/Scene.tsx
Original file line number Diff line number Diff line change
@@ -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>;
Expand Down

0 comments on commit 79e16f5

Please sign in to comment.