Skip to content

Commit

Permalink
feat: Models and ModelLayer (#3209)
Browse files Browse the repository at this point in the history
* feat: model to add 3d models to map

* feat: add model-layer

* feat: add model-layer on android

* fix(android): fix build error in android

* fix(ios): fix new arch errors
  • Loading branch information
mfazekas authored Nov 29, 2023
1 parent 73272d4 commit 983bfcf
Show file tree
Hide file tree
Showing 69 changed files with 6,767 additions and 546 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
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import com.mapbox.maps.ImageContent
import com.mapbox.maps.ImageStretches
import com.rnmapbox.rnmbx.components.AbstractEventEmitter
import com.rnmapbox.rnmbx.events.constants.EventKeys
import com.rnmapbox.rnmbx.events.constants.eventMapOf
import com.rnmapbox.rnmbx.utils.ImageEntry
import com.rnmapbox.rnmbx.utils.Logger
import com.rnmapbox.rnmbx.utils.ResourceUtils
Expand Down
Loading

0 comments on commit 983bfcf

Please sign in to comment.