Codename One Adds Pure-Vector MapView and Pluggable Native Map in Single API

Codename One, an open-source cross-platform framework for Java and Kotlin apps, has released PR #5264 introducing two new mapping components: MapView and NativeMap. MapView renders maps entirely through the framework's own Graphics pipeline using vector tile data from Mapbox Vector Tiles, with no native peer involved. NativeMap embeds the platform's own map SDK, and both components share a unified MapSurface API, allowing developers to switch between them by simply changing a class name. The update addresses long-standing limitations of the older tile-based MapComponent and the Google Maps-dependent cn1lib, which excluded devices without Google Play and did not function in simulators or on the web. Tile sources and styles are pluggable, with light and dark MapLibre-subset JSON themes included out of the box.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in