fs-danaus
2024-03-03 03d225272f860f4285acae67c102b73532bd3b2a
提交 | 用户 | age
03d225 1 package com.yc.sdk.map.service;
F 2
3 import com.yc.entity.AttachmentConfig;
4 import com.yc.sdk.gaodemap.api.GaoDeMapService;
5 import com.yc.sdk.huaweimap.service.HuaWeiMapService;
6
7 public class MapService {
8     public static AbstractMapService getMapFactory() {
9         String map_provider = AttachmentConfig.get("map_provider");
10         switch (map_provider) {
11             case "huawei":
12                 return new HuaWeiMapService();
13             case "gaode":
14                 return new GaoDeMapService();
15             default:
16                 return new HuaWeiMapService();
17         }
18     }
19 }