Skip to content

Commit

Permalink
Merge pull request #71 from Disfactory/feature/map-attributions
Browse files Browse the repository at this point in the history
Display map attribute
  • Loading branch information
Yukaii authored Feb 10, 2021
2 parents acaf68f + f7da19b commit 09a71fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { get as getProjection, transform } from 'ol/proj'
import { getWidth, getTopLeft } from 'ol/extent'
import { Tile as TileLayer, Vector as VectorLayer, Layer } from 'ol/layer'
import { Vector as VectorSource, OSM } from 'ol/source'
import { Zoom, ScaleLine, Rotate } from 'ol/control'
import { Zoom, ScaleLine, Rotate, Attribution } from 'ol/control'
import Geolocation from 'ol/Geolocation'
import { defaults as defaultInteractions, PinchRotate } from 'ol/interaction'

Expand Down Expand Up @@ -452,7 +452,8 @@ export class OLMap {
zoomOutLabel: mapControlButtons.zoomOut
}),
new ScaleLine(),
new Rotate()
new Rotate(),
new Attribution()
],
interactions: defaultInteractions({
pinchRotate: false
Expand Down

0 comments on commit 09a71fc

Please sign in to comment.