Closed dougbrowning closed 10 years ago
Here is what was found out.
I ended up trying it all 3 ways - Vector, Raster Catalog, and Mosaic Dataset.
The Vector issue was time zone related. For some reason it still tries to correct for time zone with year only data. Since I did not set any time zone (its year data!) Arc Server defaulted to UTC. Since I am in eastern it was subtracting 5 hours from 1/1/2001 12:00 am which was causing it to go to 12/31. Then in Flex Time Slider Widget I used Interval as count of 10 which gives strange time differences going forward. To Fix: Set the time zone to EST in ArcMap in the Time Slider box options which is a little list icon above where the slider part is (not in the time zone that is listed in the layer options box this seems to do nothing but maybe set it anyways. I guess layers can have any time zone and then there is a master time zone for the map itself). Then in Flex Viewer in the Operations layer section- properties of the layer check "Use Map Time". Also in the Time Slider Widget set Interval to 10 years instead. This worked.
Raster Catalog works just fine in ArcMap but gives all kinds of weird colors in Flex. Turns out this is a known bug! So Rasters Catalogs do not work at all.
Mosaic Datasets do seem to work but I can not confirm really since you can not use Classified to set the symbology. This turned out to also be a known bug! It started in 10.0 and was supposed to be fixed starting in 10.1 but I have 10.2 and it is still not available. This ticket is still open so I will update.
Hope this helps someone.
I have a simple time map that runs from 2001 to 2091 with one map every 10 years. I set it up in ArcMap, set it to 1 decade and it works great. The slider displays 2001, 2011, 2021, 2031, 2041, 2051, 2061, 2071, 2081, 2091 just the way i want it.
I published the map then used App Builder to make a simple 1 layer map as a test.
I set the Time Extent in the widget to From Layer and pick the layer. When I run the flex app the time slider is all wrong. It goes 2000, 2011, 2020, 2031, 2040, 2051, 2060, 2070, 2080, 2090? So I turn on months and it is doing this Dec 2000, Jan 2011, Dec 2020, Jan 2031, Dec 2040, Jan 2051, Dec 2060, Dec 2070, Dec 2080, Dec 2090. So i turned on full date and it is doing Jan 1 sometimes and Dec 31 other times. Maybe it does day math and leap years are messing it up?
I would try Specific Times just to see but you can not type in a date so that would mean clicking a month back at a time for 12 years! (this needs to be fixed) Also stop method does not have a decades option.
So any ideas what is happening?
Thanks a lot.