TileController
Implement a new org.genesys2.server.api.v1.TileController
with a single method tile
(copy the method from ExplorerController). The new method must rely only on the filterCode
and not on filters object.
Even if this is in the api.v1
package, it should not use the /api/v1 path prefix so that it bypasses the OAuth.
@RequestMapping(value = "/explore/tile/{zoom}/{x}/{y}/{filterCode}", produces = MediaType.IMAGE_PNG_VALUE)
public void tile(@PathVariable(value = "filterCode", required = true) String filterCode,
@RequestParam(value = "color", required = false) String color,
@PathVariable("x") int x, @PathVariable("y") int y, @PathVariable("zoom") int zoom,
HttpServletResponse response) {
...
}
Note: If it the mapping clashes with ExplorerController#tile
mapping, then use just /tile/{zoom}...