POST
|
Steve, Please add the line below to your proxy.config. <serverUrl url="http://tasks.arcgisonline.com/ArcGIS/rest/services/" matchAll="true"></serverUrl> Javascript can be picky when an extra comma exists or is missing, in the code box below. Notice the code section below, I removed the commented section that each entry in the [ ] is separated by a comma except for the very last entry. That is the correct format. 'Services':[
{"Name":"Libraries","Image":"images/library.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/4","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true},
{"Name":"Post Offices","Image":"images/postOffice.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/3","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true},
{"Name":"Police Stations","Image":"images/policestations.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/1","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true},
{"Name":"Fire Stations","Image":"images/fireStations.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/2","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true},
{"Name":"Hospitals","Image":"images/hospital.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/0","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true}
], Let me know how it goes. -Lindsay Hi Lindsay: Actually, I have another question regarding: <serverUrl url="http://tasks.arcgisonline.com/ArcGIS/rest/services/" matchAll="true"></serverUrl> Why is it necessary to add this to proxy.config which already has a serverURL url pointing to my server's REST services? Thank you. -Devlin
... View more
12-14-2012
08:37 AM
|
0
|
1
|
539
|
POST
|
Hi Lindsay: I read with interest your replies to Steve. Can you please explain what the difference is between setting "HasRendererImage" to true and "HasRendererImage" to false. In the template they were set to 'false'. I see that in your examples, they were set to 'true'. Thank you. Rocky Never mind. I think I see the difference now. It has to with whether or not to use the original symbols on the map. -Rocky
... View more
12-14-2012
08:21 AM
|
0
|
0
|
539
|
POST
|
Steve, Please add the line below to your proxy.config. <serverUrl url="http://tasks.arcgisonline.com/ArcGIS/rest/services/" matchAll="true"></serverUrl> Javascript can be picky when an extra comma exists or is missing, in the code box below. Notice the code section below, I removed the commented section that each entry in the [ ] is separated by a comma except for the very last entry. That is the correct format. 'Services':[
{"Name":"Libraries","Image":"images/library.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/4","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true},
{"Name":"Post Offices","Image":"images/postOffice.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/3","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true},
{"Name":"Police Stations","Image":"images/policestations.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/1","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true},
{"Name":"Fire Stations","Image":"images/fireStations.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/2","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true},
{"Name":"Hospitals","Image":"images/hospital.png","hasRendererImage":true,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/0","distance" : 4,"FieldNames" : [{"ContactField":"FacilitySitePoint.NAME"},{"AddressField":"FacilitySitePoint.FULLADDR"},{"PhoneField":"GovServiceInfo.PHONE"}],"LayerVisibility":true}
], Let me know how it goes. -Lindsay Hi Lindsay: I read with interest your replies to Steve. Can you please explain what the difference is between setting "HasRendererImage" to true and "HasRendererImage" to false. In the template they were set to 'false'. I see that in your examples, they were set to 'true'. Thank you. Rocky
... View more
12-14-2012
07:34 AM
|
0
|
0
|
539
|
POST
|
Hi Michael: Did you have the issue resolved? I am having the same problem (with Windows Server 2003 R2 SP2). Thank you RM
... View more
06-26-2012
09:35 AM
|
0
|
0
|
321
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|