|
@@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.servlet.ServletOutputStream;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -44,25 +45,6 @@ public class TileWebController {
|
|
|
@Autowired
|
|
|
private IGeoDataSourceService geoDataSourceService;
|
|
|
|
|
|
- @PostConstruct
|
|
|
- public void initData(){
|
|
|
- try {
|
|
|
- List<LayerGroupDsView> layerGroupDsViewList = geoDataSourceService.layerCodeGeoDataSource("socialManagementElement");
|
|
|
-
|
|
|
-
|
|
|
- } catch (Exception e) {
|
|
|
- throw new RuntimeException(e);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- @ApiOperation("面向瓦片的点击查询")
|
|
|
- @GetMapping("/queryElements")
|
|
|
- public Result queryElements(String bbox,Integer type,String layerName){
|
|
|
- List<?> list=tileService.queryElements(bbox,type,layerName);
|
|
|
-
|
|
|
- return Result.of(list, 0, "操作成功");
|
|
|
- }
|
|
|
|
|
|
|
|
|
@RequestMapping(value = {"/queryTile"}, method = {RequestMethod.GET, RequestMethod.POST})
|