Skip to content

Commit

Permalink
[BUILD]
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Aug 22, 2023
1 parent 35b910a commit 46cc9c7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
25 changes: 21 additions & 4 deletions dist/ol-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -17946,7 +17946,7 @@ ol.control.VideoRecorder = class olcontrolVideoRecorder extends ol.control.Contr
ol.ext.element.create('BUTTON', {
type: 'button',
className: 'ol-start',
title: 'start',
title: ol.control.VideoRecorder.prototype.tips.start,
click: function () {
this.start()
}.bind(this),
Expand All @@ -17955,7 +17955,7 @@ ol.control.VideoRecorder = class olcontrolVideoRecorder extends ol.control.Contr
ol.ext.element.create('BUTTON', {
type: 'button',
className: 'ol-stop',
title: 'stop',
title: ol.control.VideoRecorder.prototype.tips.stop,
click: function () {
this.stop()
}.bind(this),
Expand All @@ -17964,7 +17964,7 @@ ol.control.VideoRecorder = class olcontrolVideoRecorder extends ol.control.Contr
ol.ext.element.create('BUTTON', {
type: 'button',
className: 'ol-pause',
title: 'pause',
title: ol.control.VideoRecorder.prototype.tips.pause,
click: function () {
this.pause()
}.bind(this),
Expand All @@ -17973,7 +17973,7 @@ ol.control.VideoRecorder = class olcontrolVideoRecorder extends ol.control.Contr
ol.ext.element.create('BUTTON', {
type: 'button',
className: 'ol-resume',
title: 'resume',
title: ol.control.VideoRecorder.prototype.tips.resume,
click: function () {
this.resume()
}.bind(this),
Expand All @@ -17997,6 +17997,16 @@ ol.control.VideoRecorder = class olcontrolVideoRecorder extends ol.control.Contr
target: ol.ext.element.create('DIV')
})
}
/** Set button title
* @param {string} button button name (start, stop, pause or resume)
* @param {string} title
*/
setTooltip(button, title) {
var elt = this.element.querySelector('button.ol-'+button)
if (elt) {
elt.title = title;
}
}
/**
* Remove the control from its current map and attach it to the new map.
* Subclasses may set up event handlers to get notified about changes to
Expand Down Expand Up @@ -18115,6 +18125,13 @@ ol.control.VideoRecorder = class olcontrolVideoRecorder extends ol.control.Contr
}
}
}
/** Default button tips */
ol.control.VideoRecorder.prototype.tips = {
start: 'start video',
stop: 'stop',
pause: 'pause',
resume: 'resume'
}

/*
Using WMS Layer with EPSG:4326 projection.
Expand Down
2 changes: 1 addition & 1 deletion dist/ol-ext.min.js

Large diffs are not rendered by default.

0 comments on commit 46cc9c7

Please sign in to comment.