package com.codename1.maps.vector
The pure-vector map rendering engine that backs
MapView.
The engine decodes Mapbox Vector Tiles (MVT) with the framework protobuf
reader and draws them entirely through the Codename One Graphics
API – there is no native peer, so a MapView composes
with regular lightweight UI on every platform including the simulator and
the browser. Tiles are supplied by a pluggable
TileSource (network MVT or raster, bundled
fixtures, or the keyless OpenFreeMap basemap) and styled with a
MapStyle (a subset of the MapLibre GL style
specification). The classes in this package are internal building blocks of
the engine; application code targets MapView and the
public tile-source and style types.
Types
class BundledTileSource | A TileSource that loads tiles from application resources bundled into the app (the classpath), with no network access. |
class DemoTileSource | A self-contained TileSource that synthesizes a deterministic Mapbox Vector Tile in memory for every address, with no network or bundled assets. |
class HttpTileSource | A TileSource that fetches tiles over HTTPS from a slippy-map URL template. |
class MapStyle | An ordered list of StyleLayer rules plus a background color, describing how a vector tile is painted. |
class MvtDecoder | Decodes a Mapbox Vector Tile (MVT 2.1, application/x-protobuf) into the in-memory VectorTile model using the framework’s protobuf reader (ProtoReader). |
class MvtTileSource | A networked MVT (Mapbox Vector Tile) source. |
class RasterTileSource | A networked raster (image) XYZ tile source. |
class StyleLayer | One rule of a MapStyle: it selects features from a named vector-tile source layer (optionally narrowed by a single attribute equality filter) within a zoom range, and describes how to paint them. |
interface TileCallback | Asynchronous result callback for TileSource.fetchTile. |
interface TileSource | Supplies tile payloads to the VectorMapEngine given a slippy-map z/x/y address. |
class VectorFeature | A single decoded feature of a Mapbox Vector Tile: its geometry type, its attribute map, and its geometry as one or more parts in tile-local coordinates (0..VectorLayer.getExtent, origin top-left). |
class VectorLayer | A named layer of a decoded vector tile (for example water, road, building, place) holding its features and the integer extent of its local coordinate grid (4096 by default). |
class VectorMapEngine | The pure-Codename One map renderer behind MapView (and the NativeMap fallback). |
class VectorTile | A decoded Mapbox Vector Tile: an ordered collection of named VectorLayers. |
class WebMercator | Spherical Web Mercator (EPSG:3857) helpers expressed in “world pixels” – the slippy-map coordinate space where the whole world spans tileSize * 2^zoom pixels. |