初始化

This commit is contained in:
hukekuan@163.com 2018-03-07 14:42:33 +08:00
parent 48749020ae
commit 4212cfa194

View File

@ -131,14 +131,22 @@ public class Layer {
String[] sourceTypeArray = null; String[] sourceTypeArray = null;
switch (this.getType()){ switch (this.getType()){
case "ol.layer.Tile": case "ol.layer.Tile":
sourceTypeArray = new String[]{"ol.source.TileSuperMapRest","ol.source.WMTS","ol.source.TileArcGISRest"}; sourceTypeArray = new String[]{
"ol.source.TileSuperMapRest",
"ol.source.WMTS",
"ol.source.TileArcGISRest"
};
break; break;
case "ol.layer.Image": case "ol.layer.Image":
sourceTypeArray = new String[]{"ol.source.Image"}; sourceTypeArray = new String[]{"ol.source.Image"};
break; break;
case "ol.layer.Vector": case "ol.layer.Vector":
case "ol.layer.Heatmap": case "ol.layer.Heatmap":
sourceTypeArray = new String[]{"ol.source.Vector"}; sourceTypeArray = new String[]{
"ol.source.Vector",
"ol.supermap.FeatureService",
"arcgis.FeatureService"
};
break; break;
case "ol.layer.VectorTile": case "ol.layer.VectorTile":
sourceTypeArray = new String[]{"ol.source.VectorTile"}; sourceTypeArray = new String[]{"ol.source.VectorTile"};