/* Copyright (c) 2016 Jean-Marc VIGLINO, released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ /** A simple push button control * * @constructor * @extends {ol.control.Control} * @param {Object=} opt_options Control options. * className {String} class of the control * title {String} title of the control * html {String} html to insert in the control * handleClick {function} callback when control is clicked (or use change:active event) */ ol.control.Button = function(options) { options = options || {}; var element = $("
").addClass((options.className||"") + ' ol-button ol-unselectable ol-control'); var self = this; $("