Skip to content

Commit

Permalink
feat: add model-layer on android
Browse files Browse the repository at this point in the history
  • Loading branch information
mfazekas committed Nov 29, 2023
1 parent d18ef3e commit 2278f03
Show file tree
Hide file tree
Showing 22 changed files with 1,866 additions and 208 deletions.
2 changes: 2 additions & 0 deletions __tests__/interface.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe('Public Interface', () => {
'CircleLayer',
'HeatmapLayer',
'LineLayer',
'ModelLayer',
'SymbolLayer',
'BackgroundLayer',
'RasterLayer',
Expand All @@ -46,6 +47,7 @@ describe('Public Interface', () => {
'RasterDemSource',
'Images',
'Image',
'Models',

// constants
'UserTrackingModes', // deprecated
Expand Down
4 changes: 4 additions & 0 deletions android/src/main/java/com/rnmapbox/rnmbx/RNMBXPackage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ import com.rnmapbox.rnmbx.components.styles.layers.RNMBXFillExtrusionLayerManage
import com.rnmapbox.rnmbx.components.styles.layers.RNMBXFillLayerManager
import com.rnmapbox.rnmbx.components.styles.layers.RNMBXHeatmapLayerManager
import com.rnmapbox.rnmbx.components.styles.layers.RNMBXLineLayerManager
import com.rnmapbox.rnmbx.components.styles.layers.RNMBXModelLayerManager
import com.rnmapbox.rnmbx.components.styles.layers.RNMBXRasterLayerManager
import com.rnmapbox.rnmbx.components.styles.layers.RNMBXSkyLayerManager
import com.rnmapbox.rnmbx.components.styles.layers.RNMBXSymbolLayerManager
import com.rnmapbox.rnmbx.components.styles.light.RNMBXLightManager
import com.rnmapbox.rnmbx.components.styles.model.RNMBXModelsManager
import com.rnmapbox.rnmbx.components.styles.sources.RNMBXImageSourceManager
import com.rnmapbox.rnmbx.components.styles.sources.RNMBXRasterDemSourceManager
import com.rnmapbox.rnmbx.components.styles.sources.RNMBXRasterSourceManager
Expand Down Expand Up @@ -111,6 +113,7 @@ class RNMBXPackage : TurboReactPackage() {
managers.add(RNMBXViewportManager(reactApplicationContext))
managers.add(RNMBXMapViewManager(reactApplicationContext, getViewTagResolver(reactApplicationContext, "RNMBXMapViewManager")))
managers.add(RNMBXStyleImportManager(reactApplicationContext))
managers.add(RNMBXModelsManager(reactApplicationContext))

// annotations
managers.add(RNMBXMarkerViewManager(reactApplicationContext))
Expand Down Expand Up @@ -146,6 +149,7 @@ class RNMBXPackage : TurboReactPackage() {
managers.add(RNMBXAtmosphereManager())
managers.add(RNMBXBackgroundLayerManager())
managers.add(RNMBXLightManager())
managers.add(RNMBXModelLayerManager())
return managers
}

Expand Down
Loading

0 comments on commit 2278f03

Please sign in to comment.