Problem with Flood Map and Crime Map image

549
1
12-12-2018 12:28 AM
ToddKuhlmann
New Contributor

Hello,

We are facing inconsistent behavior for flood map and crime map while generated as an image for a specific location

At first we are using https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=[longitude],[latitude]... to get the spatial reference and extent

To get the image we are using https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%... with parameters Web_Map_as_JSON, Format=PNG32, Layout_Template=MAP_ONLY and f=pjson

For Flood map:
We are using spatial reference and extent as mapOptions in Web_Map_as_JSON with some operationalLayers
Layers are as below:
1. https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer
2. https://services.femadata.com/arcgis/rest/services/NFIP/NFIP_Community_Layer/MapServer
3. https://hazards.fema.gov/gis/nfhl/rest/services/KMZ/StayDry/MapServer
4. https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer
Also, we have used an esriGeometryPoint graphics image as featureCollection to point on the map.

For Crime map:
We are getting a basemap image using http://server.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/export with spatial reference and extent as bbox etc.
Then we are getting crime image using https://demographics5.arcgis.com/arcgis/rest/services/USA_Crime/MapServer/export with spatial reference and extent as bbox and dynamicLayers etc.
If we get both, then we are using same printing tools to merge these two images with esriGeometryPoint graphics image as featureCollection to point on the map and get a new image.

The process is working fine but sometimes it is not returning the image. As we are processing this as a background process we could not find if the problem is in PrintingTools or there is some issue with Layers or other section.
 
Please advise.
 
Thanks.
0 Kudos
1 Reply
ToddKuhlmann
New Contributor

Hello,

We have found a case for Flood Map image not returning that url https://services.femadata.com/arcgis/rest/services/NFIP/NFIP_Community_Layer/MapServer is returning 

503 Service Temporarily Unavailable

Can anyone please provide an alternative url?

Thanks.

0 Kudos