Closed zhuminquan closed 1 year ago
Hi @zhuminquan, The WebTileLayer.spatialReference is readonly
. We did add the ability to change the MapView.spatialReference at runtime during the 4.23
release. I would probably suggest trying to use a basemap or web map that is in the same spatial reference as your WebTileLayer data source.
Does this answer your question?
I'll go ahead and close this. Answer provided.
@arcgis/core version
@arcgis/core@4.23.2 and Run
npm install @arcgis/core
in a terminal window.Framework and build tools
vue3.2.25 & vite2 & TypeScripe
Describe the bug error code fragment:
the vscode error tips: the "spatialReference" is not WebTileLayerProperties propertys。 so, how do I set spatialReference of a WebTileLayer。
This problem does not exist in the JS environment