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.

  • Class
    Description
    A TileSource that loads tiles from application resources bundled into the app (the classpath), with no network access.
    A self-contained TileSource that synthesizes a deterministic Mapbox Vector Tile in memory for every address, with no network or bundled assets.
    A TileSource that fetches tiles over HTTPS from a slippy-map URL template.
    An ordered list of StyleLayer rules 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-memory VectorTile model using the framework's protobuf reader (ProtoReader).
    A networked MVT (Mapbox Vector Tile) source.
    A networked raster (image) XYZ tile source.
    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.
    Asynchronous result callback for TileSource.fetchTile(int, int, int, TileCallback).
    Supplies tile payloads to the VectorMapEngine given a slippy-map z/x/y address.
    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 example water, road, building, place) holding its features and the integer extent of its local coordinate grid (4096 by default).
    The pure-Codename One map renderer behind MapView (and the NativeMap fallback).
    A decoded Mapbox Vector Tile: an ordered collection of named VectorLayers.
    Spherical Web Mercator (EPSG:3857) helpers expressed in "world pixels" -- the slippy-map coordinate space where the whole world spans tileSize * 2^zoom pixels.