Skip to content

Commit

Permalink
fix(minimap): remove all map controls
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Feb 27, 2018
1 parent e1cd461 commit 04ff16e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/lib/map/baselayers-switcher/mini-basemap.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export class MiniBaseMapComponent
}
private _disabled: boolean;

public basemap = new IgoMap({interactions: false});
public basemap = new IgoMap({
controls: {},
interactions: false
});

constructor(private layerService: LayerService) {}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/map/shared/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export class IgoMap {
controls.push(new ol.control.Attribution(attributionOpt));
}
if (this.options.controls.scaleLine) {
const scaleLineOpt = (this.options.controls.attribution === true ?
{} : this.options.controls.attribution) as olx.control.AttributionOptions;
const scaleLineOpt = (this.options.controls.scaleLine === true ?
{} : this.options.controls.scaleLine) as olx.control.ScaleLineOptions;
controls.push(new ol.control.ScaleLine(scaleLineOpt));
}
}
Expand Down

0 comments on commit 04ff16e

Please sign in to comment.