Skip to content

Commit

Permalink
refactor(a): add l7-draw source
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Mar 19, 2020
1 parent 32201b5 commit f7624d8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build/rollup-plugin-glsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ export default function glsl(include, minify) {
};
}
};
}
}
2 changes: 1 addition & 1 deletion packages/l7/demo/circle.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.8.3/polyfill.min.js"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v1.8.0/mapbox-gl.js"></script>
<script src="../dist/l7.js"></script>
<script src="../dist/l7-dev.js"></script>
<script>
console.log(L7);
const scene = new L7.Scene({
Expand Down
12 changes: 0 additions & 12 deletions stories/React/components/Scene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ export default React.memo(function Map() {
bottom: 0,
}}
>
<SceneContext.Consumer>
{(scene) => {
console.log(scene);
return null;
}}
</SceneContext.Consumer>
<SceneEvent
type="click"
handler={() => {
console.log('click');
}}
/>
<Popup lnglat={[110.1938, 50.25] as number[]}>
<p>122222</p>
</Popup>
Expand Down
4 changes: 4 additions & 0 deletions stories/React/components/world.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export default React.memo(function Map() {
bottom: 0,
}}
>
<Popup lnglat={[110.1938, 50.25] as number[]}>
<p>122222</p>
</Popup>
{data && [
<PolygonLayer
key={'2'}
Expand All @@ -54,6 +57,7 @@ export default React.memo(function Map() {
opacity: 1,
}}
/>,

<LineLayer
key={'21'}
source={{
Expand Down
2 changes: 1 addition & 1 deletion stories/React/components/world_ncov_bubble_animate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default React.memo(function Map() {
zoom: 1,
}}
style={{
position: 'absolute',
// position: 'absolute',
top: 0,
left: 0,
right: 0,
Expand Down

0 comments on commit f7624d8

Please sign in to comment.