Select to view content in your preferred language

2 maps side by side, different layers

570
2
01-03-2023 08:15 AM
Unity_gis
Occasional Contributor

I'm trying to create two maps side by side in sync, but with different layers.

I basically just duplicated the components of the API sample scene, and set the cameras viewport to 1/2 screens

The issue I'm running in to is the Cameras both show all information because the maps are forced to "default" unity layer. My normal approach is to set a layer, and in the camera culling mask set it to show that layer.

However the ArcGIS map data seems to always renderer to "default" layer, and ignores the layer name I set the game object to.

So what you see in this test image:

(note this is game view w split cameras, not scene view+game view)

Map1 component and camera calls for satellite images and displays at the first half of the screen.

Map2 component and camera calls for street images and displays at the second half of the screen.

Data will only show up when the camera is rendering "default" layer, and both maps force to default layer. So now both maps show both sets of map layers

note I am using arcgisdk 1.0 and didnt update to the new release yet

 

temp.jpg

 

 

 

 

 

 

 

 

 

 

 

 

2 Replies
Matt_Nelson
Esri Alum

We currently don't support rendering 2 different maps at once. 

As for the layer mask they are being rendered too you would have to modify our plugin to achieve that

0 Kudos
Unity_gis
Occasional Contributor

Do you know if layer mask support was ever added? Or perhaps an easy way to edit it?

When i have a camera with the ArcGIS map (rendering to default layer), all other cameras must now exclude "default" layer and all other items in the game have to be moved off of default layer. (when you want a camera that does not render the map)

 

 

0 Kudos