Просмотр исходного кода

记录手动添加控制带点状态

wuweihao 4 лет назад
Родитель
Сommit
4383a91a41

+ 2 - 2
laser/src/main/java/com/fdkankan/indoor/base/aop/WebLogAspect.java

@@ -44,8 +44,8 @@ public class WebLogAspect {
         // 记录下请求内容
         String remoteAddr = request.getRemoteAddr();
         log.warn("");
-        log.warn("start : {}, uuid: {}" , request.getRequestURI(), startTime);
-        log.info("request Method:{}, IP:{}" , request.getMethod(),  request.getRemoteAddr());
+        log.warn("start : {}, {}, uuid: {}" , request.getMethod(), request.getRequestURI(), startTime);
+        log.info("request IP:{}" , request.getRemoteAddr());
         log.info("request Args : {}" , Arrays.toString(joinPoint.getArgs()));
 
 

+ 4 - 2
laser/src/main/java/com/fdkankan/indoor/base/util/JwtUtil.java

@@ -210,8 +210,10 @@ public class JwtUtil {
         System.out.println(exp);
     }
 
-    public static void test2() {
-        String token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGUiOlsiYWRtaW4iLCJyb290Il0sImlkIjoxLCJ1c2VyTmFtZSI6ImFkbWluIiwiaWF0IjoxNTgzODA5MzkzLCJqdGkiOiJkNjZiZTFkYi00MTQ0LTQxMTYtYTNlNi01ZDBjNjhlNTI3ODAifQ.-4AdsVP2RwmPS2grtO4aC8ov9PwkilzaGdThGetBJok";
+    @Test
+    public  void test2() {
+//        String token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGUiOlsiYWRtaW4iLCJyb290Il0sImlkIjoxLCJ1c2VyTmFtZSI6ImFkbWluIiwiaWF0IjoxNTgzODA5MzkzLCJqdGkiOiJkNjZiZTFkYi00MTQ0LTQxMTYtYTNlNi01ZDBjNjhlNTI3ODAifQ.-4AdsVP2RwmPS2grtO4aC8ov9PwkilzaGdThGetBJok";
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODgyMDc4ODA3OSIsInVzZXJOYW1lIjoiMTg4MjA3ODgwNzkiLCJpYXQiOjE2Mjk0NjMwNTUsImp0aSI6IjUwNmQyNjg2LWU3MzItNDg0MS04NDg1LWRiMzRlODhiMGYxMyJ9.b5J4yMVf1j7DVMV1MNsi_wZTvOPXde84v3Df6mxs8kM";
         System.out.println(getUserRole(token));
 
     }

+ 2 - 1
laser/src/main/java/com/fdkankan/indoor/core/controller/ControlPointController.java

@@ -36,7 +36,8 @@ public class ControlPointController {
     @PostMapping("indoor/{sceneCode}/api/controlPoint/save")
     public Result save(@PathVariable String sceneCode,  @RequestBody ControlPointEntity param) {
         param.setId(sceneCode);
-        return entityService.save(param);
+        String from = "web";
+        return entityService.save(param, from);
     }
 
 

+ 7 - 7
laser/src/main/java/com/fdkankan/indoor/core/controller/PoiController.java

@@ -20,7 +20,7 @@ import java.util.List;
  * 热点信息
  */
 @Slf4j
-@Api(tags = "热点数据-poi")
+@Api(tags = "poi-热点")
 @RestController
 public class PoiController {
 
@@ -51,7 +51,7 @@ public class PoiController {
      * @param param
      * @return
      */
-    @WebControllerLog(description = "poi数据接口-模糊查询")
+    @WebControllerLog(description = "poi热点-模糊查询")
     @ApiOperation(value = "模糊查询", notes = "模糊查询titles, 我们的数据没有matching_title字段")
     @GetMapping("indoor/{code}/api/search/poi")
     public Object search(@PathVariable String code, PoiSearchDto param){
@@ -61,7 +61,7 @@ public class PoiController {
     }
 
 
-    @WebControllerLog(description = "poi数据接口-添加热点")
+    @WebControllerLog(description = "poi热点-添加热点")
     @ApiOperation(value = "添加热点", notes = "code:场景码")
     @PostMapping("indoor/{sceneCode}/api/pois")
     public Object saveHot(@PathVariable String sceneCode, @RequestBody List<PoiHotDto> param){
@@ -70,7 +70,7 @@ public class PoiController {
     }
 
 
-    @WebControllerLog(description = "poi数据接口-添加热点-put")
+    @WebControllerLog(description = "poi热点-添加热点-put")
     @ApiOperation(value = "添加热点-put", notes = "code:场景码")
     @PutMapping("indoor/{sceneCode}/api/pois")
     public Object saveHotPut(@PathVariable String sceneCode, @RequestBody List<PoiHotDto> param){
@@ -83,7 +83,7 @@ public class PoiController {
      * @param sceneCode
      * @return
      */
-    @WebControllerLog(description = "poi数据接口-过滤接口")
+    @WebControllerLog(description = "poi热点-过滤接口")
     @ApiOperation(value = "过滤接口", notes = "code:场景码")
     @PostMapping("indoor/{sceneCode}/api/pois/filter")
     public Object filter(@PathVariable String sceneCode){
@@ -92,7 +92,7 @@ public class PoiController {
     }
 
 
-    @WebControllerLog(description = "poi数据接口-统计")
+    @WebControllerLog(description = "poi热点-统计")
     @ApiOperation(value = "统计接口", notes = "目前是写死的")
     @GetMapping("indoor/{sceneCode}/api/pois/count")
     public Object count(@PathVariable String sceneCode){
@@ -103,7 +103,7 @@ public class PoiController {
     }
 
 
-    @WebControllerLog(description = "poi数据接口-删除热点")
+    @WebControllerLog(description = "poi热点-删除热点")
     @ApiOperation(value = "删除热点")
     @DeleteMapping("indoor/{sceneCode}/api/pois/{dataId}")
     public Object deleteByDataId(@PathVariable String sceneCode, @PathVariable Integer dataId){

+ 11 - 6
laser/src/main/java/com/fdkankan/indoor/core/controller/PoiTypeController.java

@@ -1,5 +1,6 @@
 package com.fdkankan.indoor.core.controller;
 
+import com.fdkankan.indoor.base.aop.WebControllerLog;
 import com.fdkankan.indoor.base.util.Result;
 import com.fdkankan.indoor.core.entity.dto.PoiTypeDto;
 import com.fdkankan.indoor.core.service.PoiTypeService;
@@ -9,28 +10,31 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
+import javax.validation.Valid;
 import java.util.List;
 
 /**
  * Created by owen on 2021/7/26 0026 10:11
  */
-@Api(tags = "PoiType数据接口")
+@Api(tags = "poiType-热点分类")
 @RestController
 public class PoiTypeController {
 
     @Autowired
     PoiTypeService poiTypeService;
 
-    @ApiOperation(value = "修改保存")
+    @WebControllerLog(description = "PoiType-修改保存-post")
+    @ApiOperation(value = "PoiType-修改保存-post")
     @PostMapping("indoor/{sceneCode}/api/poi_types")
-    public Object edit(@PathVariable String sceneCode, @RequestBody List<PoiTypeDto> param){
+    public Object edit(@PathVariable String sceneCode, @Valid @RequestBody List<PoiTypeDto> param){
         Result result = poiTypeService.edit(sceneCode, param);
         return result.getData();
     }
 
-    @ApiOperation(value = "修改保存-put")
+    @WebControllerLog(description = "PoiType-修改保存-put")
+    @ApiOperation(value = "PoiType-修改保存-put")
     @PutMapping("indoor/{sceneCode}/api/poi_types")
-    public Object editPut(@PathVariable String sceneCode, @RequestBody List<PoiTypeDto> param){
+    public Object editPut(@PathVariable String sceneCode, @Valid @RequestBody List<PoiTypeDto> param){
         Result result = poiTypeService.edit(sceneCode, param);
         return result.getData();
     }
@@ -42,6 +46,7 @@ public class PoiTypeController {
         return result.getData();
     }
 
+    @WebControllerLog(description = "PoiType-删除热点")
     @ApiOperation(value = "删除接口")
     @DeleteMapping("indoor/{sceneCode}/api/poi_types/{id}")
     public Object removeByDataId(@PathVariable String sceneCode, @PathVariable Integer id){
@@ -49,7 +54,7 @@ public class PoiTypeController {
         return result.getData();
     }
 
-
+    @WebControllerLog(description = "PoiType-上传图标-put")
     @ApiOperation(value = "上传图标")
     @PostMapping("indoor/{sceneCode}/poi/icon")
     public Object upload(@PathVariable String sceneCode, MultipartFile image){

+ 3 - 1
laser/src/main/java/com/fdkankan/indoor/core/controller/PoiTypeGroupController.java

@@ -15,13 +15,14 @@ import java.util.List;
 /**
  * Created by owen on 2021/7/26 0026 10:11
  */
-@Api(tags = "PoiTypeGroup数据接口")
+@Api(tags = "poiTypeGroup-热点组")
 @RestController
 public class PoiTypeGroupController {
 
     @Autowired
     PoiTypeGroupService entityService;
 
+    @WebControllerLog(description = "PoiTypeGroup-修改保存-post")
     @ApiOperation(value = "修改保存")
     @PostMapping("indoor/{sceneCode}/api/poi_type_groups")
     public Object edit(@PathVariable String sceneCode, @RequestBody List<PoiTypeGroupDto> param){
@@ -44,6 +45,7 @@ public class PoiTypeGroupController {
         return result.getData();
     }
 
+    @WebControllerLog(description = "PoiTypeGroup-删除热点组")
     @ApiOperation(value = "删除热点组")
     @DeleteMapping("indoor/{sceneCode}/api/poi_type_groups/{id}")
     public Object removeByDataId(@PathVariable String sceneCode, @PathVariable Integer id){

+ 3 - 0
laser/src/main/java/com/fdkankan/indoor/core/entity/ControlPointEntity.java

@@ -37,6 +37,9 @@ public class ControlPointEntity {
 
     private LocalDateTime updateTime;
 
+    @ApiModelProperty(value = "状态:0:默认, 1:前端手动编辑过")
+    private Integer status;
+
 
 
 }

+ 3 - 0
laser/src/main/java/com/fdkankan/indoor/core/entity/dto/PoiHotDto.java

@@ -1,6 +1,7 @@
 package com.fdkankan.indoor.core.entity.dto;
 
 import com.fdkankan.indoor.core.entity.po.LanguagePo;
+import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
 /**
@@ -22,10 +23,12 @@ public class PoiHotDto {
 
     private Double[] dataset_orientation;
 
+
     private Integer site_model_entity_id;
 
     private SecurityDto security;
 
+    @ApiModelProperty(value = "热点分类id", required = true)
     private Integer poi_type_id;
 
     private Double importance;

+ 1 - 1
laser/src/main/java/com/fdkankan/indoor/core/service/ControlPointService.java

@@ -9,7 +9,7 @@ import com.fdkankan.indoor.core.entity.ControlPointEntity;
  */
 public interface ControlPointService {
 
-    Result save(ControlPointEntity param);
+    Result save(ControlPointEntity param, String from);
 
     ControlPointEntity findById(String id);
 

+ 5 - 20
laser/src/main/java/com/fdkankan/indoor/core/service/impl/ControlPointServiceImpl.java

@@ -4,12 +4,9 @@ import cn.hutool.core.util.StrUtil;
 import com.fdkankan.indoor.base.constant.MsgCode;
 import com.fdkankan.indoor.base.exception.BaseRuntimeException;
 import com.fdkankan.indoor.base.util.Result;
-import com.fdkankan.indoor.core.entity.ConfigEntity;
 import com.fdkankan.indoor.core.entity.ControlPointEntity;
 import com.fdkankan.indoor.core.entity.InitEntity;
-import com.fdkankan.indoor.core.mapper.ConfigMapper;
 import com.fdkankan.indoor.core.mapper.ControlPointMapper;
-import com.fdkankan.indoor.core.service.ConfigService;
 import com.fdkankan.indoor.core.service.ControlPointService;
 import com.fdkankan.indoor.core.service.InitService;
 import lombok.extern.slf4j.Slf4j;
@@ -35,13 +32,17 @@ public class ControlPointServiceImpl implements ControlPointService {
 
 
     @Override
-    public Result save(ControlPointEntity param) {
+    public Result save(ControlPointEntity param, String from) {
         String id = param.getId();
         if (StrUtil.isAllEmpty(id)){
             return Result.failure("场景码不能为空");
         }
 
         param.setUpdateTime(LocalDateTime.now());
+        // 用户手动输入控制点
+        if ("web".equals(from)) {
+            param.setStatus(1);
+        }
         entityMapper.save(param);
         log.info("控制点保存完成");
 
@@ -49,22 +50,6 @@ public class ControlPointServiceImpl implements ControlPointService {
         initService.initDataStep2(id);
         log.info("初始化step2 完成");
         return Result.success();
-
-//        InitEntity initEntity = initService.findById(id);
-//        Integer status = initEntity.getStatus();
-//        if (status == 0) {
-//            // 查询初始化状态
-//            entityMapper.save(param);
-//            log.info("控制点保存完成");
-//
-//            // 初始化step2 数据
-//            initService.initDataStep2(id);
-//            log.info("初始化step2 完成");
-//            return Result.success();
-//        }
-//
-//        log.info("已初始化, 不执行操作, 初始化状态为: {}", status);
-//        return Result.failure("已初始化,不执行操作");
     }
 
     @Override

+ 2 - 5
laser/src/main/java/com/fdkankan/indoor/core/service/impl/InitServiceImpl.java

@@ -414,7 +414,8 @@ public class InitServiceImpl implements InitService {
 
         entity.setId(sceneCode);
         entity.setCreateTime(LocalDateTime.now());
-        controlPointService.save(entity);
+        entity.setStatus(0);
+        controlPointService.save(entity, null);
         log.info("controlPoint控制点初始化完成");
     }
 
@@ -618,7 +619,6 @@ public class InitServiceImpl implements InitService {
 
     private void createSiteModel(String sceneCode,  Double[] max,  Double[] min,  Double[] centre, Double maxZ, Double minZ){
         //读取初始文件
-//        String content = MyFileUtils.getResourceContent("data/site_model.json");
         String content = cn.hutool.core.io.FileUtil.readUtf8String(configConstant.templatePath + "/site_model.json");
         List<SiteDto> siteModels = JSON.parseArray(content, SiteDto.class);
         // z_max、z_min 替换site_model的Floor、root类型
@@ -666,7 +666,6 @@ public class InitServiceImpl implements InitService {
         });
 
         log.info("siteMode数据解析完成");
-//        log.info("更新后的siteModel值: {}", siteModels.toArray());
         SiteModelEntity modelEntity = siteService.findById(sceneCode);
         if (modelEntity != null) {
             siteService.remove(sceneCode);
@@ -749,7 +748,6 @@ public class InitServiceImpl implements InitService {
         entity.setId(sceneCode);
         entity.setUpdateTime(LocalDateTime.now());
         // 读取初始文件
-//        String resourceContent = MyFileUtils.getResourceContent("data/poi_type.json");
         String resourceContent = cn.hutool.core.io.FileUtil.readUtf8String(configConstant.templatePath + "/poi_type.json");
         List<PoiTypeDto> dtoList = com.alibaba.fastjson.JSONArray.parseArray(resourceContent, PoiTypeDto.class);
         entity.setData(dtoList);
@@ -762,7 +760,6 @@ public class InitServiceImpl implements InitService {
         entity.setId(sceneCode);
         entity.setUpdateTime(LocalDateTime.now());
         // 读取初始文件
-//        String resourceContent = MyFileUtils.getResourceContent("data/poi_type.json");
         String resourceContent = cn.hutool.core.io.FileUtil.readUtf8String(configConstant.templatePath + "/poi_type_group.json");
         List<PoiTypeGroupDto> dtoList = com.alibaba.fastjson.JSONArray.parseArray(resourceContent, PoiTypeGroupDto.class);
         entity.setData(dtoList);

+ 8 - 0
laser/src/main/java/com/fdkankan/indoor/core/service/impl/LoginServiceImpl.java

@@ -64,7 +64,15 @@ public class LoginServiceImpl  extends IBaseServiceImpl implements LoginService
         tokenMap.put("userName", username);
         tokenMap.put("id", dbUser.getId());
 
+
+
+
         String token = JwtUtil.createJWT(TOKEN_EXPIRE, tokenMap);
+//        String token =  JwtUtil.createJWT(TOKEN_EXPIRE, "aa");
+//        String token =  JwtUtil.createJWT(1000 * 60 * 60, "aa");
+//        String token = JwtUtil.createJWT(-1, "test");
+
+        log.info("token: {}", token);
 
         UserVo userVo = new UserVo();
         userVo.setId(dbUser.getId());

+ 7 - 219
laser/src/main/resources/data/poi_type.json

@@ -2,10 +2,9 @@
   {
     "_id" : 1,
     "name" : {
-      "en" : "Elevator",
-      "zh" : "电梯"
+      "zh" : "出入口"
     },
-    "icon" : "img/poi_navvis/access_elevator.png",
+    "icon" : "poi/image/20210823_093238436.png",
     "visibility_zoom_min" : null,
     "visibility_zoom_max" : null,
     "poi_type_group_id" : 1
@@ -13,232 +12,21 @@
   {
     "_id" : 2,
     "name" : {
-      "en" : "Parking",
-      "zh" : "停车"
+      "zh" : "展品"
     },
-    "icon" : "img/poi_navvis/access_parking.png",
+    "icon" : "poi/image/20210823_093223761.png",
     "visibility_zoom_min" : null,
     "visibility_zoom_max" : null,
-    "poi_type_group_id" : 3
+    "poi_type_group_id" : 1
   },
   {
     "_id" : 3,
     "name" : {
-      "en" : "Stairs",
-      "zh" : "楼梯"
+      "zh" : "项目"
     },
-    "icon" : "img/poi_navvis/access_steps.png",
+    "icon" : "poi/image/20210823_093208887.png",
     "visibility_zoom_min" : null,
     "visibility_zoom_max" : null,
     "poi_type_group_id" : 1
-  },
-  {
-    "_id" : 4,
-    "name" : {
-      "en" : "Entrance/Exit",
-      "zh" : "出入口"
-    },
-    "icon" : "img/poi_navvis/access_entrance_exit.png",
-    "visibility_zoom_min" : 4.0,
-    "visibility_zoom_max" : 50.0,
-    "poi_type_group_id" : 1
-  },
-  {
-    "_id" : 5,
-    "name" : {
-      "en" : "Maintenance",
-      "zh" : "维护"
-    },
-    "icon" : "img/poi_navvis/facility_mngmt_maintenance.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 6
-  },
-  {
-    "_id" : 6,
-    "name" : {
-      "en" : "Generic",
-      "zh" : "通用标记"
-    },
-    "icon" : "img/poi_navvis/generic_poi.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 6
-  },
-  {
-    "_id" : 7,
-    "name" : {
-      "en" : "Meeting Room",
-      "zh" : "会议室"
-    },
-    "icon" : "img/poi_navvis/office_meeting_room.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 2
-  },
-  {
-    "_id" : 8,
-    "name" : {
-      "en" : "Office",
-      "zh" : "办公室"
-    },
-    "icon" : "img/poi_navvis/office_office.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 2
-  },
-  {
-    "_id" : 9,
-    "name" : {
-      "en" : "Bus",
-      "zh" : "公共汽车"
-    },
-    "icon" : "img/poi_navvis/publictransport_bus.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 3
-  },
-  {
-    "_id" : 10,
-    "name" : {
-      "en" : "Taxi",
-      "zh" : "出租车"
-    },
-    "icon" : "img/poi_navvis/publictransport_taxi.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 3
-  },
-  {
-    "_id" : 11,
-    "name" : {
-      "en" : "Train",
-      "zh" : "火车"
-    },
-    "icon" : "img/poi_navvis/publictransport_train.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 3
-  },
-  {
-    "_id" : 12,
-    "name" : {
-      "en" : "Health",
-      "zh" : "医疗设施"
-    },
-    "icon" : "img/poi_navvis/safety_health.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 7
-  },
-  {
-    "_id" : 13,
-    "name" : {
-      "en" : "Fire",
-      "zh" : "消防设施"
-    },
-    "icon" : "img/poi_navvis/safety_fire.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 7
-  },
-  {
-    "_id" : 14,
-    "name" : {
-      "en" : "Babycare",
-      "zh" : "母婴室"
-    },
-    "icon" : "img/poi_navvis/sanitary_babycare.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 4
-  },
-  {
-    "_id" : 15,
-    "name" : {
-      "en" : "Restroom (Accessible)",
-      "zh" : "专用厕所"
-    },
-    "icon" : "img/poi_navvis/sanitary_toiletdisabled.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 4
-  },
-  {
-    "_id" : 16,
-    "name" : {
-      "en" : "Restroom (Men)",
-      "zh" : "男厕所"
-    },
-    "icon" : "img/poi_navvis/sanitary_toiletmen.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 4
-  },
-  {
-    "_id" : 17,
-    "name" : {
-      "en" : "Restroom (Women)",
-      "zh" : "女厕所"
-    },
-    "icon" : "img/poi_navvis/sanitary_toiletwomen.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 4
-  },
-  {
-    "_id" : 18,
-    "name" : {
-      "en" : "Food",
-      "zh" : "餐饮"
-    },
-    "icon" : "img/poi_navvis/services_food.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 5
-  },
-  {
-    "_id" : 19,
-    "name" : {
-      "en" : "Information",
-      "zh" : "信息咨询"
-    },
-    "icon" : "img/poi_navvis/services_information.png",
-    "visibility_zoom_min" : 4.0,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 5
-  },
-  {
-    "_id" : 20,
-    "name" : {
-      "en" : "Store",
-      "zh" : "购物"
-    },
-    "icon" : "img/poi_navvis/services_shops.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 5
-  },
-  {
-    "_id" : 21,
-    "name" : {
-      "en" : "Video",
-      "zh" : "视频"
-    },
-    "icon" : "img/poi_navvis/vr_video.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 8
-  },
-  {
-    "_id" : 22,
-    "name" : {
-      "en" : "Audio",
-      "zh" : "音频"
-    },
-    "icon" : "img/poi_navvis/vr_audio.png",
-    "visibility_zoom_min" : null,
-    "visibility_zoom_max" : null,
-    "poi_type_group_id" : 8
   }
 ]

+ 244 - 0
laser/src/main/resources/data/poi_type_1.json

@@ -0,0 +1,244 @@
+[
+  {
+    "_id" : 1,
+    "name" : {
+      "en" : "Elevator",
+      "zh" : "电梯"
+    },
+    "icon" : "img/poi_navvis/access_elevator.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 1
+  },
+  {
+    "_id" : 2,
+    "name" : {
+      "en" : "Parking",
+      "zh" : "停车"
+    },
+    "icon" : "img/poi_navvis/access_parking.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 3
+  },
+  {
+    "_id" : 3,
+    "name" : {
+      "en" : "Stairs",
+      "zh" : "楼梯"
+    },
+    "icon" : "img/poi_navvis/access_steps.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 1
+  },
+  {
+    "_id" : 4,
+    "name" : {
+      "en" : "Entrance/Exit",
+      "zh" : "出入口"
+    },
+    "icon" : "img/poi_navvis/access_entrance_exit.png",
+    "visibility_zoom_min" : 4.0,
+    "visibility_zoom_max" : 50.0,
+    "poi_type_group_id" : 1
+  },
+  {
+    "_id" : 5,
+    "name" : {
+      "en" : "Maintenance",
+      "zh" : "维护"
+    },
+    "icon" : "img/poi_navvis/facility_mngmt_maintenance.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 6
+  },
+  {
+    "_id" : 6,
+    "name" : {
+      "en" : "Generic",
+      "zh" : "通用标记"
+    },
+    "icon" : "img/poi_navvis/generic_poi.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 6
+  },
+  {
+    "_id" : 7,
+    "name" : {
+      "en" : "Meeting Room",
+      "zh" : "会议室"
+    },
+    "icon" : "img/poi_navvis/office_meeting_room.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 2
+  },
+  {
+    "_id" : 8,
+    "name" : {
+      "en" : "Office",
+      "zh" : "办公室"
+    },
+    "icon" : "img/poi_navvis/office_office.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 2
+  },
+  {
+    "_id" : 9,
+    "name" : {
+      "en" : "Bus",
+      "zh" : "公共汽车"
+    },
+    "icon" : "img/poi_navvis/publictransport_bus.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 3
+  },
+  {
+    "_id" : 10,
+    "name" : {
+      "en" : "Taxi",
+      "zh" : "出租车"
+    },
+    "icon" : "img/poi_navvis/publictransport_taxi.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 3
+  },
+  {
+    "_id" : 11,
+    "name" : {
+      "en" : "Train",
+      "zh" : "火车"
+    },
+    "icon" : "img/poi_navvis/publictransport_train.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 3
+  },
+  {
+    "_id" : 12,
+    "name" : {
+      "en" : "Health",
+      "zh" : "医疗设施"
+    },
+    "icon" : "img/poi_navvis/safety_health.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 7
+  },
+  {
+    "_id" : 13,
+    "name" : {
+      "en" : "Fire",
+      "zh" : "消防设施"
+    },
+    "icon" : "img/poi_navvis/safety_fire.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 7
+  },
+  {
+    "_id" : 14,
+    "name" : {
+      "en" : "Babycare",
+      "zh" : "母婴室"
+    },
+    "icon" : "img/poi_navvis/sanitary_babycare.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 4
+  },
+  {
+    "_id" : 15,
+    "name" : {
+      "en" : "Restroom (Accessible)",
+      "zh" : "专用厕所"
+    },
+    "icon" : "img/poi_navvis/sanitary_toiletdisabled.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 4
+  },
+  {
+    "_id" : 16,
+    "name" : {
+      "en" : "Restroom (Men)",
+      "zh" : "男厕所"
+    },
+    "icon" : "img/poi_navvis/sanitary_toiletmen.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 4
+  },
+  {
+    "_id" : 17,
+    "name" : {
+      "en" : "Restroom (Women)",
+      "zh" : "女厕所"
+    },
+    "icon" : "img/poi_navvis/sanitary_toiletwomen.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 4
+  },
+  {
+    "_id" : 18,
+    "name" : {
+      "en" : "Food",
+      "zh" : "餐饮"
+    },
+    "icon" : "img/poi_navvis/services_food.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 5
+  },
+  {
+    "_id" : 19,
+    "name" : {
+      "en" : "Information",
+      "zh" : "信息咨询"
+    },
+    "icon" : "img/poi_navvis/services_information.png",
+    "visibility_zoom_min" : 4.0,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 5
+  },
+  {
+    "_id" : 20,
+    "name" : {
+      "en" : "Store",
+      "zh" : "购物"
+    },
+    "icon" : "img/poi_navvis/services_shops.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 5
+  },
+  {
+    "_id" : 21,
+    "name" : {
+      "en" : "Video",
+      "zh" : "视频"
+    },
+    "icon" : "img/poi_navvis/vr_video.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 8
+  },
+  {
+    "_id" : 22,
+    "name" : {
+      "en" : "Audio",
+      "zh" : "音频"
+    },
+    "icon" : "img/poi_navvis/vr_audio.png",
+    "visibility_zoom_min" : null,
+    "visibility_zoom_max" : null,
+    "poi_type_group_id" : 8
+  }
+]