|
POST
|
Sorry- I don't know for sure, but would have to guess "no" since the whole concept of event handling changed from 3.x to 4.x. That's probably best answered on their own support sites. I'm aware of CMV but haven't actually incorporated it into anything I've put together.
... View more
01-31-2017
10:52 AM
|
0
|
0
|
2166
|
|
POST
|
I'm not aware of, or seen, anything like this. You might be better served by modifying the open source CMV Viewer, which includes a robust layer/TOC control that has more functionality than the ESRI dijit anyways.
... View more
01-31-2017
10:14 AM
|
0
|
2
|
2166
|
|
POST
|
While I think Robert's reply is the most appropriate, there is one other possibility. While creating your Legend instance, there is an option called autoUpdate which controls whether or not your legend widget will automatically add or drop legend items if layers are added or dropped from the map. The default setting is TRUE so you could change this to FALSE in order to keep your other layer from getting added to your legend. In this case, the legend would only reflect what was initially added to the map. If you needed to update the legend at some other point, you can still call the refresh method.
... View more
01-31-2017
08:16 AM
|
1
|
0
|
1934
|
|
POST
|
I'm afraid that I don't know the answer to those questions. I'm on the end user side of the equation so I don't know the details of what's happening under the hood. We haven't really quite jumped in with AGOL or Portal just yet. I've never been much of a fan of AGOL since we pay for an enterprise license of Server so why pay more for something we can (technically) host ourselves with Portal? I've also become quite jaded about webmaps because the Flood Warning Application I developed using the Javascript API has been a failure when it's been needed most. The problem has not been with the code; it's been the hardware & infrastructure we have around it. We simply cannot support a high demand application and I don't have much hope that we will make the changes that are needed. From the perspective of failure, I'm now much more an advocate of being prepared to work in an offline environment.
... View more
01-27-2017
09:31 AM
|
0
|
0
|
2119
|
|
POST
|
I think you're touching the dark, dirty secret of ESRI's world. They want you to live by the web map but it's soooooo easy to die by it as well. Portal is a locally hosted version of AGOL but, yes, it would still draw upon ESRI's various basemap options for any web maps/apps. Your organization can always look into developing your own basemaps using your local data. This is *A LOT* of work (primarily labelling) but you then have a local basemap that you can still use as long as you have network connectivity within your organization. My organization is trying to also have local RAID drives of our various datasets & orthos so we can still function should we lose total network connectivity. I guess a take home would be yes- go ahead and utilize ESRI's tools/apps for Emergency Management but also have a backup in the way of offline local copies of your data along with MXD map templates that address what concerns you may face, Steve
... View more
01-27-2017
08:50 AM
|
1
|
3
|
2119
|
|
POST
|
From a strictly visual perspective, you can also change the ressample method for a given raster layer in Arcmap from Nearest Neighbor to Bilinear Interpretation (Layer Properties->Display tab). It won't alter the underlying data but generally makes a more pleasing visual by getting rid of the "pixely" appearance.
... View more
01-25-2017
04:10 PM
|
1
|
0
|
4583
|
|
POST
|
Agreed. It is obvious that the older flavor doesn't fit into their "healthy growth" business model but that's not what helps us get work done.
... View more
01-25-2017
11:25 AM
|
0
|
0
|
1352
|
|
POST
|
mbockenhauer-esristaff (or any ESRI employee) Can you share any sort of update about the future of ArcGIS Explorer for Desktop? I know I would like to see a free viewer with an SDK still exist moving forward, as would our Assessor's staff who have developed a field application to assist them with their assessments. Thank you.
... View more
01-25-2017
09:46 AM
|
0
|
2
|
1352
|
|
POST
|
You could still do this with strictly javascript. I mean, it's certainly more elegant and nice to have a helper like the urlUtils but isn't that hard to do otherwise. Here's a snippit that zooms the map to a lat/long if passed as a parameter in the URL: //If a coordinate location was passed as a parameter, zoom the map to it
//Evaluate the URL of this HTML page to determine if any parameters were passed with it
htmlPagePath = window.location.toString();
qLocation = htmlPagePath.indexOf('?');
if (qLocation < 1){
passedLatLong = false;
} else {
passedLatLong = true;
}
if (passedLatLong)
{
//Extract the lat/long coordinates passed as a parameter with the URL
var coordStr = window.location.toString().substr(qLocation + 1,window.location.toString().length);
var coords = new Array();
coords = coordStr.split(',');
//Create a lat/long point
var bridgeLoc = new Point(coords[0],coords[1], new SpatialReference({wkid:4326}));
var theLatLongPoint = new Point(coords[0],coords[1], new SpatialReference({ wkid: 4326 }));
var webMercatorPoint = webMercatorUtils.geographicToWebMercator(theLatLongPoint);
map.centerAndZoom(webMercatorPoint, 16);
map.resize();
} This just assumed that the url was something like "http://server/folder/index.html?-122,48" You can easily adjust this to be "...?parcelId=xxxx"
... View more
01-24-2017
03:28 PM
|
1
|
0
|
2322
|
|
POST
|
I'm not sure if ESRI provides this capability in a free service, like geocoding a single address. I ran into this while trying to build an app and ultimately decided to build a Google Maps based app because of this. If your area of interest lies solely within the U.S., you can use the USGS Elevation Point Query Service to return an elevation given a lat/long. It works quite well (but I wanted to ensure worldwide coverage). I'd have to dig to find the code I did write to take advantage of this. You basically query it like a REST endpoint query (AJAX call, etc). http://ned.usgs.gov/epqs/pqs.php?x=-120&y=47&units=Feet&output=json Steve
... View more
01-24-2017
01:58 PM
|
1
|
0
|
1623
|
|
POST
|
The suggestion by Duncan Hornby was the correct answer. Although the link from the old forum was bad, I think I found a thread that did make it over into GeoNet that had the correct solution. TopMost property did not solve the issue; rather, it was adding a little bit of code to the form's show method: theForm.Show(System.Windows.Forms.Control.FromHandle(My.ArcMap.Application.hWnd)) In my last post, I mentioned that playing with the TopMost property introduced a series of new errors into my project. That was a weird one but I finally figured out a way to correct it. On my user form, I use rectangleShapes to indicate to the user when they have successfully completed input steps in their workflow (when they complete a step, the shading behind that input turns green). RectangleShapes are part of Microsoft's Powerpack controls and, for whatever reason, the rectangleShape is a "private" control whereas every other form control used is public. I was trying to update the properties of the rectangleShape from the code from outside the scope of the form's codebase so that wasn't allowed. To work around this, I added several public properties to my form which allow me to do what I need to do: Public Property toLocationTag() As String
Get
Return Me.fraToLoc.Tag
End Get
Set(value As String)
Me.fraToLoc.Tag = value
End Set
End Property
Public Property fromLocationVisibility() As Boolean
Get
Return Me.fraFromLoc.Visible
End Get
Set(value As Boolean)
Me.fraFromLoc.Visible = value
End Set
End Property Back on track. Yay.
... View more
01-13-2017
09:05 AM
|
2
|
0
|
1929
|
|
POST
|
The form is opened via a command button on a toolbar: Imports ESRI.ArcGIS.ArcMapUI
Imports ESRI.ArcGIS.Carto
Imports System.Windows
Public Class cmdOpenClosureForm
Inherits ESRI.ArcGIS.Desktop.AddIns.Button
Protected Overrides Sub OnClick()
Try
'Opens the Rd Closure Dialog
Dim pMxDoc As IMxDocument
Dim pActiveView As IActiveView
Dim pGraphicsContainer As IGraphicsContainer
Dim application = My.ArcMap.Application
Dim isOpened As Boolean = False
Dim theForm As frmAddSnoClosures = Nothing
'Make sure that the form isn't already open.
For Each frm As Windows.Forms.Form In Windows.Forms.Application.OpenForms
If TypeOf frm Is frmAddSnoClosures Then
isOpened = True
theForm = frm
End If
Next
If Not isOpened Then
theForm = New frmAddSnoClosures
End If
pMxDoc = application.Document
pActiveView = pMxDoc.FocusMap
pGraphicsContainer = pActiveView.GraphicsContainer
'Open the Form
theForm.Show()
pGraphicsContainer.DeleteAllElements()
pMxDoc = Nothing
pActiveView = Nothing
pGraphicsContainer = Nothing
Catch ex As Exception
globalErrorHandler(ex)
End Try
End Sub
End Class I found the TopMost property that was previously mentioned and, once I changed the property from TRUE to FALSE and tried to rebuild my project, I got a series of errors which I now can't get rid of: The blue highlighted line is an example of one of the lines throwing the new error. It's all related, I'm sure, but I'm not understanding it..
... View more
01-12-2017
08:21 AM
|
0
|
0
|
1929
|
|
POST
|
I'm sure this is a simple fix but I'm feeling dense and I've never figured it out. I have a .NET add-in that includes a Windows Form. For whatever reason, the Windows form will not minimize WITH Arcmap and stays "on top" of any application. What setting do I set to have the Windows form stay on top of Arcmap UI items but still minimize with Arcmap? Here's my form on top of my browser while Arcmap is minimized. Thanks! Steve
... View more
01-09-2017
10:21 AM
|
0
|
4
|
2468
|
|
POST
|
Ugh. What a mess. I first updated to VS 2015 Express and promptly ran into the ITableSort bug so then I installed VS 2013 Express and was finally able to get my exsting add-in project rebuilt. None of the 3 VS installs are giving me an option for an ESRI add-in when creating a new project but I'll fix that later. Right now I just needed to correct some issues in an existing one so thank you.
... View more
01-06-2017
01:49 PM
|
0
|
1
|
1770
|
|
POST
|
I feel like such a noob again. Anyways, several years ago, I got my feet wet with .NET add-ins for Arcmap using Visual Studio 2008 Express. Fast forward to today when I need to troubleshoot why my add-in isn't working. My current PC is Windows 7 64-bit with ArcGIS 10.4.1 and Visual Studio 2010 Ultimate. The ArcObjects SDK for .NET appears to be installed on my machine (I have tried a repair on the install). I tried opening up my old 2008 project and it said it needed to migrate it. Fine. It completes without throwing an error. When I attempt to build/rebuild the project, I get 100s of errors that the ESRI objects are not defined. When I look at My Project, I see that all the ESRI references are broken: If I try to create a new project, ESRI Add-ins are not listed on the lefthand side: So- I'm guessing there's something wrong with my install? Something installed out of sequence or...? I can't seem to find anything in the online help about SETTING UP the SDK; only creating an add-in once the SDK is installed. Thanks! Steve
... View more
01-05-2017
04:00 PM
|
0
|
3
|
2968
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 1 | a week ago | |
| 1 | 2 weeks ago | |
| 2 | 2 weeks ago | |
| 1 | 3 weeks ago |