Below is a call my code is sending to a server that supports dynamic layers. The call asks the server to send back some data with blue fill and some data with red fill. The data in question are congressional districts.
Alas, the server only sends back the blue data. The second part of the dynamicLayers specification is ignored.
Is it me?
Is it the server?
Can anyone shed light?
https://geo.dot.gov/server/rest/services/NTAD/Congressional_Districts/MapServer/export?bbox=-13810030.774339365,5748064.527045255,-8277212.918945168,3546678.1124321776&size=1131,450&dpi=96&format=png24&transparent=true&bboxSR=3857&imageSR=3857&dynamicLayers=[{"source":{"type":"mapLayer","mapLayerId":0},"definitionExpression":"party='D'","drawingInfo":{"renderer":{"type":"simple","symbol":{"type":"esriSFS","style":"esriSFSSolid","color":[0,0,255,255],"outline":{"type":"esriSLS","style":"esriSLSSolid","color":[0,0,0,0],"width":1}}}}},{"source":{"type":"mapLayer","mapLayerId":0},"definitionExpression":"party='R'","drawingInfo":{"renderer":{"type":"simple","symbol":{"type":"esriSFS","style":"esriSFSSolid","color":[255,0,0,255],"outline":{"type":"esriSLS","style":"esriSLSSolid","color":[0,0,0,0],"width":1}}}}}]&layers=show:0&f=image
Apparently this was a problem with the server which has now been fixed.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.