|
POST
|
It sounds like you may be experiencing sleeping services, have a look at this post: http://forums.arcgis.com/threads/18470-Sleeping-Map-service-issue-with-ArcGIS-10 Regards Anthony
... View more
05-27-2012
01:07 AM
|
0
|
0
|
555
|
|
POST
|
ranaura, I am not quite sure what is happening here you just need to add the XGeom.swc and FlexProjections.swc to your libs folder and refresh your project. Regards Anthony
... View more
05-24-2012
09:13 AM
|
0
|
0
|
1572
|
|
POST
|
Ranura, You will need the libraries from the original widget found here: http://www.arcgis.com/home/item.html?id=56d4d2ed5d474eb4b8e29973d2376652 Regards Anthony
... View more
05-23-2012
10:09 PM
|
0
|
0
|
1572
|
|
POST
|
Virginia, There is a post on the REST forum that suggests there is a bug when you try to publish a layer that has both a join and a relate: http://forums.arcgis.com/threads/27212-Relationships-not-showing-up-in-REST-API Doesnt really help you but it means your not the only one experiencing this problem Regards Anthony
... View more
05-23-2012
01:06 PM
|
0
|
0
|
517
|
|
POST
|
Dan, If you have the ability to amend the source code it may be easier to create yourself a widget. If you set yourself two input boxes (in this case one with an id="longText" and one with the id="latText") you can then create a feature set that gets sent to the gp service.
<?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:esri="http://www.esri.com/2008/ags"
xmlns:viewer="com.esri.viewer.*"
>
<fx:Script>
<![CDATA[
private function AddXY():void
{
var myMapPoint:MapPoint = new MapPoint(Number(longText.text),Number(latText.text),map.spatialReference)
var myFeatureSet:FeatureSet = new FeatureSet([{geometry:myMapPoint}]);
myFeatureSet.geometryType = "esriGeometryPoint";
var params:Object = {
"Point_Input": myFeatureSet, //this assumes your gp service is expecting an input called Point_Input
};
gp.execute(params);
}
]]>
</fx:Script>
<fx:Declarations>
<esri:Geoprocessor id="gp" url="your gp URL" useAMF="false" executeComplete="some event " outSpatialReference="{map.spatialReference}" fault="some event " />
</fx:Declarations>
<viewer:WidgetTemplate id="wTemplate">
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
<s:Label width="60" id="latLabel" text="Latitude:" />
<s:TextInput width="100" maxChars="9" id="latText" restrict="0-9\." />
<s:Label width="60" id="longLabel" text="Longitude:" />
<s:TextInput width="100" maxChars="9" id="longText" restrict="0-9\." />
<s:Button width="100" label="Add XY" click="AddXY()" />
</s:HGroup>
</viewer:WidgetTemplate>
</viewer:BaseWidget>
This will send a single point to the gp service its up to your model what you want to do with it Hope this is of some help Regards Anthony
... View more
05-21-2012
01:18 PM
|
0
|
0
|
561
|
|
POST
|
All, I have just uploaded a Flex Viewer widget that allows a user to enter a BNG coord and centre the map at that location. The example assumes that your basemap projection is in OSGB36. http://www.arcgis.com/home/item.html?id=84e905c062404284976e8b469e1b8bfb Any feedback welcome Regards Anthony
... View more
05-16-2012
07:00 AM
|
0
|
0
|
502
|
|
POST
|
Eric, Please yet us know if this solves your issue Regards Anthony
... View more
05-15-2012
11:52 AM
|
0
|
0
|
774
|
|
POST
|
Eric, There is a couple of things you could try to improve the performance of your application, but it depends on if you are using the source code or the compilied version and what clients your are targeting. If you are on a closed network (such as an intranet) where you know what version of the flash plugin is installed then before you compile your project you can go into the properties of the project and under the Flex Compilier, turn off Express Install, this will stop the application checking the internet to see if the correct version of Flash Player is installed and improve start up time. it also sounds like you are expriencing 'Sleeping Services' see this post for the remedy: http://forums.arcgis.com/threads/26850-Sleeping-Server-Services-slow-to-start?highlight=Flex+Sleeping+Services Regards Anthony
... View more
05-15-2012
11:03 AM
|
0
|
0
|
774
|
|
POST
|
Timothy, I dont think symbol rotation is supported see: http://forums.arcgis.com/threads/33750-Symbol-Rotation-within-REST-API Regards Anthony
... View more
05-14-2012
02:49 PM
|
0
|
0
|
514
|
|
POST
|
Timothy Replies are in red: I have installed the ArcGIS Server Viewer for Flex 3.0. I also installed the Flex Application Builder. I have some questions about the Configure Window: Under the Feature Properties- What is "Use AMF"? it is checked by default. AMF is a binary format that can be directly read by Flash clients. Using AMF can improve performance when interpreting query and geoprocessing results. What is On Demand Mode? When would you use one versus the other? Choosing the display mode When you create a feature service, you also need to specify one of these modes for retrieving features: â?¢ On demand mode (the default) retrieves features as they are needed, requesting only the features within your current view extent. On demand mode potentially requires more round trips between the client and server. However, it protects you from retrieving more features than you need. â?¢ Snapshot mode retrieves all the features from the layer immediately after the layer is added to the map. This reduces subsequent traffic to the server, but can become cumbersome if the layer contains many features. The browser may be overwhelmed by the number of features it needs to draw, or the service may reach its limit of how many features it can return at once. The default is 500 for ArcGIS Server 9.3.1 and 1,000 for ArcGIS Server 10. Use snapshot mode primarily with smaller datasets or with temporal data. â?¢ Selection mode does not initially request any features. Features are added only when a selection is made. This mode is useful when you cannot or do not want to bring all features into the client, but you want to highlight one or more features for a certain reason, for example, editing, querying, or accessing related tables. Selections are drawn using a client-side selection color that you specify on the feature layer. Query example: you can use a dynamic service for your general map representation, but when doing an identify or query you want to highlight the selected features. Editing example: only the selected feature will be highlighted on the map within the FeatureLayer. Once editing is complete, the selection is removed from the feature layer and the user can update the dynamic map service layer to see the updated feature. What is Clustering? Showing a bunch of points grouped together, see: http://help.arcgis.com/en/webapi/flex/samples/index.html#/Clustering/01nq00000024000000 An unrelated question- Can Annotation Feature Classes be viewed in the Flex Viewer? if no, what is the best approach to get Annotation to view? Not 100% sure but I think the viewer does support this Point Symbol Rotation based on an attribute field, does Flex Viewer recognize this? Versions pre 3.0 dont not sure about 3.0 Regards Anthony
... View more
05-14-2012
01:52 PM
|
0
|
0
|
417
|
|
POST
|
Eric, Don't forget to also mark the post as answered by clicking on the tick Regards Anthony
... View more
05-10-2012
12:47 PM
|
0
|
0
|
967
|
|
POST
|
Eric, Sure you can, If you can edit the source code swap the two lines below around from: <s:Label id="imageText" text="{lbl}" fontSize="20" /> <mx:Image id="img" source="{imgURL}" scaleX="{sclX}" scaleY="{sclY}"/> to: <mx:Image id="img" source="{imgURL}" scaleX="{sclX}" scaleY="{sclY}"/> <s:Label id="imageText" text="{lbl}" fontSize="20" /> Please dont forget to mark the post as answered Regards Anthony
... View more
05-10-2012
11:49 AM
|
0
|
0
|
967
|
|
POST
|
Eric, I've not actually tried the widget but I guess the .swf file that was in the zip was a complied version of the widget as I cannot see any reference to it in the mxml. Can you expand on why the widget is not working (i.e. any error messages you are getting) Regards Anthony
... View more
05-10-2012
10:06 AM
|
0
|
0
|
967
|
|
POST
|
Eric, Have a look at this post it may be the solution you are after: http://forums.arcgis.com/threads/56727-Moveable-Static-Image-Widget Regards Anthony
... View more
05-09-2012
01:19 PM
|
0
|
0
|
967
|
|
POST
|
Sean, I have had instances before where my project will not launch and it complains about the index.html. I fixed the issue by performing a clean build, see below from adobe's website: Performing a clean build After a project has been built, subsequent builds affect only the resources that have been added or modified. To force the Flex Builder compiler to rebuild all resources in a project, you can perform a clean build. You might perform a clean build if, for example, you want to eliminate all potential sources of a problem you encountered when testing your application. 1.Select Project > Clean from the main menu. 2.Select the project (or projects) whose build files you want to discard and rebuild from scratch. 3.Click OK. Regards Anthony
... View more
05-09-2012
10:05 AM
|
0
|
0
|
604
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-01-2016 01:57 PM | |
| 1 | 02-04-2013 01:05 AM | |
| 1 | 04-11-2013 09:53 PM | |
| 1 | 04-03-2013 09:42 AM | |
| 1 | 07-25-2014 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|