Using Coordinate Systems SWEREF99_TM

2742
1
12-16-2015 12:05 AM
SamBoman
New Contributor

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

Tags (1)
0 Kudos
1 Reply
thejuskambi
Occasional Contributor III

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.