|
POST
|
The ArcGIS Viewer for Flex forum has been set up to ask questions about the Viewer and its widgets. Please post your question there to make it easier to search for answers about the Viewer.
... View more
09-13-2011
04:54 AM
|
0
|
0
|
431
|
|
POST
|
I remember seeing a post where a user ran into the maximum number of layers (around 20 or so) that could be added to a map, but I haven't been able to find the thread.
... View more
09-01-2011
05:43 AM
|
0
|
0
|
683
|
|
POST
|
You can use the Map's Reorder method to change the order of the layers.
... View more
08-31-2011
06:51 AM
|
0
|
0
|
798
|
|
POST
|
I didn't wrap my legend in a scroller, but put it in a VGroup along with a transparency slider.
<s:VGroup id="legendGroup" width="100%" height="100%" visible="{layerBenthic.visible}">
<s:HGroup width="100%" horizontalAlign="center" paddingTop="10">
<s:VGroup width="100%" horizontalAlign="center">
<s:Label text="Layer Transparency"/>
<s:HSlider id="toolAlpha" minimum="0" maximum="100" snapInterval="1" liveDragging="true"
width="75%" change="changeTransparency()" value="100"/>
</s:VGroup>
</s:HGroup>
<esri:Legend id="legendMap" map="{mapMain}" layers="{layerBenthic}" width="100%" height="100%"
respectCurrentMapScale="true" x="10" />
</s:VGroup>
... View more
08-30-2011
06:10 AM
|
0
|
0
|
1448
|
|
POST
|
The ArcGIS Viewer for Flex forum was set up for posing questions about widgets and searching for answers about them.
... View more
08-26-2011
05:20 AM
|
0
|
0
|
677
|
|
POST
|
Thanks, Robert. This is another great example of your invaluable help to this forum.
... View more
08-18-2011
04:17 AM
|
0
|
0
|
1896
|
|
POST
|
Hi Robert, I've been using your Navigation tool in one of my projects, where the code has been put into a separate directory and linked to the project by Source Path. It's a great tool that I really appreciate your work on and it's been working just as expected. However, I've started another project (FB 4.5.1 and API 2.4) and have set it up the same way, but here I'm getting the error The skin part type 'mx.controls:VSlider' must be assignable to 'spark.components.supportClasses:SliderBase'. in the line [HostComponent("com.esri.ags.components.Navigation")] Why would this work in one project but not the other?
... View more
08-17-2011
07:15 AM
|
0
|
0
|
1896
|
|
POST
|
You will not find the references for the Geoprocessing tools using "Add ArcGIS Reference". You'll have to use "Add Reference" and select the .NET tab.
... View more
08-15-2011
05:47 AM
|
0
|
0
|
484
|
|
POST
|
The ArcGIS Viewer for Flex forum was created for questions like this.
... View more
08-11-2011
12:00 PM
|
0
|
0
|
429
|
|
POST
|
It works in Chrome 13 and IE 8 but not in Firefox 5. Basically, you need to interact with the map first by zooming or panning before the onclick returns something. I had this problem in Flex and got around it by adding in an alert box in the initialization. Closing the alert box provided the map interaction necessary to allow the map click to work without panning or zooming.
... View more
08-09-2011
10:47 AM
|
0
|
0
|
1745
|
|
POST
|
To add in the url, try this code by Robert Scheitlin. Here's how I use it in one of my applications.
... View more
08-09-2011
07:39 AM
|
0
|
0
|
544
|
|
POST
|
Hi Carlos, I'm glad to hear you're making progress. Since you don't have the code to show why the Clip process didn't run, examine the Results information in ArcMap to find out what happened. Could it be that it's not overwriting "in_memory\APP_ENS_OVERLAP"? Have you set the Geoprocessor to overwrite outputs, either through the Geoprocessing Options dialog or by setting pGeoprocessor.OverwriteOutput = "true"
... View more
08-09-2011
07:18 AM
|
0
|
0
|
2076
|
|
POST
|
My code makes calls to functions containing the geoprocessing tools. I've declared the geoprocessor Global.GP in another module and initialized it elsewhere
pDissolvedFClass = DissolveDataset(pResourceFClass, DissolveFieldName, StatisticsFieldName & " " & Stat, "in_memory\DissolvedResource")
Friend Function DissolveDataset(ByVal InputName As Object, ByVal DissolveField As String, ByVal StatsFields As String, ByVal OutputName As String) As ESRI.ArcGIS.Geodatabase.IFeatureClass
Dim DissolveDS As New ESRI.ArcGIS.DataManagementTools.Dissolve
Dim Result As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult2
Try
Using releaser As New ESRI.ArcGIS.ADF.ComReleaser
releaser.ManageLifetime(DissolveDS)
DissolveDS.in_features = InputName
DissolveDS.dissolve_field = DissolveField
DissolveDS.statistics_fields = StatsFields
DissolveDS.out_feature_class = OutputName
Result = RunTool(DissolveDS, Nothing)
If Result Is Nothing Then
System.Windows.Forms.MessageBox.Show("Could not dissolve dataset")
Return Nothing
End If
Return ReturnObjectfromResult(Result, "Feature Class")
End Using
Catch ex As Exception
System.Windows.Forms.MessageBox.Show(ex.ToString, "Dissolve error")
Return Nothing
End Try
End Function
Friend Function ReturnObjectfromResult(ByVal result As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult2, ByVal Type As String) As Object
Dim GPVal As ESRI.ArcGIS.Geodatabase.IGPValue
Dim InMemFC As String
Dim GPUtil As ESRI.ArcGIS.Geoprocessing.IGPUtilities3 = New ESRI.ArcGIS.Geoprocessing.GPUtilities
Try
GPVal = result.GetOutput(0)
InMemFC = GPVal.GetAsText()
Select Case Type
Case "Feature Class"
Return GPUtil.OpenFeatureClassFromString(InMemFC)
Case "Table"
Return GPUtil.OpenTableFromString(InMemFC)
End Select
Catch ex As Exception
System.Windows.Forms.MessageBox.Show(ex.ToString, "Return FeatureClass error")
Return Nothing
End Try
End Function
Private Sub ReturnMessages(ByVal pResult As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult2, ByVal Title As String)
Dim ErrorMessage As String
If pResult.MessageCount > 0 Then
For Count As Integer = 0 To pResult.MessageCount - 1
ErrorMessage += pResult.GetMessage(Count)
Next
End If
System.Windows.Forms.MessageBox.Show(ErrorMessage, Title)
End Sub
Friend Function RunTool(ByVal Process As ESRI.ArcGIS.Geoprocessor.IGPProcess, ByVal TC As ESRI.ArcGIS.esriSystem.ITrackCancel2) As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult2
Dim Result As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult2
Try
Result = CType(Globals.GP.Execute(Process, Nothing), ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult2)
If Result.Status <> ESRI.ArcGIS.esriSystem.esriJobStatus.esriJobSucceeded Then ReturnMessages(Result, "Geoprocessing Error")
Globals.GP.ClearMessages()
Catch ex As Exception
ReturnMessages(Result, "Fail")
System.Windows.Forms.MessageBox.Show(ex.ToString, "Run Geoprocessor")
End Try
Return Result
End Function
... View more
08-04-2011
11:50 AM
|
0
|
0
|
2076
|
|
POST
|
I haven't tried using the IMemoryWorkSpaceFactory, but I have been able to use a geoprocessor process parameter like "in_memory\output"
... View more
08-04-2011
11:22 AM
|
0
|
0
|
2076
|
|
POST
|
The button bar uses a zero based index, so your code show be like this (if Avatud Maakaart refers to OpenStreetMap)
<esri:ArcGISTiledMapServiceLayer show="layerShowHandler(event)"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
visible="{bb.selectedIndex == 1}"/>
<esri:OpenStreetMapLayer show="layerShowHandler(event)"
visible="{bb.selectedIndex == 0}"/>
... View more
08-03-2011
06:30 AM
|
0
|
0
|
460
|
| 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
|