Package org.geotools.mbstyle.source
Class CanvasMBSource
Object
MBSource
MediaMBSource
CanvasMBSource
Wrapper around a
JSONObject
containing a Mapbox canvas source.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCanvasMBSource
(JSONObject json) CanvasMBSource
(JSONObject json, MBObjectParser parser) -
Method Summary
Methods inherited from class MediaMBSource
getCoordinates
-
Constructor Details
-
CanvasMBSource
public CanvasMBSource(JSONObject json) -
CanvasMBSource
-
-
Method Details
-
getCanvas
(Required) HTML ID of the canvas from which to read pixels.- Returns:
- String value for the HTML ID
-
getAnimate
(Optional) Defaults to true. Whether the canvas source is animated. If the canvas is static, animate should be set to false to improve performance.- Returns:
- Boolean for whether the source is animated, defaulting to true.
-
getType
Description copied from class:MBSource
Type of source.
-