Skip to content

Commit

Permalink
Merge pull request #13 from mapcomponents/fix/MlMarkerLayer-new-Data
Browse files Browse the repository at this point in the history
removed extract command
  • Loading branch information
MartinAlzueta committed Jul 8, 2024
2 parents 4057a2a + 3206c4b commit bd3d354
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ jobs:
yarn
yarn build-catalogue-meta
yarn build-catalogue-markdown-docs
yarn build-storybook
npx sb extract ./docs-build ./docs-build/stories.json
yarn build-storybook
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
Expand Down
3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,7 @@ module.exports = {
},
});
},
features: {
buildStoriesJson: true,
}
};
6 changes: 1 addition & 5 deletions src/components/MlIconLayer/MlIconLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import DeckGlContext from "../../deckgl_components/DeckGlContext";
import { MapboxLayer } from "@deck.gl/mapbox";
import { IconLayer } from "@deck.gl/layers";

import Airplane from "./assets/airplane-icon.png";
import Ships from "./assets/Ships_v2.png";
import { Divider } from "@mui/material";


const navStats = {
0: "under way using engine",
Expand Down Expand Up @@ -135,9 +134,6 @@ const MlIconLayer = (props) => {
airplanes_tmp = airplanes_tmp.map((d) => {
let trackPorcentage =
(_timeNow - d.time_contact) / 1000 / fetchEverySeconds;
if (trackPorcentage > 1) {
trackPorcentage = 1;
}

const [longitude, latitude] = d.interpolatePos(trackPorcentage);
return {
Expand Down

0 comments on commit bd3d354

Please sign in to comment.