@vtx/map 1.0.3

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.
@@ -0,0 +1,169 @@
1
+ .vtx-ui-searchmap-searchmodal{
2
+ z-index: 1001;
3
+ .ant-modal{
4
+ width: e('calc(100% - 200px)') !important;
5
+ min-width: 800px;
6
+ height: 70vh;
7
+ .ant-modal-title{
8
+ color: #108EE9;
9
+ }
10
+ .ant-modal-content{
11
+ width: 100%;
12
+ height: 100%;
13
+ .ant-modal-body{
14
+ width: 100%;
15
+ height: e('calc(100% - 108px)') !important;
16
+ padding: 0px;
17
+ background-color: white;
18
+ }
19
+ }
20
+ }
21
+ .vtx-ui-searchmap-searchmap{
22
+ width: 100%;
23
+ height: 100%;
24
+ padding-top: 48px;
25
+ // padding-bottom: 48px;
26
+ box-sizing: border-box;
27
+ position: relative;
28
+ overflow: hidden;
29
+ .vtx-ui-searchmap-top,.vtx-ui-searchmap-bottom{
30
+ width: 100%;
31
+ height: 48px;
32
+ position: absolute;
33
+ left: 0px;
34
+ padding: 10px 15px;
35
+ button{
36
+ margin-left: 10px;
37
+ }
38
+ }
39
+ .vtx-ui-searchmap-top{
40
+ top: 0px;
41
+ border-bottom: 1px solid #e1e1e1;
42
+ .vtx-ui-searchmap-othermodal{
43
+ position: absolute;
44
+ right: 25px;
45
+ line-height: 28px;
46
+ display: inline-block;
47
+ }
48
+ }
49
+ .vtx-ui-searchmap-bottom{
50
+ bottom: 0px;
51
+ border-top: 1px solid #e1e1e1;
52
+ text-align: right;
53
+ }
54
+ .vtx-ui-searchmap-content{
55
+ width: 100%;
56
+ height: 100%;
57
+ position: relative;
58
+ padding-left: 25px;
59
+ .vtx-ui-searchmap-show{
60
+ display: inline-block;
61
+ width: 100%;
62
+ height: 100%;
63
+ }
64
+ .vtx-ui-searchmap-hidden{
65
+ display: none;
66
+ }
67
+ .vtx-ui-searchmap-w_l{
68
+ width: 300px !important;
69
+ }
70
+ .vtx-ui-searchmap-content_left{
71
+ width: 25px;
72
+ height: 100%;
73
+ display: inline-block;
74
+ -webkit-transition-duration: 0.3s;
75
+ -o-transition-duration: 0.3s;
76
+ transition-duration: 0.3s;
77
+ transition-property: width;
78
+ vertical-align: top;
79
+ border-right: 1px solid #e1e1e1;
80
+ position: absolute;
81
+ top: 0px;
82
+ left: 0px;
83
+ z-index: 10;
84
+ background-color: #FFF;
85
+ .vtx-ui-searchmap-listtitle{
86
+ width: 100%;
87
+ height: 30px;
88
+ line-height: 30px;
89
+ border-bottom: 1px solid #e1e1e1;
90
+ .vtx-ui-searchmap-title{
91
+ width: e('calc(100% - 30px)');
92
+ display: inline-block;
93
+ padding-left: 15px;
94
+ font-size: 15px;
95
+ }
96
+ .vtx-ui-searchmap-btn{
97
+ display: inline-block;
98
+ width: 30px;
99
+ text-align: center;
100
+ color: #0c88e8;
101
+ height: 30px;
102
+ line-height: 30px;
103
+ cursor: pointer;
104
+ }
105
+ }
106
+ .vtx-ui-searchmap-lists{
107
+ width: 100%;
108
+ line-height: 35px;
109
+ border-bottom: 1px solid #e1e1e1;
110
+ font-size: 12px;
111
+ overflow: hidden;
112
+ text-overflow: ellipsis;
113
+ white-space: nowrap;
114
+ padding:0px 15px;
115
+ cursor: pointer;
116
+ color: #999;
117
+ &:hover{
118
+ background-color: #ECF6FD;
119
+ color: #108EE9;
120
+ }
121
+ }
122
+ .vtx-ui-searchmap-lists.vtx-ui-searchmap-select{
123
+ background-color: #ECF6FD;
124
+ color: #108EE9;
125
+ }
126
+ .vtx-ui-searchmap-scrollauto{
127
+ height: e('calc(100% - 30px)');
128
+ overflow-y: auto;
129
+ }
130
+ }
131
+ .vtx-ui-searchmap-content_right{
132
+ width: 100%;
133
+ height: 100%;
134
+ display: inline-block;
135
+ -webkit-transition-duration: 0.3s;
136
+ -o-transition-duration: 0.3s;
137
+ transition-duration: 0.3s;
138
+ transition-property: width;
139
+ }
140
+ .vtx-ui-searchmap-btn{
141
+ text-align: center;
142
+ color: #0c88e8;
143
+ height: 30px;
144
+ line-height: 30px;
145
+ cursor: pointer;
146
+ }
147
+ }
148
+ }
149
+ }
150
+ .vtx-ui-searchmap-showlabel{
151
+ margin-left: 0;
152
+ width: 100px;
153
+ line-height: 25px;
154
+ text-align: center;
155
+ position: relative;
156
+ left: -38px;
157
+ background-color: #222020;
158
+ opacity: 0.6;
159
+ border-radius: 5px;
160
+ color: #FFF;
161
+ padding: 2px 8px;
162
+ text-overflow: ellipsis;
163
+ white-space: nowrap;
164
+ word-break: normal;
165
+ overflow: hidden;
166
+ }
167
+ .vtx-ui-searchmap-hiddenlabel{
168
+ display: none;
169
+ }
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _VtxSearchMap = require('./VtxSearchMap');
8
+
9
+ Object.defineProperty(exports, 'VtxSearchMap', {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return _interopRequireDefault(_VtxSearchMap).default;
13
+ }
14
+ });
15
+ Object.defineProperty(exports, 'default', {
16
+ enumerable: true,
17
+ get: function get() {
18
+ return _interopRequireDefault(_VtxSearchMap).default;
19
+ }
20
+ });
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var iconMapping = exports.iconMapping = {
7
+ check: 'check',
8
+ close: 'close',
9
+ search: 'search1',
10
+ environment: 'location',
11
+ edit: 'edit',
12
+ sync: 'sync',
13
+ 'double-left': 'doubleleft',
14
+ 'double-right': 'doubleright'
15
+ };
package/lib/default.js ADDED
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.VtxMapIcon = exports.antdMajorVersion = undefined;
7
+ exports.getTMapTK = getTMapTK;
8
+
9
+ var _package = require('antd/package.json');
10
+
11
+ var createFromIconfontCN = void 0;
12
+ var antdMajorVersion = exports.antdMajorVersion = _package.version.substring(0, 1);
13
+
14
+ // 必须是3.9.0之后的版本
15
+ if (antdMajorVersion === '3') {
16
+ createFromIconfontCN = require('antd/lib/icon').default.createFromIconfontCN;
17
+ } else if (antdMajorVersion === '4') {
18
+ createFromIconfontCN = require('@ant-design/icons').createFromIconfontCN;
19
+ }
20
+
21
+ var VtxMapIcon = exports.VtxMapIcon = createFromIconfontCN({
22
+ scriptUrl: '//at.alicdn.com/t/font_2865072_ecuwrji9qwq.js'
23
+ });
24
+
25
+ var globalCfg = window.VtxPublicServiceAddress || {};
26
+
27
+ exports.default = {
28
+ //地图服务地址ip
29
+ mapServerURL: globalCfg.mapServerURL ? globalCfg.mapServerURL : '//vortexplugin.cloudhw.cn/mapplugin',
30
+ //arcgis地图服务ip
31
+ arcgisServerURL: globalCfg.arcgisServerURL ? globalCfg.arcgisServerURL : '//vortexplugin.cloudhw.cn/gis'
32
+ };
33
+ function getTMapTK() {
34
+ if (window.TMapTK) {
35
+ return window.TMapTK;
36
+ } else {
37
+ var tks = ['b95ec6e55998a6408862ab2ac36c4950', '0e3608ea5e57ac901f1e14e653818910', '55bbbfecae274ce7de92579f15a5fbad'];
38
+ return tks[Math.floor(Math.random() * 3)];
39
+ }
40
+ }
package/lib/index.js ADDED
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _VtxMap = require("./VtxMap");
8
+
9
+ Object.defineProperty(exports, "VtxMap", {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return _VtxMap.VtxMap;
13
+ }
14
+ });
15
+ Object.defineProperty(exports, "VtxOptMap", {
16
+ enumerable: true,
17
+ get: function get() {
18
+ return _VtxMap.VtxOptMap;
19
+ }
20
+ });
21
+ Object.defineProperty(exports, "VtxZoomMap", {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _VtxMap.VtxZoomMap;
25
+ }
26
+ });
27
+
28
+ var _VtxSearchMap = require("./VtxSearchMap");
29
+
30
+ Object.defineProperty(exports, "VtxSearchMap", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _VtxSearchMap.VtxSearchMap;
34
+ }
35
+ });
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@vtx/map",
3
+ "version": "1.0.3",
4
+ "description": "@vtx/map",
5
+ "main": "lib/index.js",
6
+ "scripts": {
7
+ "build": "rimraf lib && babel src --out-dir lib && node styleProcessor.js",
8
+ "prepublish": "npm run build"
9
+ },
10
+ "files": [
11
+ "lib"
12
+ ],
13
+ "dependencies": {
14
+ "immutable": "^3.8.2",
15
+ "lodash": "^4.17.10"
16
+ },
17
+ "devDependencies": {
18
+ "babel-cli": "^6.14.0",
19
+ "babel-core": "^6.18.2",
20
+ "babel-eslint": "^7.1.1",
21
+ "babel-loader": "^6.2.7",
22
+ "babel-plugin-add-module-exports": "^0.2.1",
23
+ "babel-plugin-transform-remove-console": "^6.8.5",
24
+ "babel-plugin-transform-runtime": "^6.9.0",
25
+ "babel-polyfill": "^6.9.1",
26
+ "babel-preset-es2015": "^6.24.1",
27
+ "babel-preset-react": "^6.24.1",
28
+ "babel-preset-stage-0": "^6.24.1",
29
+ "less": "^3.9.0",
30
+ "rimraf": "^2.6.2"
31
+ },
32
+ "peerDependencies": {
33
+ "react": "^16.12.0",
34
+ "react-dom": "^16.12.0",
35
+ "antd": "3.26.19"
36
+ },
37
+ "author": "ztq",
38
+ "license": "MIT"
39
+ }