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