Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Nov 2, 2022
1 parent 526bff2 commit 0db9368
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Map/Map.jsx
Expand Up @@ -36,7 +36,7 @@ class Map extends React.PureComponent {
keyboardEventTarget: undefined,
maxTilesLoading: undefined,
moveTolerance: undefined,
pixelRation: undefined,
pixelRatio: undefined,
view: new ol.View({ center: [0, 0], zoom: 3 }),
controls: undefined,
interactions: undefined,
Expand Down Expand Up @@ -82,26 +82,20 @@ class Map extends React.PureComponent {

init() {
let options = getOptions(assign(this.options, this.props));

options.target = options.target || this.mapRef;

if (!(options.view instanceof ol.View)) {
options.view = new ol.View(options.view);
}

options.controls = control
.defaults(this.controlsDefaults)
.extend(this.controls);
options.interactions = interaction
.defaults(this.interactionsDefaults)
.extend(this.interactions);

options.layers = this.layers;
options.overlays = this.overlays;

this.map = new ol.Map(options);
this.mapRendered = true;

let events = getEvents(this.events, this.props);
for (let event in events) {
this.map.on(event, events[event]);
Expand Down

0 comments on commit 0db9368

Please sign in to comment.