Select to view content in your preferred language

Need to see street map on this projection change functionality

3583
9
09-26-2018 06:03 AM
akshayloya
Frequent Contributor

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 Emeritus

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
Frequent Contributor

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 Emeritus

Akshay,


  It is no possible to project a raster clientside.

0 Kudos
akshayloya
Frequent Contributor

Yes, I understand. Is there any alternate way?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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
Frequent Contributor

Well I got it. Sharing the source code. 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

???

0 Kudos
akshayloya
Frequent Contributor

Check this. 

Create Map and add a dynamic layer 

Not a globe but at least the projection thing worked. 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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

0 Kudos