updated attaching legend to each layer -
remove create icon method for id result and search result because of how attributes are returned from AGS when they have coded value domain
attached legend to layer instead of using .legendjson
-removed adding icon to results because of how coded value domains are returned from AGS - this needs to be fixed