tg-map-core 0.0.1
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/dist/index.cjs +6394 -0
- package/dist/index.css +77 -0
- package/dist/index.mjs +6277 -0
- package/dist/src/index.d.ts +50 -0
- package/dist/src/map/event-target.d.ts +80 -0
- package/dist/src/map/event.d.ts +50 -0
- package/dist/src/map/lat-lng.d.ts +160 -0
- package/dist/src/map/map/baidu-map.d.ts +82 -0
- package/dist/src/map/map/controls/control.d.ts +112 -0
- package/dist/src/map/map/controls/map-type.control.d.ts +29 -0
- package/dist/src/map/map/controls/scale.control.d.ts +19 -0
- package/dist/src/map/map/controls/street-view.control.d.ts +25 -0
- package/dist/src/map/map/controls/zoom.control.d.ts +19 -0
- package/dist/src/map/map/extra/autocomplete.d.ts +42 -0
- package/dist/src/map/map/extra/heatmap.d.ts +71 -0
- package/dist/src/map/map/extra/map-urls.d.ts +59 -0
- package/dist/src/map/map/extra/marker-clusterer.d.ts +73 -0
- package/dist/src/map/map/extra/places-service.d.ts +47 -0
- package/dist/src/map/map/extra/search-box.d.ts +38 -0
- package/dist/src/map/map/google-map.d.ts +81 -0
- package/dist/src/map/map/here-map.d.ts +78 -0
- package/dist/src/map/map/map-options.d.ts +60 -0
- package/dist/src/map/map/map-type.d.ts +110 -0
- package/dist/src/map/map/map.d.ts +198 -0
- package/dist/src/map/map/overlay/baidu-info-box.d.ts +82 -0
- package/dist/src/map/map/overlay/circle.d.ts +51 -0
- package/dist/src/map/map/overlay/element-overlay.d.ts +37 -0
- package/dist/src/map/map/overlay/google-label.d.ts +68 -0
- package/dist/src/map/map/overlay/icon.d.ts +122 -0
- package/dist/src/map/map/overlay/info-box.d.ts +60 -0
- package/dist/src/map/map/overlay/info-window.d.ts +111 -0
- package/dist/src/map/map/overlay/label.d.ts +102 -0
- package/dist/src/map/map/overlay/marker-label.d.ts +19 -0
- package/dist/src/map/map/overlay/marker.d.ts +144 -0
- package/dist/src/map/map/overlay/overlay.d.ts +46 -0
- package/dist/src/map/map/overlay/polygon.d.ts +42 -0
- package/dist/src/map/map/overlay/polyline.d.ts +71 -0
- package/dist/src/map/map/overlay/rectangle.d.ts +50 -0
- package/dist/src/map/map/overlay/shape.d.ts +76 -0
- package/dist/src/map/map/talks-map.d.ts +81 -0
- package/dist/src/map/map-config.d.ts +29 -0
- package/dist/src/map/map-factory.d.ts +33 -0
- package/dist/src/map/map-loader.d.ts +19 -0
- package/dist/src/map/talks/talks-layers.d.ts +9 -0
- package/dist/src/map/talks/talks-utils.d.ts +7 -0
- package/dist/src/map/types.d.ts +17 -0
- package/dist/src/map/unions.d.ts +20 -0
- package/dist/src/utils/arrays.d.ts +19 -0
- package/dist/src/utils/baidu-utils.d.ts +23 -0
- package/dist/src/utils/elements.d.ts +4 -0
- package/dist/src/utils/formatter.d.ts +1 -0
- package/dist/src/utils/google-utils.d.ts +34 -0
- package/dist/src/utils/here-utils.d.ts +10 -0
- package/dist/src/utils/map-utils.d.ts +7 -0
- package/dist/src/utils/mapped-types.d.ts +110 -0
- package/dist/src/utils/maps-utils/index.d.ts +2 -0
- package/dist/src/utils/maps-utils/math-util.d.ts +59 -0
- package/dist/src/utils/maps-utils/poly-util.d.ts +103 -0
- package/dist/src/utils/maps-utils/spherical-util.d.ts +67 -0
- package/dist/src/utils/objects.d.ts +27 -0
- package/dist/src/utils/spherical-utils.d.ts +27 -0
- package/dist/src/utils/strings.d.ts +21 -0
- package/dist/src/utils/utils.d.ts +14 -0
- package/dist/src/utils/values.d.ts +34 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +60 -0
package/dist/index.css
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.baidu-info-box-container {
|
|
2
|
+
transform: translateY(-11px);
|
|
3
|
+
font-size: 13px;
|
|
4
|
+
font-weight: 300;
|
|
5
|
+
width: 100vw;
|
|
6
|
+
cursor: auto;
|
|
7
|
+
user-select: auto !important;
|
|
8
|
+
}
|
|
9
|
+
.baidu-info-box-container__border {
|
|
10
|
+
position: absolute;
|
|
11
|
+
padding: 12px;
|
|
12
|
+
background-color: white;
|
|
13
|
+
box-shadow: 0 2px 7px 1px rgba(0, 0, 0, 0.3);
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
transform: translate(-50%, -100%);
|
|
16
|
+
}
|
|
17
|
+
.baidu-info-box-container__inner {
|
|
18
|
+
overflow: auto;
|
|
19
|
+
}
|
|
20
|
+
.baidu-info-box-container__close {
|
|
21
|
+
position: absolute;
|
|
22
|
+
right: -6px;
|
|
23
|
+
top: -6px;
|
|
24
|
+
width: 14px;
|
|
25
|
+
height: 14px;
|
|
26
|
+
margin: 8px;
|
|
27
|
+
opacity: 0.6;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E");
|
|
30
|
+
background-color: black;
|
|
31
|
+
}
|
|
32
|
+
.baidu-info-box-container__close:hover {
|
|
33
|
+
opacity: 1;
|
|
34
|
+
}
|
|
35
|
+
.baidu-info-box-container::after {
|
|
36
|
+
position: absolute;
|
|
37
|
+
background-color: white;
|
|
38
|
+
content: "";
|
|
39
|
+
width: 15px;
|
|
40
|
+
height: 15px;
|
|
41
|
+
left: 0px;
|
|
42
|
+
top: 0px;
|
|
43
|
+
box-shadow: -2px 2px 2px 0 rgba(178, 178, 178, 0.4);
|
|
44
|
+
transform: translate(-50%, -50%) rotate(-45deg);
|
|
45
|
+
}
|
|
46
|
+
.gm-style-iw-c .gm-style-iw-chr {
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
.gm-style-iw-c .gm-style-iw-chr .gm-style-iw-ch {
|
|
50
|
+
padding-top: 12px;
|
|
51
|
+
}
|
|
52
|
+
.gm-style-iw-c .gm-style-iw-chr button.gm-ui-hover-effect {
|
|
53
|
+
position: absolute !important;
|
|
54
|
+
right: -6px;
|
|
55
|
+
top: -6px;
|
|
56
|
+
width: 14px !important;
|
|
57
|
+
height: 14px !important;
|
|
58
|
+
margin: 8px !important;
|
|
59
|
+
}
|
|
60
|
+
.gm-style-iw-c .gm-style-iw-chr button.gm-ui-hover-effect span {
|
|
61
|
+
width: 14px !important;
|
|
62
|
+
height: 14px !important;
|
|
63
|
+
margin: 0px !important;
|
|
64
|
+
}
|
|
65
|
+
.gm-style-iw-c .gm-style-iw-d::-webkit-scrollbar {
|
|
66
|
+
width: 12px;
|
|
67
|
+
height: 12px;
|
|
68
|
+
}
|
|
69
|
+
.element-overlay {
|
|
70
|
+
position: absolute;
|
|
71
|
+
}
|
|
72
|
+
.baidu-marker-label {
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: 50%;
|
|
75
|
+
left: 50%;
|
|
76
|
+
transform: translate(-50%, -50%);
|
|
77
|
+
}
|