its complicating not knowing what to do can i get steps to implement it or any video. i have clickable kiosk enable in my map but it disappears s map reloads or open again
Hi Nasir,
Have a look at our 3D Models Guide for instructions and examples for adding 3D models to your map.
If you reload the map (call show3dMap again) you will need to re-add the models.
Hey, can you please share the same example but for react native?
Somewhy I got a warning
[Mappedin RN SDK] MapView method 'currentMap.createCoordinate' does not exist. Call ignored. {"args": [20, 20], "error": "Method path 'currentMap.createCoordinate' not found: 'currentMap' does not exist", "method": "currentMap.createCoordinate"}
my versions
"@mappedin/3d-assets": "^0.0.9",
"@mappedin/mappedin-js": "^5.51.0",
"@mappedin/react-native-sdk": "^6.0.0-alpha.13",
When using the @mappedin/react-native-sdk
, do not install or import @mappedin/mappedin-js
. The Mappedin SDK for React Native includes Mappedin JS. Including both will cause build conflicts and runtime errors due to duplicated or mismatched dependencies. You have also included different major versions here, which is going to cause a lot of errors.
For Mappedin SDK for React Native, refer to this 3D Models Guide.
Thank you, Mark <3
Will investigate it rn
There is a bug in the initial release of the v6.0.0-alpha.12 Mappedin SDK for React Native, where its failing to read model files included in the app. As a workaround for now, you can build and reference hosted model files (i.e. http://your-domain.com/your-model.gltf). This will be fixed in our next release.
Hello, can you tell me please is there a difference between gltf and glb extensions? Are both supported in the current version of sdk? I tried to attach my glb model to the map in SDKv6_Examples/PlaygroundSamples/app/models.tsx , but it didn’t show up either
And when is the next release expected?
The release that fixes loading models included in the project is now out and the [Models example]( react-native/SDKv6_Examples/PlaygroundSamples/app/models.tsx at master · MappedIn/react-native · GitHub ) has been updated with a new approach for loading local files.
Give that a try and let us know if you continue to have any issues.
and what version is fixed? I don’t see a new version of @mappedin/react-native-sdk in npm
and what version is fixed? I don’t see a new version of @mappedinmappedinmappedinmappedin/react-native-sdk in npm
This is fixed in v6.0.1-alpha.13.