public class MBObjectStops extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MBObjectStops.LayerStops
Function stops representation.
|
| Modifier and Type | Field and Description |
|---|---|
List<MBLayer> |
layersForStop |
MBObjectStops.LayerStops |
ls |
List<double[]> |
ranges |
List<Double> |
stops |
| Constructor and Description |
|---|
MBObjectStops(MBLayer layer)
Data structure for pre-processing a MBLayer determining whether the layer contains zoom and
zoom-and-property functions and if so, getting the distinct stops for each, building a list
of MBLayers (one for each stop) and setting ranges that are used to set min/max scale
denominators for each MBLayer.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCurrentStop(MBLayer layer)
Gets the current stop of the layer.
|
double[] |
getRangeForStop(Double stop,
List<double[]> ranges)
Finds the distinct range for the current stop.
|
double |
getStop(MBLayer layer) |
static Double |
zoomLevelToScaleDenominator(double zoomLevel)
Take a web mercator zoom level, and return the equivalent scale denominator (at the equator).
|
public MBObjectStops.LayerStops ls
public List<double[]> ranges
public MBObjectStops(MBLayer layer)
layer - Layer being processed for stopspublic double getCurrentStop(MBLayer layer)
layer - Layer being processedpublic double[] getRangeForStop(Double stop, List<double[]> ranges)
stop - Current stopranges - Available rangespublic static Double zoomLevelToScaleDenominator(double zoomLevel)
Converting to a scale denominator at the equator is consistent with the conversion elsewhere in GeoTools, e.g., in the GeoTools YSLD ZoomContextFinder.
zoomLevel - The zoom levelpublic double getStop(MBLayer layer)
Copyright © 1996–2021 Geotools. All rights reserved.