PHP Classes

File: vendors/gentelella/vendors/jqvmap/src/JQVMap/zoomIn.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/jqvmap/src/JQVMap/zoomIn.js   Download  
File: vendors/gentelella/vendors/jqvmap/src/JQVMap/zoomIn.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 633 bytes
 

Contents

Class file image Download
JQVMap.prototype.zoomIn = function () { var map = this; var sliderDelta = (jQuery('#zoom').innerHeight() - 6 * 2 - 15 * 2 - 3 * 2 - 7 - 6) / (this.zoomMaxStep - this.zoomCurStep); if (map.zoomCurStep < map.zoomMaxStep) { map.transX -= (map.width / map.scale - map.width / (map.scale * map.zoomStep)) / 2; map.transY -= (map.height / map.scale - map.height / (map.scale * map.zoomStep)) / 2; map.setScale(map.scale * map.zoomStep); map.zoomCurStep++; var $slider = jQuery('#zoomSlider'); $slider.css('top', parseInt($slider.css('top'), 10) - sliderDelta); map.container.trigger('zoomIn'); } };