/home/techb158/ileadtechnology.com/public/admin/bower_components/jvectormap/src
NameSizeModeActions
abstract-canvas-element.js29080644editdlrm
abstract-element.js16520644editdlrm
abstract-shape-element.js18330644editdlrm
color-scale.js10280644editdlrm
data-series.js52550644editdlrm
index.php530644editdlrm
jvectormap.js42330644editdlrm
legend.js26700644editdlrm
map-object.js19990644editdlrm
map.js405910644editdlrm
marker.js20660644editdlrm
multimap.js44350644editdlrm
numeric-scale.js42580644editdlrm
ordinal-scale.js3520644editdlrm
proj.js65680644editdlrm
region.js12480644editdlrm
simple-scale.js1330644editdlrm
svg-canvas-element.js8770644editdlrm
svg-circle-element.js1800644editdlrm
svg-element.js12260644editdlrm
svg-group-element.js2380644editdlrm
svg-image-element.js11000644editdlrm
svg-path-element.js2210644editdlrm
svg-shape-element.js18770644editdlrm
svg-text-element.js3930644editdlrm
vector-canvas.js5040644editdlrm
vml-canvas-element.js15400644editdlrm
vml-circle-element.js8200644editdlrm
vml-element.js29120644editdlrm
vml-group-element.js3400644editdlrm
vml-image-element.js14490644editdlrm
vml-path-element.js29470644editdlrm
vml-shape-element.js14490644editdlrm
Edit: /home/techb158/ileadtechnology.com/public/admin/bower_components/jvectormap/src/proj.js (6568B)
/** * Contains methods for transforming point on sphere to * Cartesian coordinates using various projections. * @class */ jvm.Proj = { degRad: 180 / Math.PI, radDeg: Math.PI / 180, radius: 6381372, sgn: function(n){ if (n > 0) { return 1; } else if (n < 0) { return -1; } else { return n; } }, /** * Converts point on sphere to the Cartesian coordinates using Miller projection * @param {Number} lat Latitude in degrees * @param {Number} lng Longitude in degrees * @param {Number} c Central meridian in degrees */ mill: function(lat, lng, c){ return { x: this.radius * (lng - c) * this.radDeg, y: - this.radius * Math.log(Math.tan((45 + 0.4 * lat) * this.radDeg)) / 0.8 }; }, /** * Inverse function of mill() * Converts Cartesian coordinates to point on sphere using Miller projection * @param {Number} x X of point in Cartesian system as integer * @param {Number} y Y of point in Cartesian system as integer * @param {Number} c Central meridian in degrees */ mill_inv: function(x, y, c){ return { lat: (2.5 * Math.atan(Math.exp(0.8 * y / this.radius)) - 5 * Math.PI / 8) * this.degRad, lng: (c * this.radDeg + x / this.radius) * this.degRad }; }, /** * Converts point on sphere to the Cartesian coordinates using Mercator projection * @param {Number} lat Latitude in degrees * @param {Number} lng Longitude in degrees * @param {Number} c Central meridian in degrees */ merc: function(lat, lng, c){ return { x: this.radius * (lng - c) * this.radDeg, y: - this.radius * Math.log(Math.tan(Math.PI / 4 + lat * Math.PI / 360)) }; }, /** * Inverse function of merc() * Converts Cartesian coordinates to point on sphere using Mercator projection * @param {Number} x X of point in Cartesian system as integer * @param {Number} y Y of point in Cartesian system as integer * @param {Number} c Central meridian in degrees */ merc_inv: function(x, y, c){ return { lat: (2 * Math.atan(Math.exp(y / this.radius)) - Math.PI / 2) * this.degRad, lng: (c * this.radDeg + x / this.radius) * this.degRad }; }, /** * Converts point on sphere to the Cartesian coordinates using Albers Equal-Area Conic * projection * @see Albers Equal-Area Conic projection * @param {Number} lat Latitude in degrees * @param {Number} lng Longitude in degrees * @param {Number} c Central meridian in degrees */ aea: function(lat, lng, c){ var fi0 = 0, lambda0 = c * this.radDeg, fi1 = 29.5 * this.radDeg, fi2 = 45.5 * this.radDeg, fi = lat * this.radDeg, lambda = lng * this.radDeg, n = (Math.sin(fi1)+Math.sin(fi2)) / 2, C = Math.cos(fi1)*Math.cos(fi1)+2*n*Math.sin(fi1), theta = n*(lambda-lambda0), ro = Math.sqrt(C-2*n*Math.sin(fi))/n, ro0 = Math.sqrt(C-2*n*Math.sin(fi0))/n; return { x: ro * Math.sin(theta) * this.radius, y: - (ro0 - ro * Math.cos(theta)) * this.radius }; }, /** * Converts Cartesian coordinates to the point on sphere using Albers Equal-Area Conic * projection * @see Albers Equal-Area Conic projection * @param {Number} x X of point in Cartesian system as integer * @param {Number} y Y of point in Cartesian system as integer * @param {Number} c Central meridian in degrees */ aea_inv: function(xCoord, yCoord, c){ var x = xCoord / this.radius, y = yCoord / this.radius, fi0 = 0, lambda0 = c * this.radDeg, fi1 = 29.5 * this.radDeg, fi2 = 45.5 * this.radDeg, n = (Math.sin(fi1)+Math.sin(fi2)) / 2, C = Math.cos(fi1)*Math.cos(fi1)+2*n*Math.sin(fi1), ro0 = Math.sqrt(C-2*n*Math.sin(fi0))/n, ro = Math.sqrt(x*x+(ro0-y)*(ro0-y)), theta = Math.atan( x / (ro0 - y) ); return { lat: (Math.asin((C - ro * ro * n * n) / (2 * n))) * this.degRad, lng: (lambda0 + theta / n) * this.degRad }; }, /** * Converts point on sphere to the Cartesian coordinates using Lambert conformal * conic projection * @see Lambert Conformal Conic Projection * @param {Number} lat Latitude in degrees * @param {Number} lng Longitude in degrees * @param {Number} c Central meridian in degrees */ lcc: function(lat, lng, c){ var fi0 = 0, lambda0 = c * this.radDeg, lambda = lng * this.radDeg, fi1 = 33 * this.radDeg, fi2 = 45 * this.radDeg, fi = lat * this.radDeg, n = Math.log( Math.cos(fi1) * (1 / Math.cos(fi2)) ) / Math.log( Math.tan( Math.PI / 4 + fi2 / 2) * (1 / Math.tan( Math.PI / 4 + fi1 / 2) ) ), F = ( Math.cos(fi1) * Math.pow( Math.tan( Math.PI / 4 + fi1 / 2 ), n ) ) / n, ro = F * Math.pow( 1 / Math.tan( Math.PI / 4 + fi / 2 ), n ), ro0 = F * Math.pow( 1 / Math.tan( Math.PI / 4 + fi0 / 2 ), n ); return { x: ro * Math.sin( n * (lambda - lambda0) ) * this.radius, y: - (ro0 - ro * Math.cos( n * (lambda - lambda0) ) ) * this.radius }; }, /** * Converts Cartesian coordinates to the point on sphere using Lambert conformal conic * projection * @see Lambert Conformal Conic Projection * @param {Number} x X of point in Cartesian system as integer * @param {Number} y Y of point in Cartesian system as integer * @param {Number} c Central meridian in degrees */ lcc_inv: function(xCoord, yCoord, c){ var x = xCoord / this.radius, y = yCoord / this.radius, fi0 = 0, lambda0 = c * this.radDeg, fi1 = 33 * this.radDeg, fi2 = 45 * this.radDeg, n = Math.log( Math.cos(fi1) * (1 / Math.cos(fi2)) ) / Math.log( Math.tan( Math.PI / 4 + fi2 / 2) * (1 / Math.tan( Math.PI / 4 + fi1 / 2) ) ), F = ( Math.cos(fi1) * Math.pow( Math.tan( Math.PI / 4 + fi1 / 2 ), n ) ) / n, ro0 = F * Math.pow( 1 / Math.tan( Math.PI / 4 + fi0 / 2 ), n ), ro = this.sgn(n) * Math.sqrt(x*x+(ro0-y)*(ro0-y)), theta = Math.atan( x / (ro0 - y) ); return { lat: (2 * Math.atan(Math.pow(F/ro, 1/n)) - Math.PI / 2) * this.degRad, lng: (lambda0 + theta / n) * this.degRad }; } };