Select to view content in your preferred language

Hold new Esri.GameEngine.Layers.ArcGISImageLayer in Extent

722
5
Jump to solution
12-12-2022 01:59 AM
WH1981
by
Regular Contributor

Hello,

I have a problem with holding a new Esri.GameEngine.Layers.ArcGISImageLayer in  the Extent when i using the MapCreator script. I have this settings:

WH1981_1-1670839051946.png

 

WH1981_0-1670839038984.png

But the imagelayer is going outside the Extent. Is this a bug? And is there a workaround for this?

 

 

0 Kudos
1 Solution

Accepted Solutions
WH1981
by
Regular Contributor

I found the problem. I used a self made project. Not a URP of HDRP. When i switched it to URP the ComponentLocalSample is clipping the extent. Thanks.

View solution in original post

0 Kudos
5 Replies
Matt_Nelson
Esri Alum

Im kind of lost what is happening. Why are you setting the extent in the UI and in code?

0 Kudos
WH1981
by
Regular Contributor

Hello,

I tried both. First only in the script and then both. This are my settings:

WH1981_0-1671004038699.png

WH1981_3-1671004196717.png

WH1981_2-1671004157621.png

In the HP root are visible the RD coordinates and in the Origin the WGS84 coordinates of the same location. The script is pushing this settings.

WH1981_4-1671005129912.png

WH1981_5-1671005496443.png

But the hitte layer is going farrr outside the extent. I use Dutch layers with the RD New system, maybe that's the problem. But in this part i don't know how i can change WGS84 to RD New (28992):

new ArcGISPoint(5.286488, 51.687005, 10, ArcGISSpatialReference.WGS84());

It seems that ArcGIS SDK also can handle RD NEW layers in WGS84 and recalculate this (just like ArcGIS Pro), because i see my layers Scene and image layers on the map. The 3D object Scene layers are invisible when i make the extent smaller. The extent is working for this layers, but not for the image layer.

I also tried making image layers on my own. Downloading and clipping the layers in a circle of 1000m in ArcGIS Pro. The clipped image layer is then smaller but around the image get a white plane of a couple tiles.

 

0 Kudos
Matt_Nelson
Esri Alum

Can you try opening the ComponentLocalSample that comes in the in plugin samples and see if that is trimming the image layer?

0 Kudos
WH1981
by
Regular Contributor

I found the problem. I used a self made project. Not a URP of HDRP. When i switched it to URP the ComponentLocalSample is clipping the extent. Thanks.

0 Kudos
hamedsetorg
Emerging Contributor

i want set layer visible off and on code by button.

whats sdk solution for that?

0 Kudos