Support implementing Mt Government Template?

5720
29
Jump to solution
02-16-2012 01:22 PM
SteveNelson
Occasional Contributor II
I'm looking for some support in implementing the My Government Services (ArcGIS10) template found here 
http://www.arcgis.com/home/item.html?id=672504d2d0ab4cb993fe10f6f78bf12b

I have things almost working, however I just get a white/blank screen.  Can't seem to get the data/map to show up and draw.
Can I submit my config.txt file here for support?
Thanks
Steve
0 Kudos
29 Replies
SteveNelson
Occasional Contributor II
Morning Lindsay,
I added in the code provided in the proxy.config file and copied/replaced the text you posted to my config.txt but no change.  Exact issue as before.
Click on the map, it places an icon, zooms way out and spins "Loading..."
0 Kudos
RyanMeier1
New Contributor
Hello,

We almost have this working-- We can see the polling station points, but we are having a similar problem with our base layers;

http://localgovtemplates.esri.com/ArcGIS/rest/services/Topographic/MapServer

http://localgovtemplates.esri.com/ArcGIS/rest/services/ImageryHybrid/MapServer

It seems only tiles for Naperville are enabled.  We are attempting to test this with another county in Illinois.

If we sent the initial extent to our county we get a white background(no base layers).  If we sent the extent to the default extent (Naperville), we can see the base layers.

While panning and inspecting the http requests, we are not seeing any requests to the base layers until we get to the visible (Naperville) area.  This behavior is similar to having a definition query on a dynamic layer.

Any ideas?
0 Kudos
LindsayThomas
Esri Contributor
Hello Ryan,

The basemaps you are using in your implementation are only meant to illustrate the application for Naperville, IL. seeing white using another extent area is expected.

We recommend adopting the ArcGIS for Local Government Information Model, porting you data to it, then use the provided mxd's to create these basemaps for your area using your data. However, if you would like to quickly assess this application for your organization you can use basemap services from ArcGIS.com until you have time to the provided basemaps up and running.

http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer  and http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer are what I would recommend.

Cheers,
Lindsay

(Also, when you go to implement the operational layers. The application is expecting you to use the ArcGIS for Local Government Information Model with your data and all the attributes populated correctly. The easiest way to do understand this project is to open the pollingplace.mxd (data source view) and note the required feature classes, tables and relationships. Note the model is designed to support one location for many polls)
0 Kudos
RyanMeier1
New Contributor
Lindsay,

Thanks-- That helped me figure it out.

I confused myself by viewing the http://localgovtemplates.esri.com maps on esri.com, which automatically has a similar background and giving it the appearance of a map that covers all areas.  When I turned of the basemap, I could see the localgovtemplates.esri.com map only contains Naperville tiles.

http://www.arcgis.com/home/webmap/viewer.html?url=http%3a%2f%2flocalgovtemplates.esri.com%2fArcGIS%2...

We got it to work now.  Thank you for pointing that out.
0 Kudos
JordanBrod
New Contributor III
I'm having one little problem with this application, when I click on any of the options within the share this map button, I get a 500 error code from bitly and an error message pops up on screen saying undefined.  The one thing that I can point to is that since we are serving this application right now straight off the server and it does not have a .com or.anything address just the <server name>/MyGovernmentServices/default.html that the bitly api might not accept this as a valid value to shorten.  If this is the case then that's fine just something to check when we roll it out publicly but if it should be returning a shortened url then what is the proper coding to ensure this, I was using the default coding in the config.txt file, the only thing I changed was the login and api key after signing up for the service.
0 Kudos
SteveNelson
Occasional Contributor II
Just to update this thread, was not able to get MyGov template up and running internally, but was able to get it running quite easily on our Amazon EC2 instance.  We must have some sort of server issue here that just won't let this template run properly - what ever it was, couldn't figure it out.

However I now have this and a few of the other Local Gov templates up and running properly on Amazon.
Thanks ESRI and particularly Lindsay for trying to trouble shoot our issue.
Thanks also for these great Local Gov templates - for us small guys without access or funding for developers, these templates allow us to get quality/useful sevices up and running (usually) pain free.
Steve
0 Kudos
RockyM
by
New Contributor
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
0 Kudos
RockyM
by
New Contributor
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
0 Kudos
RockyM
by
New Contributor
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
0 Kudos
LindsayThomas
Esri Contributor

Hi Delvin,

If you aren't using the service http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer  in the config.js " in the configuration then you shouldn't need it. However, if you are using the Esri Geometry Service then it needs to be in the proxy because the application is using the service to do the buffer.  

-Lindsay

0 Kudos