Package com.codename1.maps.vector
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.
-
ClassDescriptionA
TileSourcethat loads tiles from application resources bundled into the app (the classpath), with no network access.A self-containedTileSourcethat synthesizes a deterministic Mapbox Vector Tile in memory for every address, with no network or bundled assets.ATileSourcethat fetches tiles over HTTPS from a slippy-map URL template.An ordered list ofStyleLayerrules plus a background color, describing how a vector tile is painted.Decodes a Mapbox Vector Tile (MVT 2.1,application/x-protobuf) into the in-memoryVectorTilemodel using the framework's protobuf reader (ProtoReader).A networked MVT (Mapbox Vector Tile) source.A networked raster (image) XYZ tile source.One rule of aMapStyle: 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.Asynchronous result callback forTileSource.fetchTile(int, int, int, TileCallback).Supplies tile payloads to theVectorMapEnginegiven a slippy-mapz/x/yaddress.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).A named layer of a decoded vector tile (for examplewater,road,building,place) holding its features and the integer extent of its local coordinate grid (4096 by default).A decoded Mapbox Vector Tile: an ordered collection of namedVectorLayers.Spherical Web Mercator (EPSG:3857) helpers expressed in "world pixels" -- the slippy-map coordinate space where the whole world spanstileSize * 2^zoompixels.