Select to view content in your preferred language

Help with Citizen Service Request 10.1

1032
7
08-21-2013 08:57 AM
JHayes
by
Frequent Contributor
Hello,

I've been working with the Flex API for a while now, so I'm not completely new to development with the ESRI APIs.  However, I'm trying to get the CSR app up and running, but having a problem.  The app sits and "spins" at the splash screen.  I can see my basemap in the background and my feature layers are visible only for  moment then disappear, all the while the app is attempting to load (that's what I mean by spinning).  I've configured the:

  1. URLs for the basemaps (tiled basemaps)

  2. Set the initial map extend ("-123.000, 45.487,")

  3. Set operational layers (Feature Service, mobile service, and related table)

  4. Added our geocoder service

  5. Added our geometry service

  6. Configured the proxy settings (this is an area where I'm unsure)  The example in the help says that it should be "http://<yourserver>:6080/ArcGIS/rest/services".  But we're already running the server through a proxy server (mtbachelor) which removes the "yourserver:6080" portion. I've tried using both.

I duplicated the GDB schema exactly on our SDE server.  Everything has the same name and field schema.  The only difference is that I'm using a line feature instead of a point.

Ideas?

Thanks,
Joe

0 Kudos
7 Replies
JHayes
by
Frequent Contributor
Here's some code.
0 Kudos
JHayes
by
Frequent Contributor
And 1 more.
0 Kudos
JHayes
by
Frequent Contributor
I guess the default.htm was too big.  Here's all 3 zipped.
0 Kudos
KeithGerhartz1
Frequent Contributor
Look for the first occurance of ShowProgressIndicator(); in the init() function in default.html and comment it out.
0 Kudos
JHayes
by
Frequent Contributor
That did stop the progress indicator, but once I click "OK' on the splash and try to navigate the map, it goes blank. Doh! LOL.

Also, I haven't found anywhere to change the WKID.  Is there one?
0 Kudos
KeithGerhartz1
Frequent Contributor
That would indicate to me a problem with your map extent. Please double check. I experienced all of the same behavior. Map extent will take 4 parameters such as:

    // Initial map extent. Use comma (,) to separate values and don t delete the last comma
    DefaultExtent: "530000,1536000,560000,1567000",
0 Kudos
JasonZou
Frequent Contributor
Run your site in Chrome, and open Developer Tools. Set a breakpoint at the first line inside the event handler function of serviceRequestLayer.onUpdateEnd, "serviceRequestSymbol = serviceRequestLayer.renderer.infos[0].symbol;". Reload the app and see if you can reach the breakpoint. If you cannot hit it, something wrong occurs before serviceRequestLayer is loaded.

Is the app publicly accessible?
0 Kudos