public class MBVectorTileDecoder extends VectorTileDecoder
swigCMemOwn
Constructor and Description |
---|
MBVectorTileDecoder(CartoCSSStyleSet cartoCSSStyleSet)
Constructs decoder for MapBox vector tiles based on specified CartoCSS style set.
|
MBVectorTileDecoder(long cPtr,
boolean cMemoryOwn) |
MBVectorTileDecoder(MBVectorTileStyleSet styleSet)
Constructs decoder for MapBox vector tiles based on specified style set.
If the style set contains multiple styles, the first one (based on lexicographical order) from the root folder is chosen as the current style. |
MBVectorTileDecoder(MBVectorTileStyleSet styleSet,
java.lang.String styleName)
Constructs decoder for MapBox vector tiles based on specified style set.
Specified style is selected as the current style. |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
CartoCSSStyleSet |
getCartoCSSStyleSet()
Returns the current CartoCSS style set used by the decoder.
If decoder uses non-CartoCSS style set, null is returned. |
static long |
getCPtr(MBVectorTileDecoder obj) |
java.lang.String |
getCurrentStyleName()
Returns the current style name.
|
int |
getMaxZoom()
Returns maximum zoom level supported for by the decoder (or style).
|
int |
getMinZoom()
Returns minimum zoom level supported for by the decoder (or style).
|
void |
setBuffering(float buffer)
Set tile buffering.
|
void |
setCartoCSSStyleSet(CartoCSSStyleSet styleSet)
Sets the current CartoCSS style set used by the decoder.
|
void |
setCurrentStyle(java.lang.String styleName)
Select current style by style name.
|
void |
setStyleParameter(java.lang.String param,
boolean value)
Sets a style parameter to specified boolean value.
The style parameter must be declared in the current style. |
void |
setStyleParameter(java.lang.String param,
double value)
Sets a style parameter to specified floating point value.
The style parameter must be declared in the current style. |
void |
setStyleParameter(java.lang.String param,
long value)
Sets a style parameter to specified integer value.
The style parameter must be declared in the current style. |
void |
setStyleParameter(java.lang.String param,
java.lang.String value)
Sets a style parameter to specified string value.
The style parameter must be declared in the current style. |
static MBVectorTileDecoder |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
equals, getCPtr, hashCode, notifyDecoderChanged
public MBVectorTileDecoder(long cPtr, boolean cMemoryOwn)
public MBVectorTileDecoder(MBVectorTileStyleSet styleSet)
styleSet
- Style set for the tiles.public MBVectorTileDecoder(MBVectorTileStyleSet styleSet, java.lang.String styleName)
styleSet
- Style set for the tiles.styleName
- Style to select.public MBVectorTileDecoder(CartoCSSStyleSet cartoCSSStyleSet)
cartoCSSStyleSet
- The CartoCSS style set for the tiles.public static long getCPtr(MBVectorTileDecoder obj)
protected void finalize()
finalize
in class VectorTileDecoder
public void delete()
delete
in class VectorTileDecoder
public static MBVectorTileDecoder swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public java.lang.String getCurrentStyleName()
public void setCurrentStyle(java.lang.String styleName)
styleName
- style to usepublic CartoCSSStyleSet getCartoCSSStyleSet()
public void setCartoCSSStyleSet(CartoCSSStyleSet styleSet)
styleSet
- The new style set to use.public void setStyleParameter(java.lang.String param, boolean value)
param
- The parameter to set.value
- The value for the parameter.public void setStyleParameter(java.lang.String param, long value)
param
- The parameter to set.value
- The value for the parameter.public void setStyleParameter(java.lang.String param, double value)
param
- The parameter to set.value
- The value for the parameter.public void setStyleParameter(java.lang.String param, java.lang.String value)
param
- The parameter to set.value
- The value for the parameter.public void setBuffering(float buffer)
buffer
- The amount of buffering to use. It is based on normalized tile coordinates (tile width=1.0), so 1.0/64.0 is a sensible value. The default is 0.public int getMinZoom()
VectorTileDecoder
getMinZoom
in class VectorTileDecoder
public int getMaxZoom()
VectorTileDecoder
getMaxZoom
in class VectorTileDecoder
public java.lang.String swigGetClassName()
swigGetClassName
in class VectorTileDecoder
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class VectorTileDecoder