Support implementing Mt Government Template?

5722
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
1 Solution

Accepted Solutions
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

View solution in original post

0 Kudos
29 Replies
SteveNelson
Occasional Contributor II
Still hoping for some support with this.

I've changed the template so that for base maps it's pulling from arcgisonline and the community maps program we participate in (that's the main reason we're participating - to use community maps inside services).

Anyhow, I've added our own police, fire, library, etc points into the blank gov GDB template you can download, I've redirected the operational layer service urls, but still just get a swirling 'loading' icon on the screen when I click on the map.

Some assistance on how to get this set up properly would be appreciated.  Very keen to get this up on our Amazon EC2 for the public to use - along with a couple other of your fine templates.
Thanks
Steve
0 Kudos
LindsayThomas
Esri Contributor
Hello Steve,

At first glance the issue you are having could be this step isn't implemented.

Can you verify that you completed Step 4 of the getting started.pdf

Step 4 �?? Publish the My Government Services Web Site
1. Publish the My Government Services application.

�?� Using Windows Explorer, navigate to the My Government Services application directory:

<your_directory>\ArcGISTemplates\LocalGov\MyGovernmentServices\Application
�?� Select the �??MyGovernmentServices�?� directory and copy it to your web server so it can be accessed as a website or virtual directory

Note: In Microsoft IIS, the web server directory is <your_directory>\Inetpub\wwwroot\.
2. Define the Application Pool on your web server.

�?� Open Internet Information Services (IIS) on your computer and navigate to:

Start > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager
�?� Select <your server>> Web Sites> Default Web Sites
�?� Right-click on the MyGovernmentServices directory and select �??Convert to Application�?�
�?� Select ASP.Net v. 4 Application Pool. Click OK.

3. Change the ASP.Net proxy page to point to your ArcGIS REST service URL.

�?� Using Windows Explorer, navigate to the MyGovernmentServices proxy file:

<your_directory>\Inetpub\wwwroot\MyGovernmentServices\proxy.config
�?� Open the Config file in Microsoft Notepad. Two lines of code need to be changed

Cheers,
Lindsay
0 Kudos
SteveNelson
Occasional Contributor II
Hi LIndsay,
Thank you for the reply - I just followed all the steps as outlined, cleared my FLEX cache and still no love.
When I click on the map it just zooms out, then I get the little "Loading..." icon swishing around.
Any other suggestions to get this going?
Thanks
Steve
0 Kudos
LindsayThomas
Esri Contributor
Steve,

Did you change the extent of in the config.txt?
 

//Initial extent of map. To separate values use �??,�?� symbol.
'DefaultExtent':"-9820183.18, 5123332.08, -9807373.74, 5128739.76",

If not, grab your local extent using the extent helper widget here http://help.arcgis.com/en/webapps/flexviewer/extenthelper/flexviewer_extenthelper.html

Also, are your basemap services completely cached?

Cheers,
Lindsay
0 Kudos
SteveNelson
Occasional Contributor II
Hey Lindsay,
Yes I've changed my extent - and I should update you that when the app opens it opens correclty over top of Banff, Alberta.
I can switch basemaps properly  - I'm calling arcgisonline basemaps, the topo one and the streets one for now.
Here's my code for initial extent:

//Initial extent of map. To separate values use �??,�?� symbol.
'DefaultExtent':"-12873100, 6649270, -12857100, 6656170",

Here's the code for my base maps:
//Basemap layer collection. (All the basemap�??s need to be in the same spatial reference)
'BaseMapLayers' : [
    {"Key": "publicAccess", "ThumbnailSource": "images/imgPublicAccess.png", "Name" : "Topographical", MapURL: "http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"},
    {"Key": "imageryHybrid", "ThumbnailSource": "images/imgImageryHybrid.png", "Name" : "Streets", MapURL: "http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"}
   ],

So where I'm at now is that as soon as I click I zoom out from mystating location, I see a little blut icon representing where I clicked, and the little loading thing spins around and around....
0 Kudos
SteveNelson
Occasional Contributor II
When I create the cache I' m getting an error at the first step where I try to Load a tiling Schema from ArcGISONLIN/BingMaps/Google -"This map service cannot use the Arconline/bing/google tiling scheme because the coordinate system does not match"

This makes sense since I have my government services data in my local coord system - the entire blank Local Gov GDB was 'imported' or created in our local coord system.  Is there a file I can load or a list of scales you can supply that match the ArcOnlinBingGoogle scheme?
Steve
0 Kudos
SteveNelson
Occasional Contributor II
Hey!  I notice my little social media links work now, along with the email tool.
Wasn't responding before, so getting closer!
0 Kudos
LindsayThomas
Esri Contributor
Steve,

All your data should be in your local coordinate system. But your map document dataframe should be in WGS_1984_Web_Mercator_Auxiliary_Sphere. This will allow you to cache using the ArcGIS Online/BingMaps/Google tiling scheme. I have attached an xml you can use to load the scales and parameters you see in the GettingStarted.pdf.

If you cache your maps, I think that will help with the application spinning

Thanks,
Lindsay
0 Kudos
LeithaSackmann
New Contributor II
I'm having nearly the same problem as above only with the Election Polling Places App. Everything comes up fine (right extent, base map shows, my own polling locations show, etc) but when I enter an address it zooms to the correct address, highlights the precinct, but then just stays there with a swirling icon and "finding precinct" message (even though the right precinct is now highlighted in the map).

One note: In step 3 (defining the Application Pool)  ESRI support walked me through this and because I have version 6 of IIS Manager, I needed to right click on the directory and go to "properties" then click on the "create" button, then OK. Nothing was said about the drop down Application Pool menu so it is still on DefaultAppPool instead of either of the other choices (ArcGISApplicationAppPool or ArcGISServicesAppPool).  Do you think this could be the problem?

Thanks for any help you can give,
Leitha
0 Kudos