+ Reply to Thread
Results 1 to 29 of 29

Thread: Support implementing Mt Government Template?

  1. #1
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Support implementing Mt Government Template?

    I'm looking for some support in implementing the My Government Services (ArcGIS10) template found here
    http://www.arcgis.com/home/item.html...fe10f6f78bf12b

    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

  2. #2
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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

  3. #3
    Lindsay Thomas
    Join Date
    Oct 2009
    Posts
    63
    Points
    37
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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

  4. #4
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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

  5. #5
    Lindsay Thomas
    Join Date
    Oct 2009
    Posts
    63
    Points
    37
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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/fl...enthelper.html

    Also, are your basemap services completely cached?

    Cheers,
    Lindsay

  6. #6
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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....

  7. #7
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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

  8. #8
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    Hey! I notice my little social media links work now, along with the email tool.
    Wasn't responding before, so getting closer!

  9. #9
    Lindsay Thomas
    Join Date
    Oct 2009
    Posts
    63
    Points
    37
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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
    Attached Files

  10. #10
    Leitha Sackmann
    Join Date
    Aug 2010
    Posts
    18
    Points
    0
    Answers Provided
    0


    0

    Question Re: Support implementing Mt Government Template?

    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

  11. #11
    Lindsay Thomas
    Join Date
    Oct 2009
    Posts
    63
    Points
    37
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    Hi Leitha,

    The application does require you to have ASP.NET 4 set as the application pool. The application will spin at the beginning if this isn't set.

    The .NET Framework 4 can be installed side-by-side with previous versions of the .NET Framework on a single computer. If IIS was previously enabled on the computer, the setup process for the .NET Framework automatically registers ASP.NET 4 with IIS. Check out this Microsoft article for more information on setting up the ASP .NET 4 application pool http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx

    Cheers,
    Lindsay

  12. #12
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    Hi Lindsay,
    The basemap services are all cached by defailt since both my basemaps are being pulled from arcgisonline.
    Again, on opening the app, everything works including basemaps.
    I click on the map to enter a point/address, the app zooms out with what looks like the point I clicked on added to the map with the little icon,
    Then it just spins 'loading....' and never comes back.
    Anythng else to try here?
    I could post or send you the config code if that might help?
    Steve

  13. #13
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    {
    //Name of the application.
    'ApplicationName' : "MyBanff Services",

    //Icon for the application.
    'ApplicationImage' : "images/FSMCIcon.png",

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

    //Deafault Address to search
    'DefaultAddress':"110 Bear St, Banff, AB",

    //URL for help file
    'helpURL' : "help.html",

    //Renderer color for selected feature.
    'RendererColor' : "#CC6633",

    //Color for the route symbol
    'RouteColor':"#CC6633",

    //Width of the route
    'RouteWidth':4,

    //Size of the ripple
    'RippleSize':30,

    //Zoom level for the map
    'ZoomLevel':6,

    //Define fields to use for address geocoding. Multi-field input for address geocoding, define four fields i.e. "Address,City,State,Zip" (supported by ArcGIS 9.X and 10 geocoding services).
    'LocatorFields' : ["Address", "City", "State"],

    //URL to the ArcGIS Server REST endpoint of a geocoding service.
    'Locator' : "http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA/GeocodeServer",

    //URL to the ArcGIS Server REST resource used to perform geometry actions.
    'GeometryService' : "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/Geometry/GeometryServer",

    //URL used used for drawing the route between two points.
    'RouteMapURL' : "http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route",

    //Message appears when the application start.
    'SplashScreenMessage' : "<b>Welcome to MyBanff Services</b><br/><hr/><br/>The <b>MyBanff Services</b> application helps residents locate a government facility and obtain information about curbside and dropoff services provided by the Town of Banff. This application is typically used by residents in a community, but can be used by visitors to locate a library or post office near them. <br/> <br/>To locate a service, simply enter an address or activity in the search box, or use your current location. Your location will then be highlighted on the map and relevant information about available curbside and dropoff services will be presented to the user.<br/><br/>",

    //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"}
    ],

    //Operational layer collection.
    'Services':[
    //{"Name":"Trash Pickup","Image":"images/trash.png","hasRendererImage":false,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/5","FieldNames" : [{"Day":"MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY"},{"DisplayText":"Agency","FieldName":"AGENCY"},{"DisplayText":"Contact","FieldName":"CONTACT"},{"DisplayText":"Phone","FieldName":"PHONE"},{"Website":"AGENCYURL"},{"Email":"EMAIL"}],"Color":"#FCD208","isRendererColor":false,"LayerVisibility":true},
    //{"Name":"Recycling Pickup","Image":"images/recycling.png","hasRendererImage":false,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/6","FieldNames" : [{"Day":"MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY"},{"DisplayText":"Agency","FieldName":"AGENCY"},{"DisplayText":"Contact","FieldName":"CONTACT"},{"DisplayText":"Phone","FieldName":"PHONE"},{"Website":"AGENCYURL"},{"Email":"EMAIL"}],"Color":"#0000FF","isRendererColor":false,"LayerVisibility":true},
    //{"Name":"Yard Waste Pickup","Image":"images/yardWaste.png","hasRendererImage":false,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/8","FieldNames" : [{"Day":"MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY"},{"DisplayText":"Agency","FieldName":"AGENCY"},{"DisplayText":"Contact","FieldName":"CONTACT"},{"DisplayText":"Phone","FieldName":"PHONE"},{"Website":"AGENCYURL"},{"Email":"EMAIL"}],"Color":"#250517","isRendererColor":false,"LayerVisibility":true},
    //{"Name":"Street Cleaning","Image":"images/streetCleaning.png","hasRendererImage":false,"ServiceUrl": "http://maps.tob.int/ArcGIS/rest/services/Amazon_Testing/GovernmentServices/MapServer/7","FieldNames" : [{"Week":"WEEKONE,WEEKTWO,WEEKTHREE,WEEKFOUR"},{"DisplayText":"Agency","FieldName":"AGENCY"},{"DisplayText":"Contact","FieldName":"CONTACT"},{"DisplayText":"Phone","FieldName":"PHONE"},{"Website":"AGENCYURL"},{"Email":"EMAIL"}],"Color":"#00FF00","isRendererColor":false,"LayerVisibility":true},
    {"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}
    ],

    //Fields for Displaying the features as info window header.
    'InfoWindowHeader' :"FacilitySitePoint.FEATURECODE",

    //Collection of fields that are displayed as details in info window.
    'InfoPopupFieldsCollection' : [
    {"DisplayText":"Name", "FieldName": "FacilitySitePoint.NAME"},
    {"DisplayText":"Address", "FieldName": "FacilitySitePoint.FULLADDR"},
    {"DisplayText":"Contact", "FieldName": "GovServiceInfo.CONTACT"},
    {"DisplayText":"Phone", "FieldName": "GovServiceInfo.PHONE"},
    {"DisplayText":"Email", "FieldName": "GovServiceInfo.EMAIL"},
    {"DisplayText":"Days Open", "FieldName": "GovServiceInfo.OPERDAYS"},
    {"DisplayText":"Hours of Operation", "FieldName": "GovServiceInfo.OPERHOURS"}
    ],

    //This value will display when there is no data in the info window.
    "DisplayValue":"N/A",

    //This value defines the maximum height in pixels that can be attained by the infowindow.
    "InfoWindowHeight":190,

    //This value defines the maximum width in pixels that can be attained by the infowindow.
    "InfowindowWidth":300,

    //This consists of both tiny URL and social networking site URL.
    'TinyURLServiceURL' : { "URL": "http://api.bit.ly/v3/shorten?login=esri&apiKey=R_65fd9891cd882e2a96b99d4bda1be00e&uri=${0}&format=json" , "ResponseAttribute": "data.url",
    "FacebookShareURL" : "http://www.facebook.com/sharer.php?u=${0}&t=Find%20Services%20in%20My%Community",
    "TwitterShareURL" : "http://twitter.com/home/?status=Find%20Services%20in%20My%20Community' ${0}",
    "MailShare" : "mailto:%20?subject=Checkout%20this%20Town of Banff%20service%20map!&body=${0}" }

    }

  14. #14
    Lindsay Thomas
    Join Date
    Oct 2009
    Posts
    63
    Points
    37
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    Steve,

    If you map document dataframe in WGS_1984_Web_Mercator_Auxiliary_Sphere?

    Cheers,
    Lindsay

  15. #15
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    Hey Lindsay - yes it is.

  16. #16
    Lindsay Thomas
    Join Date
    Oct 2009
    Posts
    63
    Points
    37
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    Steve,
    Have you changed the database schema at all? Are you able to access your rest end points from the Rest Directory?
    Cheers,
    Lindsay

  17. #17
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    Yes I can see my rest endpoints and no I haven't made any schema changes, just loaded my own location points of course.
    I did comment out some of the layers though as you can see in the config file - don't think that would cause any error though would it?
    I just don't have use for those layers right now - the trash pickup, recylcling, street cleaning, yeard waste.

  18. #18
    Lindsay Thomas
    Join Date
    Oct 2009
    Posts
    63
    Points
    37
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    Steve,

    Please remove the commented out lines. Because you are commenting in the middle of a [ ] this could be effecting it. Once you make this change, clear your browser cache, refresh your browser and hopefully that works.

    (Also, is your proxy.config set correctly with all the referenced services in your config.txt ?)

    Cheers,
    Lindsay

  19. #19
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    No change when removing the commenting out I added for the layers I'm not using.

    I'll paste the contents of the proxy.config - looks good to me...??

    <?xml version="1.0" encoding="utf-8" ?>
    <!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.

    mustMatch: true to only proxy to sites listed, false to proxy to any site -->
    <ProxyConfig mustMatch="true">
    <serverUrls>
    <!-- serverUrl options:
    url = location of the ArcGIS Server, either specific URL or stem
    matchAll = true to forward any request beginning with the url
    token = (optional) token to include for secured service
    dynamicToken = if true, gets token dynamically with username and
    password stored in web.config file's appSettings section.
    -->
    <serverUrl url="http://maps.tob.int/ArcGIS/rest/services/"
    matchAll="true"></serverUrl>

    <serverUrl url="http://maps.tob.int/ArcGIS/rest/services/"
    matchAll="true"></serverUrl>
    </serverUrls>

    </ProxyConfig>

  20. #20
    Lindsay Thomas
    Join Date
    Oct 2009
    Posts
    63
    Points
    37
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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.

    Code:
    '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

  21. #21
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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..."

  22. #22
    Ryan Meier
    Join Date
    Feb 2011
    Posts
    2
    Points
    0
    Answers Provided
    0


    0

    Default Re: Support implementing Mt Government Template?

    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/Ar...phic/MapServer

    http://localgovtemplates.esri.com/Ar...brid/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?

  23. #23
    Lindsay Thomas
    Join Date
    Oct 2009
    Posts
    63
    Points
    37
    Answers Provided
    6


    0

    Default Re: Support implementing Mt Government Template?

    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/ArcGI..._Map/MapServer and http://server.arcgisonline.com/ArcGI..._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)

  24. #24
    Ryan Meier
    Join Date
    Feb 2011
    Posts
    2
    Points
    0
    Answers Provided
    0


    0

    Default Re: Support implementing Mt Government Template?

    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/vi...rver&source=sd

    We got it to work now. Thank you for pointing that out.

  25. #25
    Jordan Brod
    Join Date
    Apr 2011
    Posts
    68
    Points
    7
    Answers Provided
    2


    0

    Default Re: Support implementing Mt Government Template?

    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.

  26. #26
    Steve Nelson
    Join Date
    Apr 2010
    Posts
    97
    Points
    9
    Answers Provided
    6


    0
    This post is marked as the answer

    Default Re: Support implementing Mt Government Template?

    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

  27. #27
    Rocky M
    Join Date
    Jun 2012
    Posts
    4
    Points
    0
    Answers Provided
    0


    0

    Default Re: Support implementing Mt Government Template?

    Quote Originally Posted by lind5149 View 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.

    Code:
    '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

  28. #28
    Rocky M
    Join Date
    Jun 2012
    Posts
    4
    Points
    0
    Answers Provided
    0


    0

    Default Re: Support implementing Mt Government Template?

    Quote Originally Posted by Twister View 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

  29. #29
    Rocky M
    Join Date
    Jun 2012
    Posts
    4
    Points
    0
    Answers Provided
    0


    0

    Default Re: Support implementing Mt Government Template?

    Quote Originally Posted by lind5149 View 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.

    Code:
    '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

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts