Hi all,
I don't know if this is the right channel to ask this question, but I'm using @arcgis/core v4.21.2 in my JavaScript application.
I want to render a point on my map based on XY-coordinates and a spatial reference. This all works very well. But when setting this point as center at the creation of a new MapView, the map centers to lat 0, lon 0. Does anybody have an idea how to set this up correctly.
I'm using the following map: https://basisregistraties.arcgisonline.nl/arcgis/rest/services/BAG/BAGv3/MapServer
As said on the page, the spatial reference is 28992 and this is correct because the point is rendered on the correct position. I don;t have the latitude and longitude available, so I need to center the map with X and Y.
Here is a CodePen of my problem: Center based on XY coordinates (codepen.io)
Can anybody help me with this?