Skip to content

Commit

Permalink
Add the scale back
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed Sep 15, 2024
1 parent 39c696b commit 9daaf22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/base/src/mainview/mainView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
} from 'ol/source';
import Static from 'ol/source/ImageStatic';
import { Circle, Fill, Stroke, Style } from 'ol/style';
import { ScaleLine } from 'ol/control';
//@ts-expect-error no types for ol-pmtiles
import { PMTilesRasterSource, PMTilesVectorSource } from 'ol-pmtiles';
import * as React from 'react';
Expand Down Expand Up @@ -136,7 +137,8 @@ export class MainView extends React.Component<IProps, IStates> {
view: new View({
center: [0, 0],
zoom: 1
})
}),
controls: [new ScaleLine()]
});

const dragAndDropInteraction = new DragAndDrop({
Expand Down

0 comments on commit 9daaf22

Please sign in to comment.