Package | Description |
---|---|
org.geotools.mbstyle |
Support for MapBox Style generation for GeoTools.
|
org.geotools.mbstyle.expression | |
org.geotools.mbstyle.layer | |
org.geotools.mbstyle.parse |
JSON Parsing support for MapBox Style support.
|
Modifier and Type | Method and Description |
---|---|
static MBStyle |
MBStyle.create(Object json)
Parse MBStyle for the provided json.
|
List<MBLayer> |
MBStyle.layers(String source)
Access layers matching provided source.
|
Modifier and Type | Method and Description |
---|---|
Expression |
MBZoom.getExpression() |
Expression |
MBFeatureData.getExpression() |
Expression |
MBColor.getExpression() |
Expression |
MBTypes.getExpression() |
Expression |
MBHeatmap.getExpression() |
Expression |
MBLookup.getExpression() |
Expression |
MBDecision.getExpression() |
Expression |
MBMath.getExpression() |
Expression |
MBRampsScalesCurves.getExpression() |
Expression |
MBVariableBinding.getExpression() |
Expression |
MBString.stringConcat()
Returns a string consisting of the concatenation of the inputs.
|
protected void |
MBExpression.throwInsufficientArgumentCount(String expression,
int argCount) |
protected void |
MBExpression.throwUnexpectedArgumentCount(String expression,
int argCount) |
Modifier and Type | Method and Description |
---|---|
Expression |
CircleMBLayer.circleBlur()
Access circle-blur as literal or function expression, defaults to 0
|
Expression |
CircleMBLayer.circleColor()
Access circle-color as literal or function expression, defaults to black.
|
Expression |
CircleMBLayer.circleOpacity()
Access circle-opacity, defaults to 1.
|
Expression |
CircleMBLayer.circleRadius()
Access circle-radius as literal or function expression, defaults to 5
|
Expression |
CircleMBLayer.circleStrokeColor()
Access circle-stroke-color as literal or function expression, defaults to black.
|
Expression |
CircleMBLayer.circleStrokeOpacity()
Access circle-stroke-opacity, defaults to 1.
|
Expression |
CircleMBLayer.circleStrokeWidth()
Access circle-stroke-width, defaults to 0.
|
Point |
CircleMBLayer.circleTranslate()
Access circle-translate
|
Expression |
FillExtrusionMBLayer.fillExtrusionBase()
Access fill-extrusion-base as literal or function expression
|
Expression |
FillExtrusionMBLayer.fillExtrusionColor()
Access fill-extrusion-color as literal or function expression, defaults to black.
|
Expression |
FillExtrusionMBLayer.fillExtrusionHeight()
Access fill-extrusion-height as literal or function expression
|
Expression |
FillExtrusionMBLayer.fillExtrusionOpacity()
Access fill-extrusion-opacity as literal or function expression
|
Expression |
FillMBLayer.fillOpacity()
Access fill-opacity, defaults to 1.
|
Number |
CircleMBLayer.getCircleBlur()
(Optional) Amount to blur the circle. 1 blurs the circle such that only the centerpoint is
full opacity.
|
Color |
CircleMBLayer.getCircleColor()
(Optional) The fill color of the circle.
|
Number |
CircleMBLayer.getCircleOpacity()
(Optional) The opacity at which the circle will be drawn.
|
Number |
CircleMBLayer.getCircleRadius()
(Optional) Circle radius in pixels.
|
Color |
CircleMBLayer.getCircleStrokeColor()
(Optional) The stroke color of the circle.
|
Number |
CircleMBLayer.getCircleStrokeOpacity()
(Optional) The opacity of the circle's stroke.
|
Number |
CircleMBLayer.getCircleStrokeWidth()
(Optional) The width of the circle's stroke.
|
int[] |
CircleMBLayer.getCircleTranslate()
(Optional) The geometry's offset.
|
Number |
FillExtrusionMBLayer.getFillExtrusionBase()
(Optional) Units in meters.
|
Color |
FillExtrusionMBLayer.getFillExtrusionColor()
(Optional).
|
Number |
FillExtrusionMBLayer.getFillExtrusionHeight()
(Optional) Units in meters.
|
Number |
FillExtrusionMBLayer.getFillExtrusionOpacity()
(Optional) Defaults to 1.
|
Expression |
FillExtrusionMBLayer.getFillExtrusionPattern()
(Optional) Name of image in sprite to use for drawing images on extruded fills.
|
int[] |
FillExtrusionMBLayer.getFillExtrusionTranslate()
(Optional) Units in pixels.
|
Number |
FillMBLayer.getFillOpacity()
(Optional) The opacity of the entire fill layer.
|
Boolean |
SymbolMBLayer.getIconAllowOverlap()
(Optional) Defaults to false.
|
Number |
SymbolMBLayer.getIconHaloBlur()
(Optional) Units in pixels.
|
Number |
SymbolMBLayer.getIconHaloWidth()
(Optional) Units in pixels.
|
Boolean |
SymbolMBLayer.getIconIgnorePlacement()
(Optional) Defaults to false.
|
String |
SymbolMBLayer.getIconImage()
(Optional) A string with {tokens} replaced, referencing the data property to pull from.
|
Boolean |
SymbolMBLayer.getIconKeepUpright()
(Optional) Defaults to false.
|
double[] |
SymbolMBLayer.getIconOffset()
(Optional) Defaults to 0,0.
|
Number |
SymbolMBLayer.getIconOpacity()
(Optional) Defaults to 1.
|
Boolean |
SymbolMBLayer.getIconOptional()
(Optional) Defaults to false.
|
Number |
SymbolMBLayer.getIconPadding()
(Optional) Units in pixels.
|
Number |
SymbolMBLayer.getIconRotate()
(Optional) Units in degrees.
|
Number |
SymbolMBLayer.getIconSize()
(Optional) Defaults to 1.
|
int[] |
SymbolMBLayer.getIconTranslate()
(Optional) Units in pixels.
|
Boolean |
SymbolMBLayer.getSymbolAvoidEdges()
(Optional) Defaults to false.
|
Number |
SymbolMBLayer.getSymbolSpacing()
(Optional) Units in pixels.
|
Boolean |
SymbolMBLayer.getTextAllowOverlap()
(Optional) Defaults to false.
|
Color |
SymbolMBLayer.getTextColor()
Defaults to #000000.
|
String |
SymbolMBLayer.getTextField()
(Optional) Value to use for a text label.
|
Number |
SymbolMBLayer.getTextHaloBlur()
(Optional) Units in pixels.
|
Color |
SymbolMBLayer.getTextHaloColor()
Defaults to rgba(0, 0, 0, 0).
|
Number |
SymbolMBLayer.getTextHaloWidth()
(Optional) Units in pixels.
|
Boolean |
SymbolMBLayer.getTextIgnorePlacement()
Defaults to false.
|
Boolean |
SymbolMBLayer.getTextKeepUpright()
(Optional) Defaults to true.
|
Number |
SymbolMBLayer.getTextLetterSpacing()
(Optional) Units in ems.
|
Number |
SymbolMBLayer.getTextLineHeight()
(Optional) Units in ems.
|
Number |
SymbolMBLayer.getTextMaxAngle()
(Optional) Units in degrees.
|
Number |
SymbolMBLayer.getTextMaxWidth()
(Optional) Units in ems.
|
double[] |
SymbolMBLayer.getTextOffset()
(Optional) Units in ems.
|
Number |
SymbolMBLayer.getTextOpacity()
(Optional) Defaults to 1.
|
Boolean |
SymbolMBLayer.getTextOptional()
Defaults to false.
|
Number |
SymbolMBLayer.getTextPadding()
(Optional) Units in pixels.
|
Number |
SymbolMBLayer.getTextRotate()
(Optional) Units in degrees.
|
Number |
SymbolMBLayer.getTextSize()
(Optional) Units in pixels.
|
boolean |
SymbolMBLayer.hasIconImage() |
boolean |
SymbolMBLayer.hasTextMaxWidth() |
Expression |
SymbolMBLayer.iconAllowOverlap()
Wraps
SymbolMBLayer.getIconAllowOverlap() in a GeoTools expression. |
Point |
SymbolMBLayer.iconOffset()
Access icon-offset
|
Expression |
SymbolMBLayer.iconOpacity()
Access icon-opacity as literal or function expression
|
Expression |
SymbolMBLayer.iconPadding()
Access icon-padding as literal or function expression
|
Expression |
SymbolMBLayer.iconRotate()
Access icon-rotate as literal or function expression
|
Expression |
SymbolMBLayer.symbolSpacing()
Access symbol-spacing, defaults to 250.
|
Expression |
SymbolMBLayer.textAllowOverlap()
Wraps
SymbolMBLayer.getTextAllowOverlap() in a GeoTools Expression . |
Expression |
SymbolMBLayer.textField()
Access text-field as literal or function expression
|
Expression |
SymbolMBLayer.textFont()
Access text-font as a literal or function expression.
|
Expression |
SymbolMBLayer.textHaloBlur()
Access text-halo-blur as literal or function expression
|
Expression |
SymbolMBLayer.textHaloWidth()
Access text-halo-width as literal or function expression
|
Expression |
SymbolMBLayer.textLetterSpacing()
Access text-line-height as literal or function expression
|
Expression |
SymbolMBLayer.textLineHeight()
Access text-line-height as literal or function expression
|
Expression |
SymbolMBLayer.textMaxWidth()
Access text-max-width as literal or function expression
|
Point |
SymbolMBLayer.textOffset()
Access text-offset
|
Expression |
SymbolMBLayer.textOpacity()
Access text-opacity as literal or function expression
|
Expression |
SymbolMBLayer.textPadding()
Access text-padding as literal or function expression
|
Expression |
SymbolMBLayer.textRotate()
Access text-rotate as literal or function expression
|
Expression |
SymbolMBLayer.textSize()
Access text-size as literal or function expression
|
Modifier and Type | Method and Description |
---|---|
Expression |
MBObjectParser.bool(JSONObject json,
String name,
boolean fallback)
Convert json to Expression boolean, or a function.
|
Expression |
MBObjectParser.color(JSONObject json,
String name,
Color fallback)
Convert json to GeoTools Expression color, or a function.
|
Expression |
MBObjectParser.font(JSONObject json,
String name)
Convert the provided object to a font Expression (or function).
|
boolean |
MBObjectParser.isArray(JSONArray json,
int index)
True if array has an array element at the provided index, False otherwise.
|
boolean |
MBObjectParser.isArray(JSONObject json,
String name)
True if json has an array value for the provided name, False otherwise.
|
boolean |
MBObjectParser.isBoolean(JSONArray json,
int index)
True if array has a boolean element at the provided index, False otherwise.
|
boolean |
MBObjectParser.isBoolean(JSONObject json,
String name)
True if json has a boolean value for the provided name, False otherwise.
|
boolean |
MBObjectParser.isDefined(JSONArray json,
int index)
True if array has an element at the provided index, False otherwise.
|
boolean |
MBObjectParser.isDefined(JSONObject json,
String name)
True if json has a value for the provided name, False otherwise.
|
boolean |
MBObjectParser.isNumeric(JSONArray json,
int index)
True if array has a numeric element at the provided index, False otherwise.
|
boolean |
MBObjectParser.isNumeric(JSONObject json,
String name)
True if json has a numeric value for the provided name, False otherwise.
|
boolean |
MBObjectParser.isObject(JSONArray json,
int index)
True if array has an object element at the provided index, False otherwise.
|
boolean |
MBObjectParser.isObject(JSONObject json,
String name)
True if json has an object value for the provided name, False otherwise.
|
boolean |
MBObjectParser.isPropertyDefined(JSONObject json,
String propertyName)
Deprecated.
|
boolean |
MBObjectParser.isString(JSONArray json,
int index)
True if array has a string element at the provided index, False otherwise.
|
boolean |
MBObjectParser.isString(JSONObject json,
String name)
True if json has a string value for the provided name, False otherwise.
|
JSONArray |
MBObjectParser.jsonArray(Object obj)
Casts the provided obj to a JSONArray (otherwise throws an
MBFormatException ). |
JSONArray |
MBObjectParser.jsonArray(Object obj,
String message)
Casts the provided obj to a JSONArray (otherwise throws an
MBFormatException with the
provided message). |
JSONObject |
MBObjectParser.jsonObect(Object obj,
String message)
Casts the provided obj to a JSONObject (safely reporting format exception, with the provided
message).
|
JSONObject |
MBObjectParser.jsonObject(Object obj)
Casts the provided obj to a JSONObject (safely reporting format exception
|
Expression |
MBObjectParser.number(JSONArray json,
int index)
Convert the value at 'index' in the provided JSONArray to a numeric Expression or a Function.
|
Expression |
MBObjectParser.number(JSONArray json,
int index,
Number fallback)
Convert the value in the provided JSONArray at index to a numeric Expression, or a function,
with a fallback if the json is null.
|
Expression |
MBObjectParser.number(JSONObject json,
String name)
Convert the value in the provided JSONObject at 'tag' to a numeric GeoTools Expression, or a
Function.
|
Expression |
MBObjectParser.number(JSONObject json,
String name,
Number fallback)
Convert the value in the provided JSONObject at 'tag' to a numeric Expression, or a function,
with a fallback if the json is null.
|
MBStyle |
MBStyleParser.parse(InputStream json)
Parse the provided json into MBStyle.
|
MBStyle |
MBStyleParser.parse(Reader json)
Parse the provided json into MBStyle.
|
MBStyle |
MBStyleParser.parse(String json)
Parse the provided json into MBStyle.
|
Expression |
MBObjectParser.percentage(JSONObject json,
String name)
Convert json to Expression number between 0 and 1, or a function.
|
Expression |
MBObjectParser.percentage(JSONObject json,
String name,
Number fallback)
Convert json to Expression number between 0 and 1, or a function.
|
Expression |
MBObjectParser.string(JSONObject json,
String name,
String fallback)
Convert json to GeoTools Expression string, or a function.
|
Copyright © 1996–2022 Geotools. All rights reserved.