Need to see street map on this projection change functionality

1196
9
09-26-2018 06:03 AM
akshayloya
Occasional Contributor II

Hi,

We need to add a street map in the below code for reprojection on the globe. I trust this is graphic which has been added. But is there any way where we can add street map or topo map as well and still use the reprojection?

Client-side projection | ArcGIS API for JavaScript 4.8 

Thanks in advance!

0 Kudos
9 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

When requesting the image for the mapserver the image is reprojected by ArcGIS server to match the spatial reference of the request. 

0 Kudos
akshayloya
Occasional Contributor II

Hi,

I mean how do we do it for this example:

Client-side projection | ArcGIS API for JavaScript 4.8 

-Akshay 

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Akshay,


  It is no possible to project a raster clientside.

0 Kudos
akshayloya
Occasional Contributor II

Yes, I understand. Is there any alternate way?

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

No, Street Map basemap is a tiled map service you do not have access to the feature geometry to be able to re-project anything.

0 Kudos
akshayloya
Occasional Contributor II

Well I got it. Sharing the source code. 

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

???

0 Kudos
akshayloya
Occasional Contributor II

Check this. 

Create Map and add a dynamic layer 

Not a globe but at least the projection thing worked. 

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Oh. I thought your question was specific to projecting the street map basemap...

0 Kudos