Renders map markers 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 20 by using:
nvm use 20 - 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
10.25.15or newer - Mendix Native Template
v14.1.14 - MapLibre open-source mapping libraries
- MapLibre React Native library
- MapLibre React Native docs
- MapLibre Demo Tiles
- Swift Package Spec for iOS:
https://github.com/maplibre/maplibre-gl-native-distribution
- Use demo Native template embedded in
./test/MapLibreTestApp/resources/nativeTemplate - Install MapLibre ReactNative npm package
npm install @maplibre/maplibre-react-native npm 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


