POST
|
Hi Sarah, Unfortunately, renderers are not yet using the single object constructor. Despite what the API reference indicates. We will make the changes in beta2 and your code should work then. In the meantime, here is a sample from 3.x that I ported to 4.0beta1. JS Bin - Collaborative JavaScript Debugging
... View more
07-24-2015
11:02 AM
|
2
|
0
|
516
|
POST
|
Hi, We have fixed the problem in 3.12 This is a compositing bug in Chromium. We have logged the issue: Issue 437904 - chromium - Applying opacity to element with big scale transform freezes the page - An open-source proj… A workaround for previous releases of the API is to set fadeOnZoom to false on the map Map | API Reference | ArcGIS API for JavaScript This disable the fading for the tiles in TiledMapServiceLayer
... View more
12-18-2014
04:11 PM
|
0
|
3
|
1048
|
POST
|
Hi, Sorry about the late reply. In 3.4 we modified the way the AttributeInspector works to let developers be able to customize the components display to edit feature's field. Basically in order to migrate your custom AttributeInspectorSkin, you need to add:
<fx:Declarations>
<fx:Component id="codedValueDomainField">
<fieldClasses:CodedValueDomainField minWidth="200"/>
</fx:Component>
<fx:Component id="dateField">
<!--
Display dates in local time, using a localized short date format. eg: for en_US: MM/DD/YYYY
See PopUpFieldFormat date formats or provide a custom one.
-->
<fieldClasses:CalendarField dateFormat="shortDate" useUTC="false"/>
</fx:Component>
<fx:Component id="doubleField">
<!--
By default the maximum number of digits after de decimal separator is 16, but it's customizable.
-->
<fieldClasses:DoubleField fractionalDigits="16" minWidth="200"/>
</fx:Component>
<fx:Component id="integerField">
<fieldClasses:IntegerField minWidth="200"/>
</fx:Component>
<fx:Component id="labelField">
<fieldClasses:LabelField minWidth="200"/>
</fx:Component>
<fx:Component id="memoField">
<fieldClasses:MemoField minWidth="200"/>
</fx:Component>
<fx:Component id="rangeDomainField">
<fieldClasses:RangeDomainField minWidth="200"/>
</fx:Component>
<fx:Component id="singleField">
<fieldClasses:DoubleField minWidth="200"/>
</fx:Component>
<fx:Component id="smallIntegerField">
<fieldClasses:IntegerField minWidth="200"/>
</fx:Component>
<fx:Component id="stringField">
<fieldClasses:StringField minWidth="200"/>
</fx:Component>
<fx:Component id="textField">
<fieldClasses:TextField minWidth="200"/>
</fx:Component>
<fx:Component id="typeField">
<fieldClasses:TypeField minWidth="200"/>
</fx:Component>
</fx:Declarations>
... View more
08-23-2013
09:49 AM
|
0
|
0
|
485
|
POST
|
Can you try with the latest 3.4 release? We tweaked the touch handling to prevent that problem.
... View more
08-21-2013
10:07 AM
|
0
|
0
|
318
|
POST
|
Hi Matt, Yes the Flash Player is dealing really badly with filters and scaling display objects at the same time. There is nothing we can do about it. Yann
... View more
08-20-2013
12:32 PM
|
0
|
0
|
265
|
POST
|
I've tested, the latest version working with your code is 3.0 The 3.5 is scheduled around september.
... View more
07-25-2013
09:32 AM
|
0
|
0
|
627
|
POST
|
Hi, This a bug yes with the CompositeSymbol. Thanks for reporting, it will be fixed in the 3.5 release. In the meantime use the onUpdate parameter with Tweener to dispatch a change event from the symbol like this: blueRingCircle.size = 8; blueRingLine.alpha = 1; Tweener.addTween(blueRingCircle, { size: 60, time: 24, transition: "easeOutQuad", useFrames: true, onUpdate: function():void { (this as Symbol).dispatchEvent(new Event(Event.CHANGE)); }, onUpdateScope: locaterSymbol }); Tweener.addTween(blueRingLine, { alpha: 0, time: 24, transition: "easeOutQuad", useFrames: true, onUpdate: function():void { (this as Symbol).dispatchEvent(new Event(Event.CHANGE)); }, onUpdateScope: locaterSymbol }); The change event will make the symbol redraw.
... View more
07-25-2013
08:22 AM
|
0
|
0
|
627
|
POST
|
You can achieve what you want by creating a custom IRenderer implementation. Here's an example.
package sample
{
import com.esri.ags.Graphic;
import com.esri.ags.renderers.IRenderer;
import com.esri.ags.symbols.Symbol;
public class CustomRenderer implements IRenderer
{
//--------------------------------------------------------------------------
//
// Properties
//
//--------------------------------------------------------------------------
//----------------------------------
// teamA
//----------------------------------
public var teamA:IRenderer;
//----------------------------------
// teamB
//----------------------------------
public var teamB:IRenderer;
//--------------------------------------------------------------------------
//
// Public Methods
//
//--------------------------------------------------------------------------
public function getSymbol(graphic:Graphic):Symbol
{
var symbol:Symbol;
if (graphic)
{
var attributes:Object = graphic.attributes;
if (attributes && attributes.hasOwnProperty("team"))
{
if (attributes["team"] == "A")
{
symbol = teamA.getSymbol(graphic);
}
else if (attributes["team"] == "B")
{
symbol = teamB.getSymbol(graphic);
}
}
}
return symbol;
}
}
}
To use it:
<sample:CustomRenderer>
<sample:teamA>
<esri:ClassBreaksRenderer>
...
</esri:ClassBreaksRenderer>
</sample:teamA>
<sample:teamB>
<esri:ClassBreaksRenderer>
...
</esri:ClassBreaksRenderer>
</sample:teamB>
</sample:CustomRenderer>
Basically the renderer role is to return the right symbol for the graphic. You can either create one or do like above, delegate to another renderer based on a first attribute (eg: team)
... View more
07-24-2013
01:41 PM
|
0
|
0
|
348
|
POST
|
Hi, Try
for each(var updateatts:FormField in (list.dataProvider as ArrayList).source)
{
if(updateatts.label == "Longitude")
{
updateatts.feature.attributes["Longitude"] = 1.0;
dispatchEvent(new AttributeInspectorEvent(UPDATE_FEATURE, false, updateatts.featureLayer, updateatts.feature));
updateatts.dispatchEvent(new FormFieldEvent(FormFieldEvent.DATA_CHANGE));
}
}
... View more
07-24-2013
09:05 AM
|
0
|
0
|
214
|
POST
|
If you want to set the height for the textarea and keep multiline you can also create a FieldInspector for this field. Like so:
<esri:FieldInspector fieldName="LONG_STRING" featureLayer="{featureLayer}">
<esri:editor>
<fx:Component>
<fieldClasses:TextField height="50" />
</fx:Component>
</esri:editor>
</esri:FieldInspector>
The last option is to create a custom AttributeInspector skin and set the height value of the TextField. In the default attribute inspector skin at line 69:
<fx:Component id="textField">
<fieldClasses:TextField height="50" minWidth="200"/>
</fx:Component>
... View more
07-23-2013
11:44 AM
|
0
|
0
|
790
|
POST
|
Can you try to increase the singleToMultilineThreshold property ? The default is 50. If you put a value bigger than you comment field length, the AttributeInspector will display a regular text input. https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/components/AttributeInspector.html#singleToMultilineThreshold
... View more
07-23-2013
11:24 AM
|
0
|
0
|
790
|
POST
|
We have a bunch of sample for that: http://resources.arcgis.com/en/help/flex-api/samples/index.html#/InfoWindows_for_FeatureLayer/01nq00000057000000/ http://resources.arcgis.com/en/help/flex-api/samples/index.html#/InfoWindow_on_MouseOver/01nq0000001q000000/
... View more
05-09-2013
03:25 PM
|
0
|
0
|
738
|
POST
|
Hi, There is actually a bug, thanks for reporting. I have a workaround in the meantime. Encode the BitmapData into a ByteArray, like this:
var pngEncoder:PNGEncoder = new PNGEncoder();
var bmd:BitmapData = new BitmapData(30, 30, true,0x10ff0011);
var bytes:ByteArray = pngEncoder.encode(bmd);
var fill:PictureFillSymbol = new PictureFillSymbol();
fill.source = bytes;
fill.outline=sls;
fill.width = 30;
fill.height = 30;
... View more
04-30-2013
09:05 AM
|
0
|
0
|
339
|
Title | Kudos | Posted |
---|---|---|
1 | 12-15-2022 09:20 AM | |
3 | 08-26-2020 04:24 PM | |
1 | 07-18-2016 04:44 PM | |
1 | 12-12-2017 11:01 AM | |
1 | 12-12-2017 03:44 PM |
Online Status |
Offline
|
Date Last Visited |
03-19-2024
10:23 PM
|