|
POST
|
You'll also have to restart the Map Server when doing it this way. See the Help for more information You can also go into ArcCatalog, right click on the service, select Service Properties, and in the Parameter tab, change the maximum number. I don't think this requires restarting the Map Server.
... View more
10-26-2011
12:54 PM
|
0
|
0
|
1576
|
|
POST
|
I've been using Tom Hill's Overview Map component, built for Flex API 1.x, in my Flex 2.4 project. If I remember correctly, there were just a few minor updates in the ActionScript that needed to be done for it to work properly.
... View more
10-24-2011
09:43 AM
|
0
|
0
|
519
|
|
POST
|
See Zoom to Query Result sample and replace the line map.extent = graphicsExtent; with map.centerAt(graphicsExtent.center);
... View more
10-19-2011
06:50 AM
|
0
|
0
|
352
|
|
POST
|
Please use the ArcGIS Viewer for Flex forum to post questions and search for answers about the Viewer
... View more
10-19-2011
06:36 AM
|
0
|
0
|
466
|
|
POST
|
You can set the query's geometry to the extent of the map.
myQuery.geometry = myMap.extent;
... View more
10-17-2011
11:48 AM
|
0
|
0
|
446
|
|
POST
|
Take a look at Monsour Raad's recent post about a MVC pattern for Flex
... View more
10-17-2011
06:55 AM
|
0
|
0
|
414
|
|
POST
|
The Identify Features sample has the code if you click on the map. In one of my applications, I have a datagrid containing polylines of ROV transects. When you click on one of the items in the datagrid, an InfoWindow is placed at the midpoint of the transect. This function (the click event on the datagrid rovGrid) is how I did it.
private function rovGrid_Click():void
{
var obj:Object = rovGrid.selectedItem;
if (obj != null)
{
MainMap.infoWindow.hide();
var graphic:Graphic = findGraphicByAttribute(obj, layerROVGraphics);
var path:Polyline = graphic.geometry as Polyline;
var halfway:int = path.paths[0].length/2;
var mapPoint:MapPoint = path.getPoint(0,halfway);
if (graphic == null)
{
Alert.show ("This transect cannot be found");
return;
}
if (chkROVZoom.selected)
{
MainMap.extent = graphic.geometry.extent;
if (!MainMap.extent.containsExtent(graphic.geometry.extent)) {MainMap.level--;}
}
//I didn't include the function to fill the content of the infoWindow
MainMap.infoWindow.content = Functions.createVideoWindow(graphic);
MainMap.infoWindow.label = "Transect: " + graphic.attributes.Name;
MainMap.infoWindow.show(mapPoint);
}
}
private function findGraphicByAttribute(attributes:Object, graphicLayer:GraphicsLayer):Graphic
{
for each (var graphic:Graphic in graphicLayer.graphicProvider)
{
if (graphic.attributes["OBJECTID"] == attributes["OBJECTID"])
{
return graphic;
}
}
return null;
}
... View more
10-05-2011
12:43 PM
|
0
|
0
|
441
|
|
POST
|
Thanks for correcting me, Rene. I had forgotten about the fields in SDE.
... View more
10-03-2011
12:44 PM
|
0
|
0
|
836
|
|
POST
|
Since Shape.Len is an internal ArcGIS function, it's not an actual attribute that you can grab hold of. You'll have to create your own length field.
... View more
10-03-2011
07:33 AM
|
0
|
0
|
836
|
|
POST
|
There are some dark blue to light blue color ramps. You can reverse them to get the gradient going the way your desire. You can also take an existing color ramp and edit it. Look here for instructions on how to do this.
... View more
09-28-2011
07:34 AM
|
0
|
0
|
741
|
|
POST
|
Take a look at here for the geographic coordinate system codes and here for the projected coordinate system codes
... View more
09-27-2011
07:17 AM
|
0
|
0
|
433
|
|
POST
|
The ArcGIS Viewer for Flex forum is dedicated to posting questions about the Flex Viewer and searching for answers about it. By looking in that forum, you would have seen this thread
... View more
09-21-2011
07:51 AM
|
0
|
0
|
806
|
|
POST
|
Here's a code fragment that will do that
'pFClass is your Feature class
'cboFields is the combo box
Dim pFields As ESRI.ArcGIS.Geodatabase.IFields2
Dim pfield As ESRI.ArcGIS.Geodatabase.IField
pFields = pFClass.Fields
For i As Integer = 0 To pFields.FieldCount - 1
pfield = pFields.Field(i)
cboFields.Items.Add(pfield.Name)
Next (i)
... View more
09-19-2011
08:06 AM
|
0
|
0
|
569
|
|
POST
|
How about using the "Replace Sketch" context menu tool? See the tip halfway down the page on this Help topic
... View more
09-15-2011
10:41 AM
|
0
|
0
|
678
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 2 weeks ago | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM | |
| 1 | 10-11-2023 06:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|