Skip to content

Commit

Permalink
Merge branch 'hotfix/0.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornd committed May 31, 2012
2 parents 41bd72a + fe66ca2 commit 7c65a65
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion converter/converter.py
@@ -1,5 +1,5 @@
#
# jVectorMap version 0.2.2
# jVectorMap version 0.2.3
#
# Copyright 2011-2012, Kirill Lebedev
# Licensed under the MIT license.
Expand Down
4 changes: 2 additions & 2 deletions jquery-jvectormap.js
@@ -1,5 +1,5 @@
/**
* jVectorMap version 0.2.2
* jVectorMap version 0.2.3
*
* Copyright 2011-2012, Kirill Lebedev
* Licensed under the MIT license.
Expand Down Expand Up @@ -715,7 +715,7 @@
}

x = (lng - centralMeridian) / 360 * WorldMap.circumference,
y = (180 / Math.PI * (5 / 4) * Math.log(Math.tan(Math.PI / 4 + (4 / 5) * lat * Math.PI / 360))) / 360 * WorldMap.circumference;
y = (180 / Math.PI * (5 / 4) * Math.log(Math.tan(Math.PI / 4 + (4 / 5) * -lat * Math.PI / 360))) / 360 * WorldMap.circumference;

inset = this.getInsetForPoint(x, y);
if (inset) {
Expand Down
8 changes: 4 additions & 4 deletions tests/markers-usa.html
Expand Up @@ -12,10 +12,10 @@
$('.map').vectorMap({
map: 'us_en',
markers: [
[-61.18, -149.53],
[-21.18, -157.49],
{latLng: [-40.39, -73.56], name: 'New York City', r: 8, fill: 'yellow'},
{latLng: [-41.52, -87.37], fill: 'red', r: 10}
[61.18, -149.53],
[21.18, -157.49],
{latLng: [40.39, -73.56], name: 'New York City', r: 8, fill: 'yellow'},
{latLng: [41.52, -87.37], fill: 'red', r: 10}
],
onMarkerLabelShow: function(event, label, index){
console.log('label-show', label, index);
Expand Down
11 changes: 6 additions & 5 deletions tests/markers.html
Expand Up @@ -13,11 +13,12 @@
map: 'world_en',
markers: [
[0, 0],
[-48.51, 2.21],
[33.51, 151.12],
{latLng: [21.13, -175.2], name: 'Tonga'},
{latLng: [-1.3, 103.8], name: 'Singapore'},
{latLng: [-22.2, 114.1], name: 'Hong Kong'}
[48.51, 2.21],
[-33.51, 151.12],
[64.623877,56.25],
{latLng: [-21.13, -175.2], name: 'Tonga'},
{latLng: [1.3, 103.8], name: 'Singapore'},
{latLng: [22.2, 114.1], name: 'Hong Kong'}
]
});
});
Expand Down

0 comments on commit 7c65a65

Please sign in to comment.