A floor map module for Smart Space App
npm install @nois/smart-space-floor-mapA project to display floor image and desks over it with zooming feature for Smart Space App.
This project was started in the cause of solving issue Image Zooming and drawing in Android
Install package from npm
``sh`
npm install --save @nois/smart-space-floor-map`
In App Gradlegradle
...
dependencies {
...
compile project(':smart-space-floor-map')
...
}
`
In android/settings.gradle`gradle
...
include ':smart-space-floor-map'
project(':smart-space-floor-map').projectDir = new File(rootProject.projectDir, '../node_modules/smart-space-floor-map/android/release')
`
Manually register module in MainApplication.java:
`java
import com.south32.oraclecms.floormap.FloorMapPackage; // <--- Import Package
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
protected boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List
return Arrays.
new MainReactPackage(),
new FloorMapPackage() // <---- Add the Package
);
}
};
....
}
`
Check out the example folder for sample code
Uncomment the application that include the activity in AndroidManifest.xml and run the project to dev. Remember to comment it again to make a release.