|
@@ -2,13 +2,17 @@ package cn.com.taiji.web.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+import cn.com.taiji.cn.com.taiji.common.domain.Result;
|
|
import cn.com.taiji.cql.model.GeoDataSource;
|
|
import cn.com.taiji.cql.model.GeoDataSource;
|
|
import cn.com.taiji.cql.model.GeoRequestParam;
|
|
import cn.com.taiji.cql.model.GeoRequestParam;
|
|
import cn.com.taiji.tile.service.ITileService;
|
|
import cn.com.taiji.tile.service.ITileService;
|
|
import cn.com.taiji.web.service.IGeoDataSourceService;
|
|
import cn.com.taiji.web.service.IGeoDataSourceService;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -18,6 +22,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import java.util.Enumeration;
|
|
import java.util.Enumeration;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
|
+import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -28,6 +33,7 @@ import java.util.Map;
|
|
*/
|
|
*/
|
|
@Slf4j
|
|
@Slf4j
|
|
@RestController
|
|
@RestController
|
|
|
|
+@Api("图层通用查询控制器")
|
|
public class TileWebController {
|
|
public class TileWebController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -37,6 +43,15 @@ public class TileWebController {
|
|
private IGeoDataSourceService geoDataSourceService;
|
|
private IGeoDataSourceService geoDataSourceService;
|
|
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation("面向瓦片的点击查询")
|
|
|
|
+ @GetMapping("/queryElements")
|
|
|
|
+ public Result<List<?>> queryElements(String bbox,Integer type,String layerName){
|
|
|
|
+ List<?> list=tileService.queryElements(bbox,type,layerName);
|
|
|
|
+
|
|
|
|
+ return Result.ok();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@RequestMapping(value = {"/queryTile"}, method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = {"/queryTile"}, method = {RequestMethod.GET, RequestMethod.POST})
|
|
public void queryTile(HttpServletRequest request, HttpServletResponse response) {
|
|
public void queryTile(HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
|