|
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
|
1430
|
|
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
|
1594
|
|
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
|
621
|
|
POST
|
Hi, Can you check if you have nulls in your array of Graphics. That can lead to this error.
... View more
04-23-2013
01:37 PM
|
0
|
0
|
465
|
|
POST
|
Hi Jason, As you noticed there are several approach to solve your issue: The easiest one I would say is to directly set a different PictureMarkerSymbol to each graphic. You could create a custom symbol. Look at the sample http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Custom_Symbol/01nq00000090000000/ And the last one is using a renderer. The renderer is great to reuse the symbols and also to be able to break on several attributes of the Graphic. http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/package-detail.html Maybe the one you are looking for is the UniqueValueRenderer: http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/UniqueValueRenderer.html Creating a custom Renderer is also possible by implementing IRenderer. The function to implement is getSymbol(graphic:Graphic):Symbol Inside your implementation you can do whatever you want to return a Symbol based on a Graphic. When the layer will draw, it will go through each Graphic and call that function to get the symbol to draw with.
... View more
04-18-2013
10:03 AM
|
0
|
0
|
478
|
|
POST
|
Hi, I would suggest that you loop through the layers of your map, for each one of them loop thought the layer's info: http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/ArcGISDynamicMapServiceLayer.html#layerInfos if the layer is a FeatureLayer check the layerDetails property: http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/FeatureLayer.html#layerDetails to find the fields to display in the 2nd dropdown. PS: I would suggest to write in English to let more people understand what you want and be able to reply to you. 🙂
... View more
04-17-2013
01:37 PM
|
0
|
0
|
248
|
|
POST
|
Ho, The PopUpRendererSkin is in the skins folder of the API, not the viewer.
... View more
04-16-2013
04:04 PM
|
0
|
0
|
808
|
|
POST
|
It wasn't replaced in 3.1. It's under the skin folder: skins\src\com\esri\ags\skins
... View more
04-09-2013
01:13 PM
|
0
|
0
|
808
|
|
POST
|
Hi, FlashBuilder is built on top of eclipse so you can install J2EE plugins on top of it. In Eclipse, use the install manager: Help > Install New Software.
... View more
04-03-2013
08:29 AM
|
0
|
0
|
485
|
|
POST
|
Hi, Instead of updating the mapPoint, set it to the feature: var geom:MapPoint = ModelEdit.instance.editor.attributeInspector.activeFeature.geometry as MapPoint; geom.update(geoLocateWebMerc.x, geoLocateWebMerc.y, Model.instance.map.spatialReference); ModelEdit.instance.editor.attributeInspector.activeFeature.geometry = geom; This should redraw only that feature. On a mobile I have a feature layer and am trying to move a point feature to my current GPS location. The following is a code snippet. I'm finding the only way I can get the point to reposition is if I refresh() the featurelayer. Is there any way to avoid needing to do this? if(FlexGlobals.topLevelApplication.geoLong != null && FlexGlobals.topLevelApplication.geoLat != null) { //Remove the glow ModelEdit.instance.editor.attributeInspector.activeFeature.filters = []; //Remove attribute inspector okButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK, true, false)); var geoLocateIt:MapPoint = new MapPoint(FlexGlobals.topLevelApplication.geoLong, FlexGlobals.topLevelApplication.geoLat, Model.instance.map.spatialReference); var geoLocateWebMerc:* = WebMercatorUtil.geographicToWebMercator(geoLocateIt); (ModelEdit.instance.editor.attributeInspector.activeFeature.geometry as MapPoint).update(geoLocateWebMerc.x, geoLocateWebMerc.y, Model.instance.map.spatialReference); //HOW DO I AVOID REFRESHING THE FEATURELAYER (ModelEdit.instance.editor.attributeInspector.activeFeature.graphicsLayer as FeatureLayer).refresh(); (ModelEdit.instance.editor.attributeInspector.activeFeature.graphicsLayer as FeatureLayer).applyEdits(null, [ModelEdit.instance.editor.attributeInspector.activeFeature], null); (ModelEdit.instance.editor.attributeInspector.activeFeature.graphicsLayer as FeatureLayer).addEventListener(FeatureLayerEvent.EDITS_COMPLETE, editCompleteHdlr) } Thanks --Rory
... View more
04-01-2013
09:19 AM
|
0
|
0
|
541
|
|
POST
|
Hi, Can you verify that "myMap" in not null before calling pushView ?
... View more
03-28-2013
06:46 PM
|
0
|
0
|
821
|
|
POST
|
Cool! You could fix it actually by setting on the dynamic layers the maxImageHeight and maxImageWidth values to 2048. This property are automatically set by 10.1 servers' layers.
... View more
03-20-2013
09:26 AM
|
0
|
0
|
2258
|
|
POST
|
Hi, I can't reproduce the issue with the following code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application 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:esri="http://www.esri.com/2008/ags"
xmlns:components="com.esri.ags.components.*"
minHeight="600"
minWidth="955">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<esri:Map id="map">
<esri:ArcGISTiledMapServiceLayer/>
<esri:ArcGISDynamicMapServiceLayer url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/MapServer"/>
</esri:Map>
<components:RotationWheel id="wheel"
left="48" top="24"
change="map.rotateTo(wheel.mapRotation, wheel.mapRotation == 0)"
mapRotation="{map.mapRotation}"/>
</s:Application>
What is the version of your server?
... View more
03-19-2013
05:03 PM
|
0
|
0
|
2258
|
|
POST
|
Hi, Indeed the PictureMarkerSymbol doesn't dispatch event when its source is loaded. What you can do is to prior load the image using an Loader then pass its content as the source of the PMS. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" applicationComplete="applicationCompleteHandler(event)" minHeight="600" minWidth="955"> <fx:Script> <![CDATA[ import com.esri.ags.symbols.PictureMarkerSymbol; import mx.core.UIComponent; import mx.events.FlexEvent; import mx.managers.PopUpManager; protected function applicationCompleteHandler(event:FlexEvent):void { var loader:Loader = new Loader(); loader.load(new URLRequest("http://resources.arcgis.com/en/help/flex-api/samples/01nq/assets/warningsmall.gif")); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadCompleteHandler); } protected function loadCompleteHandler(event:Event):void { // source is loaded var loaderInfo:LoaderInfo = event.target as LoaderInfo; var pmsSource:Bitmap = loaderInfo.content as Bitmap; var pms:PictureMarkerSymbol = new PictureMarkerSymbol(pmsSource); // For the example var swatch:UIComponent = pms.createSwatch(); PopUpManager.addPopUp(swatch, this); PopUpManager.centerPopUp(swatch); } ]]> </fx:Script> </s:Application>
... View more
03-12-2013
12:08 PM
|
0
|
0
|
823
|
|
POST
|
Hi, Try setting the property smoothing to false on the annotation layers. Yann
... View more
03-12-2013
11:22 AM
|
0
|
0
|
722
|
| Title | Kudos | Posted |
|---|---|---|
| 9 | 06-27-2025 02:06 PM | |
| 1 | 12-05-2024 10:05 AM | |
| 1 | 12-05-2024 09:53 AM | |
| 1 | 12-15-2022 09:20 AM | |
| 3 | 08-26-2020 04:24 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-09-2025
09:01 AM
|