Esri / product-on-demand

Production Mapping for ArcGIS Server Product On Demand (POD) sample app
Apache License 2.0
18 stars 6 forks source link

How to alter POD to use local version of js api #12

Closed anthonyryan-ergon closed 7 years ago

anthonyryan-ergon commented 7 years ago

Hi there, Would someone be able to let me know to modify the js of POD so it referenced a local copy of the api instead of using https://js.arcgis.com/3.13/...? At present, we are experiencing intermittent 403 errors when trying to load different components of the api (eg. BasemapLayer.js, BasemapGallery.js, etc) from https://js.arcgis.com/3.13.

Thanks

skmoore commented 7 years ago

@aryan200o You can download a copy of the API here: https://developers.arcgis.com/downloads/

From there, you would have to deploy the API on your own web server, and change the URLs in the POD code to point to the location where you are hosting it.

anthonyryan-ergon commented 7 years ago

skmoore,

I was able to setup the local version and alter to the urls within POD to use this copy. Working so far.