|
POST
|
Oh, I'm sorry. You mean the individual layers in the actual service. You are correct in that you cannot control the visibility of individual layers of a Tiled Service, as it is "fused". You could create a non-fused Tiled Map Service, but I have never tried that. TiledMapLayer does not have a visibleLayers property like the DynamicLayer does to define visibility of individual layers of a service.
... View more
07-12-2011
09:18 AM
|
0
|
0
|
499
|
|
POST
|
Yes you can. Although the example here uses Dynamic layers to demonstrate turning layers on and off, you could modify it to accept Tile Layers as well. http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=Dynamic_TOC Looking at it, that example seems a little overcomplicated for what it's trying to demonstrate. It basically boils down to wiring a layer to some action, say a togglebutton <s:ToggleButton id="tb" selected="false" click="layer.visible = tb.selected />
... View more
07-12-2011
09:04 AM
|
0
|
0
|
499
|
|
POST
|
Just thought I would post an update to this issue we were having. Still waiting for a bug id, but it would appear the issue occurs when trying to use the feature class to feature class tool with a SDE dataset that has a geometric network when using SP2. For now, workaround is to export the data via ArcMap.
... View more
07-11-2011
12:01 PM
|
0
|
0
|
4699
|
|
POST
|
Sorry, I have not had much free time to work on my widget projects. I updated the Zillow widget with a clear button. I've found that users don't always want to clear results when a widget is closed, so I think this is a good compromise. Now if you wanted to do this on widget close, I add a clear method to the ViewManager vManager.clearLayer(); You can tie the widget close event to a function that can call this method when the widget is closed if you like. Hope that helps.
... View more
06-28-2011
06:47 AM
|
0
|
0
|
1587
|
|
POST
|
You'll need a Web Service to access that kind of data. http://forums.arcgis.com/threads/18457-consuming-.net-webservice-that-returns-array-of-tables?highlight=web+service
... View more
06-23-2011
12:49 PM
|
0
|
0
|
324
|
|
POST
|
When you add a Responder the FeatureLayer.selectFeatures, you're going to get back an array of the graphics that have been added to your selection. So you can write out your handler as
private function selectFeaturesHandler(features:Array):void
{
// do what you need to do with the graphics
}
selectFeatures will fire the selectionComplete event http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#event:selectionComplete The Responder will refer to the FeatureLayerEvent http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/FeatureLayerEvent.html Which when responding to selectFeatures will return the features array http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/FeatureLayerEvent.html#features When reading the docs, sometimes you just need to follow the breadcrumbs 🙂
... View more
06-09-2011
01:25 PM
|
0
|
0
|
472
|
|
POST
|
This is more of a nuisance error than crippling to my app, but when I turn a FeatureLayer off/on in IE8 this error message comes up in IE8.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 9 Jun 2011 16:15:13 UTC
Message: Member not found.
Line: 14
Char: 22876
Code: 0
URI: http://serverapi.arcgisonline.com/jsapi/arcgis/2.3/js/dojo/dojox/gfx/vml.xd.js
Looks like it has to do with the IE VML graphics, but I'm not very familiar it. Not sure how to trap the error when turning the FeatureLayer on/off. Is there something I'm missing?
... View more
06-09-2011
08:20 AM
|
0
|
1
|
795
|
|
POST
|
Does you ZillowWidget.mxml file look like this?
<?xml version="1.0" encoding="utf-8"?>
<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:viewer="com.esri.viewer.*"
xmlns:main="widgets.Zillow.main.*"
xmlns:ui="widgets.Zillow.main.view.ui.*"
layout="absolute"
widgetConfigLoaded="basewidget_widgetConfigLoadedHandler(event)">
<fx:Declarations>
<main:ZillowContext contextView="{this}" />
</fx:Declarations>
<fx:Script>
<![CDATA[
protected function basewidget_widgetConfigLoadedHandler(event:Event):void
{
if (configXML)
{
var zwsid:String = configXML.zwsid;
vManager.zwsid = zwsid;
vManager.map = map;
}
}
]]>
</fx:Script>
<fx:Style source="assets/zillowwidget.css" />
<viewer:WidgetTemplate id="wTemplate"
width="300"
height="315"
minHeight="315"
minWidth="300">
<ui:ViewManager id="vManager"
width="100%"
height="100%" />
</viewer:WidgetTemplate>
</viewer:BaseWidget>
Make sure you have the correct namespaces in the BaseWidget. xmlns:main="widgets.Zillow.main.*" xmlns:ui="widgets.Zillow.main.view.ui.*"
... View more
06-06-2011
10:42 AM
|
0
|
0
|
1587
|
|
POST
|
You'll need a DateFormatter. Depending if you are using a LabelFunction or an ItemRenderer, you could return it a couple of ways, but it could look like this.
myGrid.labelFunction = labelFunction
private function labelFunction(item:Object, column:DataGridColumn):String
{
var field:String = column.dataField;
if ("Date" == field)
{
var d:Date = new Date(item[field]);
return formatDate(d);
}
else
// return some other stuff for other columns
}
private function formatDate(date:Date):String
{
if (date)
{
var df:DateFormatter = new DateFormatter();
df.formatString = "MM/DD/YYYY";
return df.format(date);
}
else
return "None";
}
... View more
06-06-2011
09:22 AM
|
0
|
0
|
334
|
|
POST
|
To use the Zillow widget, make sure you have downloaded the Robotlegs swc and added it to your Flexviewer libs folder. http://www.robotlegs.org/ That might be the issue. I just tried it out in FV 2.3 and it's working ok. If you get more errors, could you post the full console output of the error?
... View more
06-06-2011
08:00 AM
|
0
|
0
|
1587
|
|
POST
|
I wrote a utility class to process Zillow Results and turn them in to graphics. https://github.com/odoe/Zillow-Widget/blob/master/main/util/ZillowUtil.as If you look at the results, it returns a lat/long coordinate. var wgs:MapPoint = new MapPoint(attr.longitude, attr.latitude, new SpatialReference(4326));
var mp:MapPoint = WebMercatorUtil.geographicToWebMercator(wgs) as MapPoint; You'd need to send the results to a geometry service to reproject them. There's no easy way to reproject data clientside in Flex.
... View more
06-03-2011
02:27 PM
|
0
|
0
|
1587
|
|
POST
|
For reference, I placed a counter on my script and left it running Friday night. The result 2011-05-28 19:13:59.655000 | Total time to execute = 1 day, 4:24:41.896000 Took over a day. I am going to request that we try to update another machine with SP2 to verify. I was kind of hoping others were having similar problems before we try to contact our ESRI Support. I've run the Fc to Fc tool on network and local shapefiles and they work just fine. When I run the tool against an SDE feature, it is really slow. If I monitor the statusbar %, it gets to 99%, then starts over again at 0% and seems to get stuck in a loop. Because I can cancel and it will finish without errors and the data seems to be intact.
... View more
05-31-2011
05:57 AM
|
0
|
0
|
4699
|
|
POST
|
The GeoLocation widget linked above will fallback to IP location, but default is to use the HTML5 Geolocation. As far as GPS on a tablet, a Flex web app wouldn't be able to access a Tablets resources in that fashion. If it was deployed as an AIR application, like on an Android tablet, I do believe AIR for Android can access the device GPS, but I have not tried this.
... View more
05-27-2011
01:44 PM
|
0
|
0
|
1041
|
|
POST
|
I don't know if this matters at all, but I was running the FC to FC tool right now via ArcToolbox in ArcCatalog and 40 minutes (approx 42% done I think, tough to tell in that statusbar) in I decided to cancel it. Cancelling took about 5 minutes and I was monitoring the output file sizes before and after cancelling. sbn, shp, shx file sizes did not change at all. The dbf was 21.5mb before cancelling, and in 5 minutes from cancelling went to 91.5mb. Even though, I right-clicked -> cancel in the Result Window, I still got a success message and the Result Window says it was a success and not a cancel. Don't know if it just does that. I attached screenshots for reference, including my ArcToolbox env settings (which should be default, I have not touched these).
... View more
05-27-2011
01:26 PM
|
0
|
0
|
4699
|
|
POST
|
Wasn't sure if this should go here or Python forum, but I was able to replicate this issue in Model Builder, so I figured this was a good spot. So this week we decided to test SP2 on ArcMap 10. My PC is usually the guinea pig for service packs and we typically have no problems. Light testing this week had been fine, until I tried to run a Python script we use to export data from our SDE to some shapefiles for a legacy application. Typically, this script would take approximately 10 minutes to run (I keep logs of every run). Today, a single FC to FC task was taking up to 30 minutes. I do this a couple of times and killed the script after an hour. So I copied the exact same script to another pc with ArcMap 10 (no SP2) and ran the same script. It took about 6 minutes on that machine. I tested the FC to FC tool in ArcToolbox and again the process was taking a ridiculous amount of time to export a single FeatureClass. Here is an old log from my machine (pre-SP2) for reference.
2011-05-03 07:05:51.416000 | Create SDE Connection file and export SDE Features to Shapefiles
2011-05-03 07:06:00.709000 | SDE Connection created successfully
2011-05-03 07:06:00.709000 | SDE Connection file is ready
2011-05-03 07:06:00.709000 | Export SDE Nodes to shp
2011-05-03 07:06:00.709000 | Export SDE Pipes to shp
2011-05-03 07:08:33.498000 | Delete original locarc shapefile
2011-05-03 07:08:33.701000 | Rename new locarc shapefile to replace old shapefile
2011-05-03 07:08:34.029000 | Export SDE local lines to shp
2011-05-03 07:12:38.404000 | Create SDE Connection file and export SDE Features to Shapefiles
2011-05-03 07:12:46.118000 | SDE Connection created successfully
2011-05-03 07:12:46.118000 | SDE Connection file is ready
2011-05-03 07:12:46.118000 | Export SDE Nodes to shp
2011-05-03 07:12:46.118000 | Export SDE Pipes to shp
2011-05-03 07:12:46.118000 | Export SDE local lines to shp
2011-05-03 07:15:02.437000 | Delete original locnode shapefile
2011-05-03 07:15:02.593000 | Rename new locnode shapefile to replace old shapefile
2011-05-03 07:15:02.859000 | Export SDE local lines to shp
2011-05-03 07:15:02.859000 | Export of SDE to SHP completed successfully
This script exports four SDE features to shapefiles as well as performs some other calculations. The only place that seems to get hung up in the script is the Feature Class to Feature Class operation. My script can't even finish with SP2 install, so I don't have a current log file. I'll try to let it run tonight to see if I can finish saving a log file with accurate times. Has anyone else experienced similar issues with SP2? Is there a bug list somewhere maybe I can refer to? For reference, my current ArcMap/ArcCatalog build is build 3200 with SP2. My previous ArcMap/ArcCatalog build (and current build of all other ArcMap installs in office) is build 2800. Thank you.
... View more
05-27-2011
12:52 PM
|
0
|
11
|
9367
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 12-09-2025 08:20 AM | |
| 1 | 11-13-2025 03:13 PM | |
| 2 | 11-06-2025 11:10 AM | |
| 3 | 11-05-2025 02:54 PM |
| Online Status |
Online
|
| Date Last Visited |
2 hours ago
|