Skip to content

Commit

Permalink
#393: make ais center mode a property
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Jan 5, 2025
1 parent b3ea0e1 commit 90513df
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 375 deletions.
2 changes: 0 additions & 2 deletions viewer/components/MapPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ class MapPage extends React.Component{
return this.props.mapEventCallback(evdata);
}
componentWillUnmount(){
NavHandler.setAisCenterMode(navobjects.AisCenterMode.GPS);
MapHolder.renderTo();
if (this.subscribeToken !== undefined){
MapHolder.unsubscribe(this.subscribeToken);
Expand All @@ -137,7 +136,6 @@ class MapPage extends React.Component{
}
componentDidMount(){
let self=this;
NavHandler.setAisCenterMode(navobjects.AisCenterMode.MAP);
this.subscribeToken=MapHolder.subscribe(this.mapEvent);
let chartEntry=MapHolder.getCurrentChartEntry()||{};
let showMap=()=>{
Expand Down
Loading

0 comments on commit 90513df

Please sign in to comment.