| | |
| | | |
| | | namespace ExportMap.Controllers |
| | | { |
| | | //[RoutePrefix("3d/terrain")] |
| | | public class TerraController : ApiController |
| | | { |
| | | [Route("{path}/layer.json")] |
| | | // http://localhost/ExportMap/terra/dem/layer.json |
| | | [Route("terra/{path}")] |
| | | [HttpGet] |
| | | public string GetLayer(string path) |
| | | public string GetLayerJson(string path) |
| | | { |
| | | return "layer.json"; |
| | | } |
| | | |
| | | [Route("{path}/{z}/{x}/{y}.terrain")] |
| | | // http://localhost/ExportMap/terra/dem/3/1/2.terrain |
| | | [Route("terra/{path}/{z}/{x}/{y}")] |
| | | [HttpGet] |
| | | public string GetTerrain(string path, int z, int x, int y) |
| | | { |
| | | return ".terrain"; |
| | | } |
| | | |
| | | /*[Route("api/order/{id:int=3}/ordertype")] |
| | | [HttpGet] |
| | | public string CreateMpt(string path, string token) |
| | | public IHttpActionResult GetById(int id) |
| | | { |
| | | return path; |
| | | return Ok<string>("Success" + id); |
| | | } |
| | | |
| | | [AcceptVerbs("GET", "POST")] |
| | | public IHttpActionResult GetById(int id) |
| | | { |
| | | return Ok<string>("Success" + id); |
| | | }*/ |
| | | } |
| | | } |