Renders MapLibre Native map and marker views on OpenStreetMap style vector maps inside your native app with MapLibre Native.
- Render a JSON data set as interactive react native markers to a map directly from your Native mobile app
- Inclues open-source Git repository which lets you customize the widget to your custom
MarkeyViewdata set andMapViewrequirements - Get a demo up an running quickly using open-source Map styles maintained by the MapLibre community
- Ability to configure commercially available Map styles/tiles from providers like MapTiler for production deployments
- Download widget from the Mendix Marketplace
- Configure the
Map Datawidget property with a JSON string containing the sample JSON data set - Configure the
Map Stylewidget property with a string referencing the demo Map stylehttps://demotiles.maplibre.org/style.json
Navigate to the ./test/MapLibreTestApp directory to access the sample implementation
Submit issues here
- Switch to Node 24 (bundled with Studio Pro 11.12; minimum supported is 20.19.4) by using:
nvm use 24 - Install NPM package dependencies by using:
npm install. - Run
npm startto watch for code changes. On every change:- the widget will be bundled;
- the bundle will be included in a
distfolder in the root directory of the project; - the bundle will be included in the
deploymentandwidgetsfolder of the Mendix test project.
If you are interested in contributing improvements or additional mapping capabilities, submit a pull request (PR)
- Mendix Studio Pro
11.12.1or newer (bundles Node24, React Native0.84.1/ React19) - Mendix Native Template
v19.1.2 - MapLibre React Native library
v11.3.6 - MapLibre open-source mapping libraries
- MapLibre React Native docs
- MapLibre Demo Tiles
- Swift Package Spec for iOS:
https://github.com/maplibre/maplibre-gl-native-distribution
Note: Widget
2.0.0targets Mendix11.xand MapLibre React Nativev11. For Mendix Studio Pro10.x(Native Templatev14.x, MapLibre React Nativev10), use widget1.0.0.
- Use demo Native template embedded in
./test/MapLibreTestApp/resources/nativeTemplate - Install MapLibre ReactNative npm package
npm install @maplibre/maplibre-react-native nvm use 24npm install --legacy-peer-depsnpm run configurecd iospod install --repo-update
For iOS, follow the instructions documented here
On iOS it's necessary to add $MLRN.post_install(installer) to the post_install block in the ios/Podfile is necessary:
post_install do |installer|
# Other post install hooks...
$MLRN.post_install(installer)
...
end
Add the following shell script to your Xcode project’s Build Phases (only for Install builds):
if [ "$XCODE_VERSION_MAJOR" = "2600" ]; then
echo "Remove maplibre signature file (xcode 26 workaround)"
rm -rf "$BUILD_DIR/ReleaseDevApp-iphoneos/maplibre-react-native/MapLibre.xcframework-ios.signature"
rm -rf "$BUILD_DIR/Release-iphoneos/maplibre-react-native/MapLibre.xcframework-ios.signature"
fi


