Skip to content

PAM Native Maps

Every PAM Native product runs on the PAM runtime. Install and verify PAM first, create a Native application, and add this package through PAM Composer:

Terminal window
curl -fsSL https://github.com/push-in/pam/releases/latest/download/install.sh | sh
pam doctor
pam init my-app --template native
cd my-app
pam composer require pushinbr/pam-native-maps
pam doctor
pam native dev
use Pam\Native\Maps\{Coordinate, MapMarker, MapView};
return MapView::make(new Coordinate(-23.5505, -46.6333), 14)
->markers([
new MapMarker('office', new Coordinate(-23.5505, -46.6333), 'Office'),
])
->showUserLocation();

MapView renders the native map and emits MapEventKind; Coordinate validates latitude/longitude; MapMarker carries stable identity; MapStyle normalizes platform styles. Up to 5,000 markers are supported.

Provide com.google.android.geo.API_KEY, enable billing, and restrict the key by application/API. Request location permission before user location. Preserve marker IDs and batch changes to avoid unnecessary native recreation. PAM never stores or transmits the key.

MapsPluginProvider registers MapView and its module automatically.