POST
|
Ok so we figured it out. The extents were a bit messed up for whatever reason and we lost idaho near Africa (very tiny). We got it working now.
... View more
07-28-2010
02:55 PM
|
0
|
0
|
222
|
POST
|
So we looked into this and changing our services in the way you mentioned is not viable for us. This is working fine in ArcMap and in javascript. The link the the Javascript version is here. http://geoinfo8.lib.uidaho.edu/climateTest/ I cant figure this out. The flex version does work with the sample service I found here http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=TimeSliderPlayDynamic.
... View more
07-28-2010
11:11 AM
|
0
|
0
|
222
|
POST
|
So I am trying to add a service with a time slider to my flex app. When I add the first layer as the service the timeInfo seems to be populated properly but I cant see anything (with or without adding a slider). If I add the entire service it seems timeExtent get set but timeInterval and timeIntervalUnits is not set. I also cant see any layers this way. If I remove the slider from the map I can see the layer. So here is what I have now... Btw our services are publicly accessible. Note: We have a Javascript version that seems to be running correctly.
<fx:String id="climateServiceURLTest">http://iidev.lib.uidaho.edu/ArcGIS/rest/services/climatologyMeteorologyAtmosphere/downscaledClimateScenarios_CSIRO/MapServer/0</fx:String>
private function climateService_loadHandler(event:LayerEvent):void
{
var timeInfo:TimeInfo = climateService.timeInfo;
timeSlider.createTimeStopsByTimeInterval(timeInfo.timeExtent, 1, "esriTimeUnitsYears");
}
<esri:Map id="map" logoVisible="false" openHandCursorVisible="false" load="onMapLoad();" timeSlider="{myTimeSlider}" styleName="mapStyle">
<esri:extent>
<esri:Extent xmin="-14698002" ymin="3937860" xmax="-10683056" ymax="7350879">
<esri:SpatialReference wkid="102100" />
</esri:Extent>
</esri:extent>
<esri:VETiledLayer
id="basemap"
culture="en-US"
visible="true"
mapStyle="road"
key="AkuhsTwX03AdA6UqUp6o1kH66NkMLB034gwrbMAFAXzHUwf1Ag5FbnZbRd0TVpIQ" />
<esri:ArcGISDynamicMapServiceLayer
id="climateService"
url="{climateServiceURLTest}"
load="climateService_loadHandler(event)">
</esri:ArcGISDynamicMapServiceLayer>
</esri:Map>
<esri:TimeSlider id="myTimeSlider"/>
... View more
07-26-2010
12:11 PM
|
0
|
4
|
560
|
POST
|
I have a map service that can be found at http://geoinfo1.lib.uidaho.edu/ArcGIS/rest/services/example_group/MapServer. This is a basic test service that contains groups. I am unable to hide a layer if it has a parent group that is not hidden. I have tested this with the most basic example as shown below var dynMapService:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(serviceURL);
dynMapService.id = serviceId;
dynMapService.visible = serviceVisible;
dynMapService.visibleLayers = new ArrayCollection([0]);
map.addLayer(dynMapService); This code should show no layers at all but instead it shows the first "Development" layer. ArcMap of course works as expected.
... View more
06-07-2010
02:34 PM
|
0
|
0
|
302
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|