PAM Native Maps
Start here
Section titled “Start here”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:
curl -fsSL https://github.com/push-in/pam/releases/latest/download/install.sh | shpam doctorpam init my-app --template nativecd my-apppam composer require pushinbr/pam-native-mapspam doctorpam native devuse 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.