Hello,
I have written a small test application using the JavaScript API.
The coordinates I have are in SWEREF99_TM, WKID: 3006, I got the polygon showing on the map, but It's located in France instead of Sweden...
Can anyone give me some advice?
https://jsbin.com/nocuhezoxi/edit?html,output
Thanks!
//Sam
Since, you are using the "streets" basemap, the map gets the spatial reference from that layer. which is not Sweref99_TM. The graphics is not automatically projected to the map's spatial reference. You need to do that before adding to the map.