public final class OsmLayerParserPlugin extends AbstractGridCoverageLayerPlugin implements MapLayerFactoryPlugin<OsmLayerParam>
Renders OpenStreetMap or other tiled layers.
Type: osm
| Constructor and Description |
|---|
OsmLayerParserPlugin() |
| Modifier and Type | Method and Description |
|---|---|
OsmLayerParam |
createParameter()
Create an instance of a param object.
|
java.util.Set<java.lang.String> |
getTypeNames()
Return a set of all the values the json 'type' property should have for this plugin to apply typenames
MUST be lowercase.
|
OsmLayer |
parse(Template template,
OsmLayerParam param)
Inspect the json data and return Optional<MapLayer> or Optional.absent().
|
createStyleSupplierpublic java.util.Set<java.lang.String> getTypeNames()
MapLayerFactoryPlugingetTypeNames in interface MapLayerFactoryPlugin<OsmLayerParam>public OsmLayerParam createParameter()
MapLayerFactoryPluginAttribute value objects. See ReflectiveAttribute.createValue(org.mapfish.print.config.Template)()} for
details on how the parsing mechanism works.createParameter in interface MapLayerFactoryPlugin<OsmLayerParam>@Nonnull public OsmLayer parse(@Nonnull Template template, @Nonnull OsmLayerParam param)
MapLayerFactoryPluginparse in interface MapLayerFactoryPlugin<OsmLayerParam>template - the configuration related to the current request.param - an object populated from the json for the layer