svgmap 2.6.0 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +43 -74
- package/assets/map-optimized.svg +70 -19
- package/demo/es6/data/gdp.js +1729 -193
- package/demo/es6/data/personHeight.js +190 -190
- package/demo/es6/data/population.js +245 -245
- package/demo/es6/index.js +16 -2
- package/demo/es6/package-lock.json +29 -13
- package/demo/es6/package.json +1 -1
- package/demo/html/data/gdp.js +1729 -193
- package/demo/html/data/personHeight.js +190 -190
- package/demo/html/data/population.js +245 -245
- package/demo/html/index.html +180 -168
- package/dist/svgMap.css +53 -5
- package/dist/svgMap.js +243 -38
- package/dist/svgMap.min.css +1 -1
- package/dist/svgMap.min.js +1 -1
- package/package.json +3 -3
- package/src/js/svgMap.js +243 -38
- package/src/scss/map.scss +58 -6
package/dist/svgMap.js
CHANGED
|
@@ -31,6 +31,15 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
31
31
|
// Zoom with mousewheel
|
|
32
32
|
mouseWheelZoomEnabled: true,
|
|
33
33
|
|
|
34
|
+
// Allow zooming only when one of the following keys is pressed: 'shift', 'control', 'alt' (Windows), 'command' (MacOS), 'option' (MacOS)
|
|
35
|
+
mouseWheelZoomWithKey: false,
|
|
36
|
+
|
|
37
|
+
// The message to show for non MacOS systems
|
|
38
|
+
mouseWheelKeyMessage: 'Press the [ALT] key to zoom',
|
|
39
|
+
|
|
40
|
+
// The message to show for MacOS
|
|
41
|
+
mouseWheelKeyMessageMac: 'Press the [COMMAND] key to zoom',
|
|
42
|
+
|
|
34
43
|
// Data colors
|
|
35
44
|
colorMax: '#CC0033',
|
|
36
45
|
colorMin: '#FFE5D9',
|
|
@@ -63,7 +72,10 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
63
72
|
// Country specific options
|
|
64
73
|
countries: {
|
|
65
74
|
// Western Sahara: Set to false to combine Morocco (MA) and Western Sahara (EH)
|
|
66
|
-
EH: true
|
|
75
|
+
EH: true,
|
|
76
|
+
|
|
77
|
+
// Crimea: Set to 'RU' to make the Crimea part of Russia, by default it is part of the Ukraine
|
|
78
|
+
Crimea: 'UA'
|
|
67
79
|
}
|
|
68
80
|
};
|
|
69
81
|
|
|
@@ -85,8 +97,28 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
85
97
|
// Global id
|
|
86
98
|
this.id = this.options.targetElementID;
|
|
87
99
|
|
|
88
|
-
//
|
|
100
|
+
// Wrapper element
|
|
89
101
|
this.wrapper = document.getElementById(this.options.targetElementID);
|
|
102
|
+
this.wrapper.classList.add('svgMap-wrapper');
|
|
103
|
+
|
|
104
|
+
// Container element
|
|
105
|
+
this.container = document.createElement('div');
|
|
106
|
+
this.container.classList.add('svgMap-container');
|
|
107
|
+
this.wrapper.appendChild(this.container);
|
|
108
|
+
|
|
109
|
+
// Block scrolling when option is enabled
|
|
110
|
+
if (
|
|
111
|
+
this.options.mouseWheelZoomEnabled &&
|
|
112
|
+
this.options.mouseWheelZoomWithKey
|
|
113
|
+
) {
|
|
114
|
+
this.addMouseWheelZoomNotice();
|
|
115
|
+
this.addMouseWheelZoomWithKeyEvents();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Map container element
|
|
119
|
+
this.mapContainer = document.createElement('div');
|
|
120
|
+
this.mapContainer.classList.add('svgMap-map-container');
|
|
121
|
+
this.container.appendChild(this.mapContainer);
|
|
90
122
|
|
|
91
123
|
// Create the map
|
|
92
124
|
this.createMap();
|
|
@@ -378,8 +410,8 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
378
410
|
element.setAttribute('fill', this.options.colorNoData);
|
|
379
411
|
return;
|
|
380
412
|
}
|
|
381
|
-
if (typeof
|
|
382
|
-
element.setAttribute('fill', data.values[countryID]
|
|
413
|
+
if (typeof data.values[countryID].color != 'undefined') {
|
|
414
|
+
element.setAttribute('fill', data.values[countryID].color);
|
|
383
415
|
return;
|
|
384
416
|
}
|
|
385
417
|
var value = Math.max(
|
|
@@ -657,7 +689,7 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
657
689
|
this.mapWrapper = this.createElement(
|
|
658
690
|
'div',
|
|
659
691
|
'svgMap-map-wrapper',
|
|
660
|
-
this.
|
|
692
|
+
this.mapContainer
|
|
661
693
|
);
|
|
662
694
|
this.mapImage = document.createElementNS(
|
|
663
695
|
'http://www.w3.org/2000/svg',
|
|
@@ -713,6 +745,19 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
713
745
|
}
|
|
714
746
|
delete mapPaths['MA-EH'];
|
|
715
747
|
|
|
748
|
+
if (this.options.countries.Crimea === 'RU') {
|
|
749
|
+
mapPaths.RU.d = mapPaths['RU-WITH-CRIMEA'].d;
|
|
750
|
+
mapPaths.UA.d = mapPaths['UA-WITHOUT-CRIMEA'].d;
|
|
751
|
+
}
|
|
752
|
+
delete mapPaths['RU-WITH-CRIMEA'];
|
|
753
|
+
delete mapPaths['UA-WITHOUT-CRIMEA'];
|
|
754
|
+
|
|
755
|
+
// Expose tooltipMove function
|
|
756
|
+
|
|
757
|
+
this.tooltipMoveEvent = function (e) {
|
|
758
|
+
this.moveTooltip(e);
|
|
759
|
+
}.bind(this);
|
|
760
|
+
|
|
716
761
|
// Add map elements
|
|
717
762
|
Object.keys(mapPaths).forEach(
|
|
718
763
|
function (countryID) {
|
|
@@ -736,23 +781,14 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
736
781
|
|
|
737
782
|
this.mapImage.appendChild(countryElement);
|
|
738
783
|
|
|
739
|
-
['mouseenter', 'touchdown'].forEach(
|
|
740
|
-
function (event) {
|
|
741
|
-
countryElement.addEventListener(
|
|
742
|
-
event,
|
|
743
|
-
function () {
|
|
744
|
-
countryElement.closest('g').appendChild(countryElement);
|
|
745
|
-
}.bind(this),
|
|
746
|
-
{ passive: true }
|
|
747
|
-
);
|
|
748
|
-
}.bind(this)
|
|
749
|
-
);
|
|
750
|
-
|
|
751
784
|
// Tooltip events
|
|
752
785
|
// Add tooltip when touch is used
|
|
753
786
|
countryElement.addEventListener(
|
|
754
787
|
'touchstart',
|
|
755
788
|
function (e) {
|
|
789
|
+
countryElement.parentNode.appendChild(countryElement);
|
|
790
|
+
countryElement.classList.add('svgMap-active');
|
|
791
|
+
|
|
756
792
|
var countryID = countryElement.getAttribute('data-id');
|
|
757
793
|
var countryLink = countryElement.getAttribute('data-link');
|
|
758
794
|
if (this.options.touchLink) {
|
|
@@ -764,6 +800,14 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
764
800
|
this.setTooltipContent(this.getTooltipContent(countryID));
|
|
765
801
|
this.showTooltip(e);
|
|
766
802
|
this.moveTooltip(e);
|
|
803
|
+
|
|
804
|
+
countryElement.addEventListener(
|
|
805
|
+
'touchmove',
|
|
806
|
+
this.tooltipMoveEvent,
|
|
807
|
+
{
|
|
808
|
+
passive: true
|
|
809
|
+
}
|
|
810
|
+
);
|
|
767
811
|
}.bind(this),
|
|
768
812
|
{ passive: true }
|
|
769
813
|
);
|
|
@@ -771,17 +815,17 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
771
815
|
countryElement.addEventListener(
|
|
772
816
|
'mouseenter',
|
|
773
817
|
function (e) {
|
|
818
|
+
countryElement.parentNode.appendChild(countryElement);
|
|
774
819
|
var countryID = countryElement.getAttribute('data-id');
|
|
775
820
|
this.setTooltipContent(this.getTooltipContent(countryID));
|
|
776
821
|
this.showTooltip(e);
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
this.moveTooltip(e);
|
|
822
|
+
countryElement.addEventListener(
|
|
823
|
+
'mousemove',
|
|
824
|
+
this.tooltipMoveEvent,
|
|
825
|
+
{
|
|
826
|
+
passive: true
|
|
827
|
+
}
|
|
828
|
+
);
|
|
785
829
|
}.bind(this),
|
|
786
830
|
{ passive: true }
|
|
787
831
|
);
|
|
@@ -801,7 +845,17 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
801
845
|
this.options.data.values[countryID]['linkTarget']
|
|
802
846
|
);
|
|
803
847
|
}
|
|
804
|
-
|
|
848
|
+
|
|
849
|
+
let dragged = false;
|
|
850
|
+
countryElement.addEventListener('mousedown', function(){dragged = false});
|
|
851
|
+
countryElement.addEventListener('touchstart', function(){dragged = false});
|
|
852
|
+
countryElement.addEventListener('mousemove', function(){dragged = true});
|
|
853
|
+
countryElement.addEventListener('touchmove', function(){dragged = true});
|
|
854
|
+
const clickHandler = function (e) {
|
|
855
|
+
if (dragged) {
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
|
|
805
859
|
const link = countryElement.getAttribute('data-link');
|
|
806
860
|
const target = countryElement.getAttribute('data-link-target');
|
|
807
861
|
|
|
@@ -810,20 +864,41 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
810
864
|
} else {
|
|
811
865
|
window.location.href = link;
|
|
812
866
|
}
|
|
813
|
-
}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
countryElement.addEventListener('click', clickHandler);
|
|
870
|
+
countryElement.addEventListener('touchend', clickHandler);
|
|
814
871
|
}
|
|
815
872
|
|
|
816
|
-
// Hide tooltip when
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
873
|
+
// Hide tooltip when mouse leaves the country area
|
|
874
|
+
countryElement.addEventListener(
|
|
875
|
+
'mouseleave',
|
|
876
|
+
function () {
|
|
877
|
+
this.hideTooltip();
|
|
878
|
+
countryElement.removeEventListener(
|
|
879
|
+
'mousemove',
|
|
880
|
+
this.tooltipMoveEvent,
|
|
881
|
+
{
|
|
882
|
+
passive: true
|
|
883
|
+
}
|
|
884
|
+
);
|
|
885
|
+
}.bind(this),
|
|
886
|
+
{ passive: true }
|
|
887
|
+
);
|
|
888
|
+
|
|
889
|
+
// Hide tooltip when touch ends
|
|
890
|
+
countryElement.addEventListener(
|
|
891
|
+
'touchend',
|
|
892
|
+
function () {
|
|
893
|
+
this.hideTooltip();
|
|
894
|
+
countryElement.classList.remove('svgMap-active');
|
|
895
|
+
countryElement.removeEventListener(
|
|
896
|
+
'touchmove',
|
|
897
|
+
this.tooltipMoveEvent,
|
|
824
898
|
{ passive: true }
|
|
825
899
|
);
|
|
826
|
-
}.bind(this)
|
|
900
|
+
}.bind(this),
|
|
901
|
+
{ passive: true }
|
|
827
902
|
);
|
|
828
903
|
}.bind(this)
|
|
829
904
|
);
|
|
@@ -840,7 +915,8 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
840
915
|
maxZoom: this.options.maxZoom,
|
|
841
916
|
zoomScaleSensitivity: this.options.zoomScaleSensitivity,
|
|
842
917
|
controlIconsEnabled: false,
|
|
843
|
-
mouseWheelZoomEnabled: this.options.mouseWheelZoomEnabled,
|
|
918
|
+
mouseWheelZoomEnabled: this.options.mouseWheelZoomEnabled,
|
|
919
|
+
preventMouseEventsDefault: true,
|
|
844
920
|
onZoom: function () {
|
|
845
921
|
me.setControlStatuses();
|
|
846
922
|
},
|
|
@@ -996,6 +1072,126 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
996
1072
|
this.mapPanZoom[direction == 'in' ? 'zoomIn' : 'zoomOut']();
|
|
997
1073
|
};
|
|
998
1074
|
|
|
1075
|
+
// Add elements to show the zoom with keys notice
|
|
1076
|
+
|
|
1077
|
+
svgMap.prototype.addMouseWheelZoomNotice = function () {
|
|
1078
|
+
var noticeWrapper = document.createElement('div');
|
|
1079
|
+
noticeWrapper.classList.add('svgMap-block-zoom-notice');
|
|
1080
|
+
|
|
1081
|
+
var noticeContainer = document.createElement('div');
|
|
1082
|
+
noticeContainer.innerHTML =
|
|
1083
|
+
navigator.appVersion.indexOf('Mac') != -1
|
|
1084
|
+
? this.options.mouseWheelKeyMessageMac
|
|
1085
|
+
: this.options.mouseWheelKeyMessage;
|
|
1086
|
+
|
|
1087
|
+
noticeWrapper.append(noticeContainer);
|
|
1088
|
+
this.wrapper.append(noticeWrapper);
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
// Show the zoom with keys notice
|
|
1092
|
+
|
|
1093
|
+
svgMap.prototype.showMouseWheelZoomNotice = function (duration) {
|
|
1094
|
+
if (this.mouseWheelNoticeJustHidden) {
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
this.autoHideMouseWheelNoticeTimeout &&
|
|
1099
|
+
clearTimeout(this.autoHideMouseWheelNoticeTimeout);
|
|
1100
|
+
this.autoHideMouseWheelNoticeTimeout = setTimeout(
|
|
1101
|
+
function () {
|
|
1102
|
+
this.hideMouseWheelZoomNotice();
|
|
1103
|
+
}.bind(this),
|
|
1104
|
+
duration || 2400
|
|
1105
|
+
);
|
|
1106
|
+
|
|
1107
|
+
this.wrapper.classList.add('svgMap-block-zoom-notice-active');
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
// Hide the zoom with keys notice
|
|
1111
|
+
|
|
1112
|
+
svgMap.prototype.hideMouseWheelZoomNotice = function () {
|
|
1113
|
+
this.wrapper.classList.remove('svgMap-block-zoom-notice-active');
|
|
1114
|
+
this.autoHideMouseWheelNoticeTimeout &&
|
|
1115
|
+
clearTimeout(this.autoHideMouseWheelNoticeTimeout);
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
// Block shing the zoom wheel notice for some time
|
|
1119
|
+
|
|
1120
|
+
svgMap.prototype.blockMouseWheelZoomNotice = function (duration) {
|
|
1121
|
+
this.mouseWheelNoticeJustHidden = true;
|
|
1122
|
+
this.mouseWheelNoticeJustHiddenTimeout &&
|
|
1123
|
+
clearTimeout(this.mouseWheelNoticeJustHiddenTimeout);
|
|
1124
|
+
this.mouseWheelNoticeJustHiddenTimeout = setTimeout(
|
|
1125
|
+
function () {
|
|
1126
|
+
this.mouseWheelNoticeJustHidden = false;
|
|
1127
|
+
}.bind(this),
|
|
1128
|
+
duration || 600
|
|
1129
|
+
);
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
// Add the events when you are only allowed to scrool with a key pressed
|
|
1133
|
+
|
|
1134
|
+
svgMap.prototype.addMouseWheelZoomWithKeyEvents = function () {
|
|
1135
|
+
// Add events to wrapper
|
|
1136
|
+
this.wrapper.addEventListener(
|
|
1137
|
+
'wheel',
|
|
1138
|
+
function (ev) {
|
|
1139
|
+
if (!document.body.classList.contains('svgMap-zoom-key-pressed')) {
|
|
1140
|
+
this.showMouseWheelZoomNotice();
|
|
1141
|
+
} else {
|
|
1142
|
+
this.hideMouseWheelZoomNotice();
|
|
1143
|
+
this.blockMouseWheelZoomNotice();
|
|
1144
|
+
}
|
|
1145
|
+
}.bind(this),
|
|
1146
|
+
{
|
|
1147
|
+
passive: true
|
|
1148
|
+
}
|
|
1149
|
+
);
|
|
1150
|
+
|
|
1151
|
+
// Add with keydown
|
|
1152
|
+
document.addEventListener(
|
|
1153
|
+
'keydown',
|
|
1154
|
+
function (ev) {
|
|
1155
|
+
if (
|
|
1156
|
+
ev.key == 'Alt' ||
|
|
1157
|
+
ev.key == 'Control' ||
|
|
1158
|
+
ev.key == 'Meta' ||
|
|
1159
|
+
ev.key == 'Shift'
|
|
1160
|
+
) {
|
|
1161
|
+
document.body.classList.add('svgMap-zoom-key-pressed');
|
|
1162
|
+
this.hideMouseWheelZoomNotice();
|
|
1163
|
+
this.blockMouseWheelZoomNotice();
|
|
1164
|
+
}
|
|
1165
|
+
}.bind(this)
|
|
1166
|
+
);
|
|
1167
|
+
|
|
1168
|
+
// Fallback with wheel as sometimes it wont trigger when window is out of focus
|
|
1169
|
+
this.wrapper.addEventListener('wheel', function (ev) {
|
|
1170
|
+
if (ev.altKey || ev.ctrlKey || ev.metaKey || ev.shiftKey) {
|
|
1171
|
+
document.body.classList.add('svgMap-zoom-key-pressed');
|
|
1172
|
+
// TODO wont be removed when window out of focus
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
|
|
1176
|
+
// Only add following events to the document once
|
|
1177
|
+
if (document.body.classList.contains('svgMap-key-events-added')) {
|
|
1178
|
+
return false;
|
|
1179
|
+
}
|
|
1180
|
+
document.body.classList.add('svgMap-key-events-added');
|
|
1181
|
+
|
|
1182
|
+
// Remove with keyup
|
|
1183
|
+
document.addEventListener('keyup', function (ev) {
|
|
1184
|
+
if (
|
|
1185
|
+
ev.key == 'Alt' ||
|
|
1186
|
+
ev.key == 'Control' ||
|
|
1187
|
+
ev.key == 'Meta' ||
|
|
1188
|
+
ev.key == 'Shift'
|
|
1189
|
+
) {
|
|
1190
|
+
document.body.classList.remove('svgMap-zoom-key-pressed');
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
};
|
|
1194
|
+
|
|
999
1195
|
// Map paths
|
|
1000
1196
|
|
|
1001
1197
|
svgMap.prototype.mapPaths = {
|
|
@@ -1189,7 +1385,7 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
1189
1385
|
d: 'M690.3,902.7l-0.1-0.3l-0.4-0.2l-0.2-0.1l0.1,0.2l0.1,0.3l0.1,0.2l0.2,0.1L690.3,902.7L690.3,902.7z M695.8,901.4 L695.8,901.4l-0.3-0.1l-0.1,0.2l0.2,0.3l0.4,0.1L695.8,901.4L695.8,901.4z M682.9,900l-0.1,0.2l-0.4,0.1l0.2,0.3l0.6,0.4h0.4 l0.1-0.3l-0.1-0.6h-0.3L682.9,900L682.9,900z M685.7,898l-0.9-0.3l-0.4-0.3h-0.3l0.4,0.4l0.1,0.2l0.1,0.2l0.6,0.3l0.6,0.3l0.4,0.3 l-0.1,0.1l-0.8,0.3h-0.3l-0.2,0.1l0.4,0.2l0.6-0.1l0.2-0.1h0.2l0.3,0.1v0.2l-0.1,0.2l-0.2,0.2l-0.4,0.3l-0.6,0.4h-0.8l-0.7,0.7 l0.9,0.5l0.7,0.3h0.9v-0.1l0.2-0.1h0.3l0.1-0.1l0.2-0.4v-0.6h0.2l0.3,0.1l0.7-0.1l0.3-0.1l0.6-0.9l0.4-0.8l0.2-0.4l0.3-0.2l0.1-0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l0.1,0.3l0.6,0.2h0.3h0.3l0.2-0.1l-0.1-0.2L945.1,182.9L945.1,182.9z M947.6,182.4l-0.8-0.2l-0.6-0.3l-1,0.1l0.7,1.1l0.8,0.7l0.4,0.2v-0.1v-0.2l-0.4-0.5l-0.1-0.1V183l0.1-0.1h0.2l0.3,0.2h0.2L947.6,182.4L947.6,182.4z M948.6,182.2l-0.3-0.2l-0.4-0.4v0.5v0.3v0.1h0.1l0.3,0.1L948.6,182.2L948.6,182.2z'
|
|
1193
1389
|
},
|
|
1194
1390
|
'FJ': {
|
|
1195
1391
|
d: 'M1976.7,674.4l-3.7,2l-1.9,0.3l-3.1,1.3l0.2,2.4l3.9-1.3l3.9-1.6L1976.7,674.4L1976.7,674.4z M1965.7,682.5l-1.6,1 l-2.3-0.8l-2.7,2.2l-0.2,2.8l2.9,0.8l3.6-0.9l1.8-3.3L1965.7,682.5L1965.7,682.5z'
|
|
@@ -1641,8 +1837,17 @@ function svgMapWrapper(svgPanZoom) {
|
|
|
1641
1837
|
'ZW': {
|
|
1642
1838
|
d: 'M1148.2,713.7l6.2-7.2l1.6-4.6l0.9-0.6l0.8-3.7l-0.8-1.9l0.5-4.7l1.3-4.4l0.3-8.1l-2.8-2l-2.6-0.5l-1.1-1.6 l-2.6-1.3l-4.6,0.1l-0.3-2.4l-4.2,0.9l-3.3,2.5l-0.7,2.2l-2,0.5l-5.1,5.3l-3.2,4.1l-1.9,0.1l-1.7-0.7l-6.2-0.7l1.9,5.1l1.1,1.1 l1.6,3.7l6,7l2.3,0.7l-0.1,2.2l1.5,4.1l4.2,0.9l3.4,2.9l2.2,0.1l2.6,1.1l1.9-0.8L1148.2,713.7L1148.2,713.7z'
|
|
1643
1839
|
},
|
|
1840
|
+
'XK': {
|
|
1841
|
+
d: 'M1080,299.8l1.2-0.5l0.5-2l0.9-0.4l0.8,0.9l1,0.4l0.8,1l0.8,0.3l1.1,1.1h0.8l-0.5,1.5l-0.5,0.7l0.2,0.5l-1.1,0.2l-2.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9l-7.6-2l-2.9,0.1l-3.6-2.9l-3.5,1l-6.6-2.2l-0.2-1.2l-2.2-2.7l-4.7-2.1l0.9-1.3L1138.5,241L1138.5,241z'
|
|
1646
1851
|
}
|
|
1647
1852
|
};
|
|
1648
1853
|
|
package/dist/svgMap.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! svgMap | https://github.com/StephanWagner/svgMap | MIT License | Copyright Stephan Wagner | https://stephanwagner.me */
|
|
2
|
-
.svgMap-map-wrapper{position:relative;width:100%;padding-top:50%;overflow:hidden;background:#d9ecff;color:#111}.svgMap-map-wrapper *{box-sizing:border-box}.svgMap-map-wrapper :focus:not(:focus-visible){outline:0}.svgMap-map-wrapper .svgMap-map-image{display:block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.svgMap-map-wrapper .svgMap-map-controls-wrapper{position:absolute;bottom:10px;left:10px;z-index:1;display:flex;overflow:hidden;border-radius:2px;box-shadow:0 0 0 2px rgba(0,0,0,.1)}.svgMap-map-wrapper .svgMap-map-controls-move,.svgMap-map-wrapper .svgMap-map-controls-zoom{display:flex;margin-right:5px;overflow:hidden;background:#fff}.svgMap-map-wrapper .svgMap-map-controls-move:last-child,.svgMap-map-wrapper .svgMap-map-controls-zoom:last-child{margin-right:0}.svgMap-map-wrapper .svgMap-control-button{background-color:transparent;border:none;border-radius:0;color:inherit;font:inherit;line-height:inherit;margin:0;padding:0;overflow:visible;text-transform:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;width:30px;height:30px;position:relative}.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button:after,.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#666;transition:background-color
|
|
2
|
+
.svgMap-container,.svgMap-wrapper{position:relative}.svgMap-block-zoom-notice{position:absolute;z-index:2;top:100%;left:0;right:0;bottom:0;background:rgba(0,0,0,.8);pointer-events:none;opacity:0;color:#fff;transition:opacity 250ms}.svgMap-block-zoom-notice-active .svgMap-block-zoom-notice{pointer-events:all;top:0;opacity:1}.svgMap-block-zoom-notice>div{position:absolute;top:50%;left:0;right:0;text-align:center;padding:0 32px;transform:translateY(-50%);font-size:28px}@media (max-width:900px){.svgMap-block-zoom-notice>div{font-size:22px}}.svgMap-map-wrapper{position:relative;width:100%;padding-top:50%;overflow:hidden;background:#d9ecff;color:#111}.svgMap-map-wrapper *{box-sizing:border-box}.svgMap-map-wrapper :focus:not(:focus-visible){outline:0}.svgMap-map-wrapper .svgMap-map-image{display:block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.svgMap-map-wrapper .svgMap-map-controls-wrapper{position:absolute;bottom:10px;left:10px;z-index:1;display:flex;overflow:hidden;border-radius:2px;box-shadow:0 0 0 2px rgba(0,0,0,.1)}.svgMap-map-wrapper .svgMap-map-controls-move,.svgMap-map-wrapper .svgMap-map-controls-zoom{display:flex;margin-right:5px;overflow:hidden;background:#fff}.svgMap-map-wrapper .svgMap-map-controls-move:last-child,.svgMap-map-wrapper .svgMap-map-controls-zoom:last-child{margin-right:0}.svgMap-map-wrapper .svgMap-control-button{background-color:transparent;border:none;border-radius:0;color:inherit;font:inherit;line-height:inherit;margin:0;padding:0;overflow:visible;text-transform:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;width:30px;height:30px;position:relative}.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button:after,.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#666;transition:background-color 250ms}.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button:before{width:11px;height:3px}@media (hover:hover){.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button:hover:after,.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button:hover:before{background:#111}}.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button:active:after,.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button:active:before{background:#111}.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button.svgMap-disabled:after,.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-button.svgMap-disabled:before{background:#ccc}.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-in-button{margin:1px 0 1px 1px}.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-in-button:after{width:3px;height:11px}.svgMap-map-wrapper .svgMap-control-button.svgMap-zoom-out-button{margin:1px 1px 1px 0}.svgMap-map-wrapper .svgMap-country{stroke:#fff;stroke-width:1;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:fill 250ms,stroke 250ms}.svgMap-map-wrapper .svgMap-country[data-link]{cursor:pointer}@media (hover:hover){.svgMap-map-wrapper .svgMap-country:hover{stroke:#333;stroke-width:1.5}}.svgMap-map-wrapper .svgMap-country.svgMap-active{stroke:#333;stroke-width:1.5}.svgMap-tooltip{box-shadow:0 0 3px rgba(0,0,0,.2);position:absolute;z-index:2;border-radius:2px;background:#fff;transform:translate(-50%,-100%);border-bottom:1px solid #000;display:none;pointer-events:none;min-width:60px}.svgMap-tooltip.svgMap-tooltip-flipped{transform:translate(-50%,0);border-bottom:0;border-top:1px solid #000}.svgMap-tooltip.svgMap-active{display:block}.svgMap-tooltip .svgMap-tooltip-content-container{position:relative;padding:10px 20px}.svgMap-tooltip .svgMap-tooltip-content-container .svgMap-tooltip-flag-container{text-align:center;margin:2px 0 5px}.svgMap-tooltip .svgMap-tooltip-content-container .svgMap-tooltip-flag-container.svgMap-tooltip-flag-container-emoji{font-size:50px;line-height:0;padding:25px 0 15px}.svgMap-tooltip .svgMap-tooltip-content-container .svgMap-tooltip-flag-container .svgMap-tooltip-flag{display:block;margin:auto;width:auto;height:32px;padding:2px;background:rgba(0,0,0,.15);border-radius:2px}.svgMap-tooltip .svgMap-tooltip-title{white-space:nowrap;font-size:18px;line-height:28px;padding:0 0 8px;text-align:center}.svgMap-tooltip .svgMap-tooltip-content{white-space:nowrap;text-align:center;font-size:14px;color:#777;margin:-5px 0 0}.svgMap-tooltip .svgMap-tooltip-content table{padding:0;border-spacing:0;margin:auto}.svgMap-tooltip .svgMap-tooltip-content table td{padding:2px 0;text-align:left}.svgMap-tooltip .svgMap-tooltip-content table td span{color:#111}.svgMap-tooltip .svgMap-tooltip-content table td:first-child{padding-right:10px;text-align:right}.svgMap-tooltip .svgMap-tooltip-content table td sup{vertical-align:baseline;position:relative;top:-5px}.svgMap-tooltip .svgMap-tooltip-content .svgMap-tooltip-no-data{padding:2px 0;color:#777;font-style:italic}.svgMap-tooltip .svgMap-tooltip-pointer{position:absolute;top:100%;left:50%;transform:translateX(-50%);overflow:hidden;height:10px;width:30px}.svgMap-tooltip .svgMap-tooltip-pointer:after{content:"";width:20px;height:20px;background:#fff;border:1px solid #000;position:absolute;bottom:6px;left:50%;transform:translateX(-50%) rotate(45deg)}.svgMap-tooltip.svgMap-tooltip-flipped .svgMap-tooltip-pointer{bottom:auto;top:-10px;transform:translateX(-50%) scaleY(-1)}
|