JSD-7866 开源任务材料
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

50 lines
1.4 KiB

package com.fr.plugin.provider;
import com.fanruan.api.report.chart.BaseChartType;
import com.fanruan.api.report.chart.BaseChartWithData;
import com.fr.log.FineLoggerFactory;
import com.fr.plugin.chart.POMapChartData;
import com.fr.plugin.transform.ExecuteFunctionRecord;
import com.fr.plugin.transform.FunctionRecorder;
@FunctionRecorder
public class POMapChatType extends BaseChartType {
@Override
@ExecuteFunctionRecord
public void init() {
super.init();
FineLoggerFactory.getLogger().error("定制点地图初始化");
}
public BaseChartWithData[] getChartTypes() {
return new BaseChartWithData[]{
new POMapChartData(),
};
}
@Override
public String[] getRequiredJS() {
FineLoggerFactory.getLogger().error("定制点地图初始化 获取js依赖");
return new String[]{
"/com/fr/plugin/js/map.js",
"/com/fr/plugin/js/openlayer/ol.js",
};
}
@Override
public String[] getRequiredCss() {
return new String[]{
"/com/fr/plugin/js/openlayer/ol.css",
"/com/fr/plugin/css/map.css"
};
}
/**
* JS对象名,该对象一般是一个函数,执行后会在给定的dom中绘制图表
*
* @return JS对象名
*/
public String getWrapperName() {
return "poMapWrapper";
}
}