Esri / impact-summary-map-template-js

This interactive map highlights who and what has been impacted by this incident and shows the effects of the disaster, its location, and the potential impact it has caused to the infrastructure, businesses, population, and households in and around area of the disaster.
http://esri.github.io/impact-summary-map-template-js/
Apache License 2.0
25 stars 20 forks source link

Data Requirements? Non-enriched sources allowed? #53

Closed srsjojo closed 10 years ago

srsjojo commented 10 years ago

Hello,

I'm looking to utilize the impact summary for a slightly different purpose - to give interactive asset statistics for our rail lines.

For example, if a user clicked on a rail line the information boxes would show statistics such as number of bridges, crossings, or culverts. I've created a new feature service containing numeric fields but the application won't let me select it as the source.

  1. What are the requirements for the data source?
    • What type of numeric fields are accepted? Double? Short? Long? Float?
    • Or does the app just look at specific column names?
    • What version of ArcServer is required?
    • Does it have to be a feature service, a map service, or a hosted feature service?
    • Are there are other requirements not mentioned?
  2. Can this tool be modified to allow polylines?

Thanks, ~Stephen

driskull commented 10 years ago

Hey @srsjojo,

It should be able to work for that.

  1. It can be any number format. It just looks at the column name. I don't think it requires any specific version. It needs to be a feature service (hosted or non hosted) in order to get the data from the layer.
  2. Yes. Lines work.
srsjojo commented 10 years ago

Hey @driskull ,

Ah, that did the trick, thanks.

I'm noticing some odd rendering of my lines in the app.

link

Any idea what's causing this?

Thanks, ~Stephen

phuls commented 10 years ago

I had the same issue. The app was trying to turn the lines into a polygon. I ended up buffering the lines and joining and appending the line data to the buffer polygons. A possible workaround for the time being.

http://bit.ly/1lHj7Ky

srsjojo commented 10 years ago

Hi @phuls ,

Thanks for the trick, I'll look into that option for now.

Really nice looking map by the way. Cool analysis too.

~Stephen