3

How can I set my spatial reference to the base map in arcgis api. I want to change the default spatial reference.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Nov 16, 2014 at 14:34
2
  • how can i design a map of an country called aruba in the world map .please help me out Commented Dec 12, 2017 at 13:18
  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review Commented Dec 12, 2017 at 13:42

1 Answer 1

5

The spatial reference for a map is defined either by the extent passed to the map constructor or by the first layer added to the map. Checkout the any projection sample to see how to specify different spatial references for a map.

If you're using the basemap or center and zoom options with the map constructor, the map's spatial reference will be web mercator.

answered Nov 16, 2014 at 21:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.