MapQuickView - Can't set SpatialReference except in constructor

1134
10
Jump to solution
04-27-2020 09:15 AM
BradDuBois
New Contributor II

I noticed that screenToLocation was returning some bad values.  While tracking that down I learned that spatial reference is an important factor here for getting correct results.

If the spatial reference is set using the Map class constructor then I get correct results from screenToLocation, which is great!  The bad news is that map imagery no longer loads. I only get map imagery if use the Map class constructor that takes a basemap.  Setting basemap after construction is not working either to get the imagery to load.

I cannot find any way to set the spatial reference for the map other than at construction.

How can I get this to work?

0 Kudos
10 Replies
LucasDanzinger
Esri Frequent Contributor

side note - that layer returns a 404 for me in the browser, so it may not work...

0 Kudos