Select to view content in your preferred language

Election Results Application

856
1
11-01-2012 02:09 PM
Labels (1)
JeffWard
Honored Contributor
Hi,

Is anybody using the Election Results Application for local governments?

I have it working on my server and using my data, but I need to make some adjustments to zoom extents when one of the races is clicked along the bottom of the application below the bar chart boxes.  I have tried to figure out where in the javascript files these events are triggered, but I am not having much luck.  My problem is when one of the races is clicked, the application is supposed to zoom to the entire extent of the county, but doesn't zoom out far enough.

I would also like to show the overall winner of each selected race in an info window like the "Last Updates" info. in the upper right.

I would appreciate any help.

Thanks,
Jeff Ward
Summit County, Utah
0 Kudos
1 Reply
JeffWard
Honored Contributor
Okay, I just found the line I needed to change.

It is in the default.htm file, in the CreateElectionResultLayout() function.  The line reads:

map.setExtent(map.getLayer(precinctLayer.Key).fullExtent);


I changed it to:
map.setExtent(map.getLayer(precinctLayer.Key).fullExtent.expand(2));


I hope that helps people.

Thanks,
Jeff Ward
Summit County, Utah
0 Kudos