Package org.opentripplanner.api.parameter

Examples of org.opentripplanner.api.parameter.Style


        TileRequest tileRequest = new TileRequest("", env, 256, 256);
        RoutingRequest sptRequestA = buildRequest(0);
        RoutingRequest sptRequestB = buildRequest(1);

        Layer layer = layers.get(0);
        Style style = styles.get(0);
        RenderRequest renderRequest = new RenderRequest(format, layer, style, true, false);

        return null; //renderer.getResponse(tileRequest, sptRequestA, sptRequestB, renderRequest);
    }
View Full Code Here


    @GET @Produces("image/*")
    public Response tileGet() throws Exception {
      if (format.equals("jpg"))
        format = "jpeg";
        MIMEImageFormat mimeFormat = new MIMEImageFormat("image/" + format);
        Style style = styles.get(0);
        BufferedImage image = Tile.getLegend(style, width, height);
        return Renderer.generateStreamingImageResponse(image, mimeFormat);
    }
View Full Code Here

TOP

Related Classes of org.opentripplanner.api.parameter.Style

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.