/* 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). */ import ol from 'ol' import ol_control_Control from 'ol/control/control' import ol_Sphere from 'ol/sphere' import ol_proj from 'ol/proj' /** * @classdesc OpenLayers 3 Profil Control. * Draw a profil of a feature (with a 3D geometry) * * @constructor * @extends {ol_control_Control} * @fires over, out, show * @param {Object=} _ol_control_ opt_options. * */ var ol_control_Profil = function(opt_options) { var options = opt_options || {}; this.info = options.info || ol_control_Profil.prototype.info; var self = this; var element; if (options.target) { element = $("
").addClass(options.className || "ol-profil"); } else { element = $("
").addClass((options.className || 'ol-profil') +' ol-unselectable ol-control ol-collapsed'); this.button = $("