@Path(value="/routers/{routerId}/inspector")
public class GraphInspectorTileResource
extends RoutingResource
   var bikesafety = new L.TileLayer(
      'http://localhost:8080/otp/routers/default/inspector/tile/bike-safety/{z}/{x}/{y}.png',
      { maxZoom : 22 });
   var map = L.map(...);
   L.control.layers(null, { "Bike safety": bikesafety }).addTo(map);
 
 
 Tile rendering goes through TileRendererManager which select the appropriate renderer for the
 given layer.TileRendererManager, 
TileRendererarriveBy, bannedAgencies, bannedRoutes, bannedStops, bannedStopsHard, bannedTrips, batch, bikeBoardCost, bikeSpeed, bikeSwitchCost, bikeSwitchTime, clampInitialWait, date, disableRemainingWeightHeuristic, fromPlace, ignoreRealtimeUpdates, intermediatePlaces, maxPreTransitTime, maxTransfers, maxWalkDistance, minTransferTime, modes, nonpreferredTransferPenalty, numItineraries, optimize, otherThanPreferredRoutesPenalty, preferredAgencies, preferredRoutes, reverseOptimizeOnTheFly, showIntermediateStops, startTransitStopId, startTransitTripId, time, toPlace, transferPenalty, triangleSafetyFactor, triangleSlopeFactor, triangleTimeFactor, unpreferredAgencies, unpreferredRoutes, waitAtBeginningFactor, waitReluctance, walkBoardCost, walkReluctance, walkSpeed, wheelchair| Constructor and Description | 
|---|
| GraphInspectorTileResource() | 
| Modifier and Type | Method and Description | 
|---|---|
| InspectorLayersList | getLayers()Gets all layer names
 
 Used in fronted to create layer chooser | 
| javax.ws.rs.core.Response | tileGet() | 
buildRequest@GET
 @Path(value="/tile/{layer}/{z}/{x}/{y}.{ext}")
 @Produces(value="image/*")
public javax.ws.rs.core.Response tileGet()
                                                                                                                   throws Exception
Exception@GET
 @Path(value="layers")
 @Produces(value={"application/json","application/xml;qs=0.5","text/xml;qs=0.5"})
public InspectorLayersList getLayers()
Copyright © 2018. All rights reserved.