初始化
This commit is contained in:
parent
48749020ae
commit
4212cfa194
@ -131,14 +131,22 @@ public class Layer {
|
||||
String[] sourceTypeArray = null;
|
||||
switch (this.getType()){
|
||||
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;
|
||||
case "ol.layer.Image":
|
||||
sourceTypeArray = new String[]{"ol.source.Image"};
|
||||
break;
|
||||
case "ol.layer.Vector":
|
||||
case "ol.layer.Heatmap":
|
||||
sourceTypeArray = new String[]{"ol.source.Vector"};
|
||||
sourceTypeArray = new String[]{
|
||||
"ol.source.Vector",
|
||||
"ol.supermap.FeatureService",
|
||||
"arcgis.FeatureService"
|
||||
};
|
||||
break;
|
||||
case "ol.layer.VectorTile":
|
||||
sourceTypeArray = new String[]{"ol.source.VectorTile"};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user