
org.opentripplanner.apis.vectortiles.model.LayerParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.apis.vectortiles.model;
import org.opentripplanner.apis.vectortiles.model.TileSource.VectorSource;
import org.opentripplanner.inspector.vector.LayerParameters;
public record LayerParams(String name, LayerType type) implements LayerParameters {
@Override
public String mapper() {
return "DebugClient";
}
/**
* Convert these params to a vector source layer so that it can be used in the style for rendering
* in the frontend.
*/
public VectorSourceLayer toVectorSourceLayer(VectorSource source) {
return new VectorSourceLayer(source, name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy