I am using ArcGIS JavaScript API to develop a web page to consume services from ArcGIS Server. The page loaded good in Chrome browser but not work for Firefox, and also both Android and Safari mobile browsers have issues of loading the map.

For example,

var pointlay = newArcGISDynamicMapServiceLayer("https://server.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer",{"opacity":0.5});


this code works well when using map service(layer) from ArcGIS Online, but have issues when I changed the url from my own ArcGIS Server.

Anyone know where is the problem?

  • Welcome to GIS SE! Please take the tour if you have not done so already. Also, please edit your post to include the specific error messages you are seeing in each browser.
    – Andy
    Sep 22, 2018 at 4:44
  • Hi Andy, there is no error messages. I tried to add layers from ArcGIS service and it shows up in Chrome browser. However, when I open the same page in Firefox and moblie browser(IOS and Andriod) the added layers disappear. I then tried to add layers from ArcGIS online and the page worked well in all browsers. So I think there could be something wrong with my published map services.
    – Joe
    Sep 22, 2018 at 6:01
  • 1
    Hi Joe, welcome. As Andy said could you elaborate on the issue? For example: which version of JS are you using? are the browsers up to date? What are the capabilities you provide with your map service on ArcGIS Server? Have you tested without opacity? etc etc etc Sep 22, 2018 at 20:18
  • Hi Joe. Your web page is in http or https? Your ArcGIS Server service is in http or https? Firefox with mixed content is very hard...
    – lele3p
    Sep 24, 2018 at 5:21

1 Answer 1


It's hard to tell without more details, but you may be facing a CORS issue. Please see this documentation and use the Resource Proxy or enable CORS on your server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.