Package org.geotools.mbstyle.source
Class MediaMBSource
- Direct Known Subclasses:
CanvasMBSource
,ImageMBSource
,VideoMBSource
Wrapper around a
JSONObject
containing a Mapbox media (image or video) source.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMediaMBSource
(JSONObject json) MediaMBSource
(JSONObject json, MBObjectParser parser) -
Method Summary
Modifier and TypeMethodDescription(Required) Array of [longitude, latitude] pairs for the image corners listed in clockwise order: top left, top right, bottom right, bottom left.
-
Constructor Details
-
MediaMBSource
public MediaMBSource(JSONObject json) -
MediaMBSource
-
-
Method Details
-
getCoordinates
(Required) Array of [longitude, latitude] pairs for the image corners listed in clockwise order: top left, top right, bottom right, bottom left. Example:
"coordinates": [ [-80.425, 46.437], [-71.516, 46.437], [-71.516, 37.936], [-80.425, 37.936] ]
- Returns:
- Array of [longitude, latitude] pairs for the image corners listed in clockwise order
-