Hi at all,
i have develop a web app using JS API.
My app call the base map by AGOL but some client that use the web app can not go out on internet for customer policy.
So i have think that is possible tu use a proxy but I've never done something like this.
There is any example o guide to see for use the basemap in this way?
Any help is great
Thanks
Regard
Dev App,
A proxy still requires access to the internet. So if the requirement is to have no internet access then a proxy will not help. Your only option is to host the basemap locally. I remember is the past you could get the tile cache for esri basemaps from esri to host on your own server it was called "Data and Maps for ArcGIS" under additional products on your organizations ArcGIS for Server Enterprise (Windows) download page.
Hi Robert,
thanks for respons.
The proxy have internet access. Only the client of user not have a internet access.
Do you mean to create a tile package of base map and use it ? or use ArcGIS Maps and Data and so publish the basemap as a MapService using this vector data?
Dev App,
OK, if the machine does have internet access but just needs to go thru the proxy then you just set the esriConfig.defaults.io.proxyUrl then.
require: 'esri/config' in your code
esriConfig.defaults.io.proxyUrl = "the proxy url"; esriConfig.defaults.io.alwaysUseProxy = true;