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();
|
}
|
}
|
}
|