|
POST
|
If you set featureLayer.useAMF = false, do you still get the same request string and problems? I believe if you do, the request will be ?f=json instead.
... View more
08-05-2011
10:22 AM
|
0
|
0
|
727
|
|
POST
|
I'll chime in with my experience. Flex API: - cross browser compatible, as in will function the same regardless of browser used. - can handle large amounts of data better. When it comes to drawing of graphics on the screen or loading RemoteObjects, Flex can usually handle these items better than JavaScript. - coming from Web ADF as you said, AS3 is much more familiar as language. Compiled and probably easier to learn coming from C#/VB. JavaScript API: - simplicity is key. Will run fine in most browsers, but can require some massaging if you want it to look/function same across all/many. IE6 will usually melt. - if you are looking at mobile focused sites/apps, I think the JS API wins here. Will run pretty much the same across all phones/tablets, if you are mindful of some CSS3 funkiness. - JSON is fast and lightweight. If you are pulling simple data requests, the dojo library the API is built on is built for data. That's in my experience and opinion and could be completely off-base from what other people are doing. You should also take a look at this recent posting from ESRI UC. Which API should I use: JavaScript, Flex, or Silverlight?
... View more
08-03-2011
08:19 AM
|
0
|
0
|
363
|
|
POST
|
I tried loading the 64-bit version in xcode 4 on a Mac OS 10.6 (Snow Leopard), but I'm getting multiple "semantic issue" and "parse issue" errors, most of which seem to relate to dllimport. I've attached a screenshot of my header/library search paths. Is there a linker flag I should be using? I also can't seem to be able to build the samples either. I get the following errors when running make after adding $LD_LIBRARY_PATH to my profile odoemac:samples odoe$ make
make -C Domains
g++ -fPIC -O2 -m32 -W -fexceptions -fno-inline -D_CONSOLE -DUNICODE -D_UNICODE -DLINUX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DLINUX_FILEGDB_API -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -c Domains.cpp
In file included from ../../include/FileGDBAPI.h:25,
from Domains.cpp:25:
../../include/GeodatabaseManagement.h:56: error: expected constructor, destructor, or type conversion before ???(??? token
../../include/GeodatabaseManagement.h:64: error: expected constructor, destructor, or type conversion before ???(??? token
../../include/GeodatabaseManagement.h:69: error: expected constructor, destructor, or type conversion before ???(??? token
../../include/GeodatabaseManagement.h:77: error: expected constructor, destructor, or type conversion before ???(??? token
In file included from ../../include/FileGDBAPI.h:26,
from Domains.cpp:25:
../../include/Geodatabase.h:55: error: expected initializer before ???Geodatabase???
Domains.cpp:156: error: expected `}' at end of input
make[1]: *** [Domains.o] Error 1
make: *** [Domains] Error 2
Or is Mac dev just a flat out no go? I am not a C++ dev, so maybe there is stuff I am missing, but any help is appreciated, thanks.
... View more
07-30-2011
08:10 PM
|
0
|
3
|
3266
|
|
POST
|
Looks like you may still be using Flex 3, so you would want to review using view states. http://livedocs.adobe.com/flex/3/html/help.html?content=using_states_3.html If you're using Flex 4.X, check this link out http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff1.html Flex 4 states are drastically different than they were in 3.
... View more
07-19-2011
02:04 PM
|
0
|
0
|
1329
|
|
POST
|
I only use jQuery for DOM tasks, such as an Accordian or any small animations. I have had browser/performance issues using dojo dijits such as Accordian/Validator with Internet Explorer (default in office is IE8).
... View more
07-12-2011
09:23 AM
|
0
|
0
|
746
|
|
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
|
736
|
|
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
|
736
|
|
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
|
6761
|
|
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
|
2254
|
|
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
|
468
|
|
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
|
802
|
|
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
|
902
|
|
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
|
2254
|
|
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
|
459
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 2 | 4 weeks ago | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM | |
| 1 | 12-31-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|