|
POST
|
Try these changes in your TransLineEdit.vb form.
Public Class TransLineEdit
Inherits ESRI.ArcGIS.Desktop.AddIns.Button
Dim pForm As New frmEdit
Protected Overrides Sub OnClick()
Try
pForm.Show()
Catch ex As Exception
System.Windows.Forms.MessageBox.Show(ex.ToString, "OnClick")
End Try
End Sub
End Class
... View more
11-14-2011
07:14 AM
|
0
|
0
|
1145
|
|
POST
|
This has been reported as a bug: NIM061356 (ICalculator or ICalculatorUI2 do not offer a property where the parser (expression type) can be specified; VBScript is the default, so Python expressions error out). Unfortunately, although being submitted over a year ago, it's classified as low priority and has not been fixed yet.
... View more
10-31-2011
01:00 PM
|
0
|
2
|
1396
|
|
POST
|
When you open a new project, make sure you chose .NET Framework 3.5
... View more
10-28-2011
07:41 AM
|
0
|
0
|
1265
|
|
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
|
1828
|
|
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
|
583
|
|
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
|
411
|
|
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
|
521
|
|
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
|
485
|
|
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
|
474
|
|
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
|
478
|
|
POST
|
Thanks for correcting me, Rene. I had forgotten about the fields in SDE.
... View more
10-03-2011
12:44 PM
|
0
|
0
|
939
|
|
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
|
939
|
|
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
|
820
|
|
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
|
494
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 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 |
2 weeks ago
|