Browse Source
* commit 'f5ae4f9c973ea10b0a5bf2b728ebb0386028139c': REPORT-137540 远程设计下地图加载卡慢 REPORT-137540 - 远程设计下地图加载卡慢 REPORT-138771 fix:远程设计取数异常信息解包fbp/merge
superman
3 months ago
4 changed files with 48 additions and 1 deletions
@ -0,0 +1,36 @@ |
|||||||
|
package com.fanruan.map; |
||||||
|
|
||||||
|
import com.fr.decision.webservice.v10.map.geojson.MapDataType; |
||||||
|
import com.fr.decision.webservice.v10.map.geojson.helper.GEOJSONHelper; |
||||||
|
import com.fr.decision.webservice.v10.map.geojson.helper.GEOJSONUtils; |
||||||
|
import com.fr.log.FineLoggerFactory; |
||||||
|
import com.fr.third.org.apache.commons.lang3.time.StopWatch; |
||||||
|
import com.fr.workspace.server.repository.map.MapRepository; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设计器地图资源Helper |
||||||
|
* |
||||||
|
* @author Destiny.Lin |
||||||
|
* @since 11.0 |
||||||
|
* Created on 2024/9/27 |
||||||
|
*/ |
||||||
|
public class DesignGEOJSONHelper extends GEOJSONHelper { |
||||||
|
|
||||||
|
@Override |
||||||
|
protected void init() { |
||||||
|
try { |
||||||
|
|
||||||
|
StopWatch watch = new StopWatch(); |
||||||
|
watch.start(); |
||||||
|
URL_JSON_MAP.putAll(MapRepository.getInstance().getMapResource(GEOJSONUtils.getMapDataTypePath(MapDataType.GEOGRAPHIC))); |
||||||
|
URL_JSON_MAP.putAll(MapRepository.getInstance().getMapResource(GEOJSONUtils.getMapDataTypePath(MapDataType.IMAGE))); |
||||||
|
|
||||||
|
FineLoggerFactory.getLogger().info("Load chart map resources spend time {} ms", watch.getTime()); |
||||||
|
watch.stop(); |
||||||
|
|
||||||
|
} catch (Exception e) { |
||||||
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue