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:
But the imagelayer is going outside the Extent. Is this a bug? And is there a workaround for this?
Solved! Go to Solution.
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.
Im kind of lost what is happening. Why are you setting the extent in the UI and in code?
Hello,
I tried both. First only in the script and then both. This are my settings:
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.
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.
Can you try opening the ComponentLocalSample that comes in the in plugin samples and see if that is trimming the image layer?
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.
i want set layer visible off and on code by button.
whats sdk solution for that?