Hot answers tagged

10

I believe that everything is moving in that direction, mobile browsers only support javascript/html and even in win8 javascript/html is a supported stack for metro-apps. ESRI will have to follow, and they are (arcgis online etc.) But, if your users still use older versions of IE on the desktop, right now adobe flex or silverlight is a better choice. On ...


6

Depending on how good are the relative topologies of street and parcels you might want to: buffer the selected street and find out which parcels instersect, if the topology is not reliable; perform a spatial join (intersect would work I think) between the two feature classes if the topology is reliable. Both these operations can be encapsulated in a ...


5

Yes you are correct at 10.1 the service model is changing, but for 10.0/sp1/sp2 you should still be able to connect to your services. I would first look to your user permissions/settings for the user connecting to the service to make sure its a agsusers group so that it can access that service. This was very specific in the ADF generation to ensure that said ...


5

Not sure it did when the question was first asked but it sure does now. Check the sample: http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/widget_measurement


4

IMap:Layers and IEnumLayer http://edndoc.esri.com/arcobjects/9.1/componenthelp/esricarto/IMap_Layers.htm


3

Policy files which redirect applications to newer versions of ESRI assemblies are no longer distributed with ArcGIS since 10.0. I cannot comment on the 10.1 beta specifically as I do not have it installed, but my understanding is that ESRI no longer distributes these policy files so that developers are forced to test (and recompile) their customizations on ...


3

You need to create the ArcObject instances (GeometryBagClass at the beginning and PolygonClass near the end of your code snippet) on the ArcGIS Server SOC by using IServerContext.CreateObject. Your current code creates these objects on the web server (or wherever your ADF app is running), which requires a lot of marshalling which in many cases seems to never ...


3

If you are using multiple services via SOAP, creating shared value objects is recommended and much more convenient than converting to Web ADF/ArcOBjects geometric objects. See this page for how to achieve this: http://resources.esri.com/help/9.3/arcgisserver/apis/soap/Using_multiple_services_in_a_single_application.htm


3

If by "does select the Pan tool but on the client my select tool is still the cursor and the current active tool" you mean it functions right but does not look right then I would assume your javascript side of that messy system is out of sync with the ASP.NET side. My best guess is that you forgot to send that callback result (CallbackResult cr) out the the ...


3

Web ADF for .Net runs on 3.5 framework and the latest VS2010 is on 4.0 framework. When you open the website it asks for the conversion of framework. Click on no and then project gets uploaded and once executed the map will be showen.


2

I think you have a few options: Disable the built-in ADF scroll wheel handler (see ScrollWheelZoom in the ADF Documentation) and then use the ADF Javascript library to handle the zooming. Add an event to your Map control's ScaleChanged event that enabled or disabled the ScrollWheelZoom at run-time. Place a <div> over your map control that ...


2

I know this might sound obvious, but is something calling that routine twice? If you set a break point at ReturnMessage is it hit twice? If so, you could dig into where it is coming from. Perhaps there is more than one instance of the CustomCommandAction somehow.


2

I can't help you with steps 2 and 3, but those are javascript / AJAX calls that you can deal with once you have figured out where the map was clicked. To set up a client-side handler in the .NET ADF, first configure a Tool that will call some javascript when you click on it: <esri:Tool ClientAction="setupCustomTool('%toolbarItem%');" ...


2

Since this is development of a new application, it simply should not be done using the Web ADF. Aside from being much less straightforward than the Web APIs, its shelf life is very limited at this point. Since your development environment is Visual Studio, I would recommend that you take a look at the Silverlight API. Not only will your development ...


2

I have not had much experience with the ArcGIS Web offering, but I've experienced something similar in ArcMap. The first thing I can suggest is check that the spatial reference (AKA projection) is the same for both files. A difference in these can sometimes cause applications to inaccurately project the data to your screen. Though recently, I have had a ...


2

Based on my observation of how the Silverlight SDK works (which has snapping), I believe you will have to write your own snapping implementation. I don't think there's anything on the server that will really help you. You will have to retrieve the geometries associated with the road(s) you want to measure via the FeatureServer. Then on the measure tool, ...


2

I think you'll need to write your own custom tool. I don't see a method in the REST API that returns a point and feature ID that is closest to a specified point. You could use a query request, but then you'd have to use javascript to loop through the returned features to find the closest point on the closest feature relative to the point where the user ...


2

I'm curious where in the documentation you've seen it stated that Local connections are faster than Internet connections? Beyond that, you're almost certainly experiencing permissions problems as D.E. Wright mentions. If you're using the default setup under IIS then depending on your version of Windows your web app will probably be running under IUSR_ or ...


2

I've used this VB.net code to do tasks similar to what you are asking. This is shortened from memory so bear with me. ' Create layer enumerator ' Use IHookHelper focus map (or other reference to an IMap) Dim layerEnumerator As ArcGIS.Carto.IEnumLayer layerEnumerator = HookHelper.FocusMap.Layers() layerEnumerator.Reset() ' Loop through layers Dim layer As ...


2

Draw to the GraphicsLayer http://edndoc.esri.com/arcobjects/9.2/NET_Server_Doc/developer/ADF/graphics.htm


2

The Common Custom JavaScript sample in the Web ADF 10 SDK Help has an example of updating the browser status bar with the current mouse cursor coordinates. See Default.aspx for the JavaScript implementation. In the initialize() function: // Show map coordinates in status bar based on cursor location map.add_mouseMove(mouseMove); A bit further down: // ...


2

I think the ArcGIS Java Script API will be the best option. As per your question Java Script API +Dojo +ArcGIS is the best option and it supports Desktop,mobile and TAB platforms. Check out the pros/Cons of Java Script API here


1

There was a 'Measure' tool that should do what your looking for. But keep in mind that the ADFs are being depricated and don't have a huge amount of life to them.You can take a look at the code-gallery, there is a lot there you can start off playing with.But keep in mind that most of this will not work fully in ArcGIS 10.1, since the core API and libraries ...


1

Aggregate the points collection to a polygon


1

You really need to make sure the ESRI AGS SDK is installed properly; you will want to use the 'Add ArcGIS Reference' (not sure of exact name, not at work pc) versus the usual add reference tool. This is because there are nested dependencies and how the DLLs are loaded that ESRI handles for you. This will get them all to load right. If you run the SDK ...


1

Seems that ArcGIS from version 10.1 and forth will only support http connections, local connection will not be supported any longer.


1

Found out, warning: javascript at line indicated by javascript debuggers like firebug or chrome's integrated one is bugged, combobox name is case-sensitive and you need to correct it


1

The best answer is viewstate has to keep moving back and forth with page posts, versus sessionstate lives on the server. This was the ESRI workflow for there AJAX framework.


1

Make sure you've installed 10. update the references to use the 10 version. Change the File and Assembly version then rebuild the solution. at the top of the aspx page: <%@ Register Assembly="gridResults, Version=1.3.1.33, Culture=neutral, PublicKeyToken=xx" Namespace="esri_samples" TagPrefix="esri_samples" %> in the web.config: <add ...


1

Your issue is most likely related to user permissions. There are several things you need to make sure in order to connect to ArcGIS Server: The user name you are trying to use must be a member of the agsadmin group If this is a desktop application, the user you are currently logged in as (if different from above user) must also be a member of agsadmin. If ...



Only top voted, non community-wiki answers of a minimum length are eligible