Skip to content

Commit

Permalink
requested change
Browse files Browse the repository at this point in the history
  • Loading branch information
roefem committed Aug 22, 2024
1 parent 848417b commit 8ea1b3f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/commonjs/zoneerder/components/oe-fullscreen.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commonjs/zoneerder/components/oe-fullscreen.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/native-modules/zoneerder/components/oe-fullscreen.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/gis-utils/components/ol-geolocate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ export class Geolocate extends ol.control.Control {
super(optOptions);
this.options = optOptions || {};

const tipLabel = this.options.tipLabel ? this.options.tipLabel : 'Zoom naar je eigen locatie';

this.element = document.createElement('div');
this.element.className = 'ol-geolocate ol-control ol-unselectable';

const button = document.createElement('button');
const tipLabel = this.options.tipLabel ? this.options.tipLabel : 'Zoom naar je eigen locatie';
button.setAttribute('title', tipLabel);
button.innerHTML = '<i class="fa fa-map-marker"></i>';
this.element.appendChild(button);
Expand Down
3 changes: 1 addition & 2 deletions src/zoneerder/components/oe-fullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export class OeFullscreen extends ol.control.Control {
super(optOptions);
this.options = optOptions || {};

const tipLabel = this.options.tipLabel ? this.options.tipLabel : 'Vergroot / verklein het scherm';

const className = this.options.className || 'full-screen';
this.element = document.createElement('div');
this.element.className = `${className} ol-control ol-unselectable`;
Expand All @@ -27,6 +25,7 @@ export class OeFullscreen extends ol.control.Control {
}

const button = document.createElement('button');
const tipLabel = this.options.tipLabel ? this.options.tipLabel : 'Vergroot / verklein het scherm';
button.setAttribute('title', tipLabel);
button.className = 'full-screen-false';
button.addEventListener('click', this.toggleFullscreen.bind(this), false);
Expand Down

0 comments on commit 8ea1b3f

Please sign in to comment.