AnsweredAssumed Answered

Skip adding a layer if the Map Service is down?

Question asked by bgfield on Mar 8, 2016
Latest reply on Mar 10, 2016 by jacobsj

I've got a web map that consumes a number of map services.  Most are hosted on our internal server, but a couple are hosted externally.  One particular service tends to go down somewhat regularly, and when this happens the map itself breaks (not entirely, but it loses enough functionality to be a problem).

 

Outside of manually checking the web map every morning, I have absolutely no idea how to deal with this.  What usually happens is the service goes down in the middle of the day, we have a complaint from a customer, and I have to manually update the code to skip adding that service to the map until I get word that the service is back up.  Is there a better way of handling this?  Some way to use JS to check to see if the service is up and running before attempting to add the service?

 

Thanks in advance!

Outcomes