@vtx/map 1.1.2 → 1.1.6

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/lib/VtxMap/Map.js CHANGED
@@ -26,6 +26,10 @@ var _Map3 = require('./GMap/Map');
26
26
 
27
27
  var _Map4 = _interopRequireDefault(_Map3);
28
28
 
29
+ var _Map5 = require('./OlMap/Map');
30
+
31
+ var _Map6 = _interopRequireDefault(_Map5);
32
+
29
33
  require('./Map.css');
30
34
 
31
35
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -71,6 +75,8 @@ var VtxMap = function (_React$Component) {
71
75
  return _react2.default.createElement(_TMap2.default, newProps);
72
76
  case 'gmap':
73
77
  return _react2.default.createElement(_Map4.default, newProps);
78
+ case 'olmap':
79
+ return _react2.default.createElement(_Map6.default, newProps);
74
80
  default:
75
81
  return _react2.default.createElement(_Map2.default, newProps);
76
82
  }
@@ -0,0 +1,123 @@
1
+ .map {
2
+ width: 100%;
3
+ height: 100%;
4
+ background-color: #f1f1f1;
5
+ }
6
+ .vtx_gmap_html_points,
7
+ .vtx_gmap_html_pointCollection {
8
+ position: absolute;
9
+ top: 0px;
10
+ left: 0px;
11
+ }
12
+ .esriSimpleSlider {
13
+ z-index: 10000000 !important;
14
+ }
15
+ .label-content {
16
+ /*margin-left: 0;
17
+ width: 100px;
18
+ line-height: 25px;
19
+ text-align: center;
20
+ position: relative;
21
+ left: -43px;
22
+ background-color: #fff;
23
+ opacity: 1;
24
+ border-radius: 5px;
25
+ color: #5DD0EE;
26
+ word-break: break-all;
27
+ white-space: normal;
28
+ padding: 2px 8px;*/
29
+ display: inline-block;
30
+ padding: 5px;
31
+ line-height: 22px;
32
+ text-align: center;
33
+ border-radius: 5px;
34
+ background-color: #fff;
35
+ opacity: 1;
36
+ color: #5DD0EE;
37
+ }
38
+ .vtx-g-rangingPoint {
39
+ width: 7px;
40
+ height: 7px;
41
+ background-color: #fff;
42
+ border: 2px solid #ff0000;
43
+ display: inline-block;
44
+ border-radius: 7px;
45
+ }
46
+ .vtx-g-rangingDistance {
47
+ position: relative;
48
+ top: -36px;
49
+ left: 15px;
50
+ height: 30px;
51
+ line-height: 28px;
52
+ background-color: #fff;
53
+ border: 1px solid #ff0000;
54
+ font-size: 12px;
55
+ word-break: keep-all;
56
+ padding: 0px 3px;
57
+ }
58
+ .vtx-g-rang-exit {
59
+ width: 9px;
60
+ height: 9px;
61
+ background-color: #fff;
62
+ border: 2px solid #ff0000;
63
+ color: #ff0000;
64
+ line-height: 7px;
65
+ text-align: center;
66
+ font-size: 12px;
67
+ cursor: pointer;
68
+ }
69
+ .vtx-g-rang-showRangTool {
70
+ line-height: 18px;
71
+ font-size: 12px;
72
+ border: 1px solid #ff0000;
73
+ word-break: keep-all;
74
+ background-color: #fff;
75
+ padding: 0px 5px;
76
+ }
77
+ .zoom_slider_show_scale {
78
+ padding: 1px 8px;
79
+ font-size: 12px;
80
+ text-align: center;
81
+ }
82
+ .zoom_slider_show_bottom {
83
+ width: 100%;
84
+ height: 3px;
85
+ border: 1px solid #000;
86
+ border-bottom: 3px solid #000;
87
+ border-top: 0px;
88
+ }
89
+ .ol-tooltip {
90
+ position: relative;
91
+ background: rgba(0, 0, 0, 0.5);
92
+ border-radius: 4px;
93
+ color: white;
94
+ padding: 4px 8px;
95
+ opacity: 0.7;
96
+ white-space: nowrap;
97
+ font-size: 12px;
98
+ cursor: default;
99
+ user-select: none;
100
+ }
101
+ .ol-tooltip-measure {
102
+ opacity: 1;
103
+ font-weight: bold;
104
+ }
105
+ .ol-tooltip-static {
106
+ background-color: #ffcc33;
107
+ color: black;
108
+ border: 1px solid white;
109
+ }
110
+ .ol-tooltip-measure:before,
111
+ .ol-tooltip-static:before {
112
+ border-top: 6px solid rgba(0, 0, 0, 0.5);
113
+ border-right: 6px solid transparent;
114
+ border-left: 6px solid transparent;
115
+ content: "";
116
+ position: absolute;
117
+ bottom: -6px;
118
+ margin-left: -7px;
119
+ left: 50%;
120
+ }
121
+ .ol-tooltip-static:before {
122
+ border-top-color: #ffcc33;
123
+ }