@ohuoy/easymap 1.1.9 → 1.1.11
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/data/gis_weather.sql +37 -0
- package/index.js +8 -1
- package/old/CHANGELOG.md +665 -0
- package/old/LICENSE.txt +97 -0
- package/old/README.md +199 -0
- package/old/dist/threebox.min.js +0 -0
- package/old/exports.js +2 -0
- package/old/jz.json +497 -0
- package/old/main.js +10 -0
- package/old/package-lock.json +4638 -0
- package/old/package.json +44 -0
- package/old/server.stop.js +13 -0
- package/old/src/Threebox.js +1216 -0
- package/old/src/animation/AnimationManager.js +483 -0
- package/old/src/camera/CameraSync.js +302 -0
- package/old/src/objects/CSS2DRenderer.js +245 -0
- package/old/src/objects/LabelRenderer.js +71 -0
- package/old/src/objects/Object3D.js +34 -0
- package/old/src/objects/effects/BuildingShadows.js +115 -0
- package/old/src/objects/extrusion.js +61 -0
- package/old/src/objects/fflate.min.js +15 -0
- package/old/src/objects/label.js +29 -0
- package/old/src/objects/line.js +1386 -0
- package/old/src/objects/loadObj.js +142 -0
- package/old/src/objects/loaders/ColladaLoader.js +3751 -0
- package/old/src/objects/loaders/FBXLoader.js +3864 -0
- package/old/src/objects/loaders/GLTFLoader.js +3857 -0
- package/old/src/objects/loaders/MTLLoader.js +498 -0
- package/old/src/objects/loaders/OBJLoader.js +818 -0
- package/old/src/objects/objects.js +1113 -0
- package/old/src/objects/sphere.js +28 -0
- package/old/src/objects/tooltip.js +27 -0
- package/old/src/objects/tube.js +35 -0
- package/old/src/three.js +6 -0
- package/old/src/three.module.js +54572 -0
- package/old/src/utils/ValueGenerator.js +11 -0
- package/old/src/utils/constants.js +21 -0
- package/old/src/utils/material.js +52 -0
- package/old/src/utils/suncalc.js +322 -0
- package/old/src/utils/utils.js +424 -0
- package/old/src/utils/validate.js +115 -0
- package/old/threebox.min.js +367 -0
- package/package.json +1 -1
- package/src/components/layer/AnimationLayer.js +19 -2
- package/src/components/layer/PathLineLayer.js +373 -4
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Navicat Premium Data Transfer
|
|
3
|
+
|
|
4
|
+
Source Server : 90
|
|
5
|
+
Source Server Type : PostgreSQL
|
|
6
|
+
Source Server Version : 120000 (120000)
|
|
7
|
+
Source Host : 192.168.11.90:5432
|
|
8
|
+
Source Catalog : sdgydb
|
|
9
|
+
Source Schema : public
|
|
10
|
+
|
|
11
|
+
Target Server Type : PostgreSQL
|
|
12
|
+
Target Server Version : 120000 (120000)
|
|
13
|
+
File Encoding : 65001
|
|
14
|
+
|
|
15
|
+
Date: 30/09/2025 13:44:37
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
-- ----------------------------
|
|
20
|
+
-- Table structure for gis_weather
|
|
21
|
+
-- ----------------------------
|
|
22
|
+
DROP TABLE IF EXISTS "public"."gis_weather";
|
|
23
|
+
CREATE TABLE "public"."gis_weather" (
|
|
24
|
+
"gw_type" int2 NOT NULL,
|
|
25
|
+
"gw_json" jsonb NOT NULL,
|
|
26
|
+
"gw_name" varchar COLLATE "pg_catalog"."default" NOT NULL,
|
|
27
|
+
"gw_code" varchar COLLATE "pg_catalog"."default" NOT NULL,
|
|
28
|
+
"gw_update_time" timestamptz(6) NOT NULL,
|
|
29
|
+
"gw_level" int2 NOT NULL,
|
|
30
|
+
"gw_create_time" timestamptz(6) NOT NULL
|
|
31
|
+
)
|
|
32
|
+
;
|
|
33
|
+
|
|
34
|
+
-- ----------------------------
|
|
35
|
+
-- Primary Key structure for table gis_weather
|
|
36
|
+
-- ----------------------------
|
|
37
|
+
ALTER TABLE "public"."gis_weather" ADD CONSTRAINT "gis_weather_pkey" PRIMARY KEY ("gw_code", "gw_create_time");
|
package/index.js
CHANGED
|
@@ -161,7 +161,14 @@ export class EasyMap {
|
|
|
161
161
|
map.addLayer(layer);
|
|
162
162
|
}
|
|
163
163
|
})
|
|
164
|
-
|
|
164
|
+
if(layerIds.indexOf("tiandi") >= 0){
|
|
165
|
+
map.theme.value ="light"
|
|
166
|
+
}
|
|
167
|
+
else if(layerIds.indexOf("yingxiang") >= 0){
|
|
168
|
+
map.theme.value ="dark"
|
|
169
|
+
}else{
|
|
170
|
+
map.theme.value = map.style.stylesheet.theme
|
|
171
|
+
}
|
|
165
172
|
|
|
166
173
|
map.off('style.load', handleStyleLoad);
|
|
167
174
|
};
|