Tag Info

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

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

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.


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 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 ...


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

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

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

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


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

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


2

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


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 ...


1

I'd actually say it's the present more than the future. There's a number of ways to consume ArcGIS Services, but the Javascript/HTML5 libraries are by far the most portable and widely usable of the group. They work on virtually everything these days. ESRI has already moved away from the Web ADF, and Silverlight. It's only a matter of time before Flash ...


1

You will want to make sure your are initializing your license properly as well; when working locally you get a pass; but when you publish to the server this can fail. This can cause the 'or one of its dependencies' error since the Init didn't fire.


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

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 ...


1

that was my suggetsion also @Michael Todd. create, or desgin several user groups and perhaps allow the user to pick what type of user they want to emulate. There is some information here for 9.3. ilayerposition describing a layer priority assignment and more here Chapter 5


1

In the following link you have an example how to do exactly what you want but in the client side (including the CSS to set the div centered and grayed) http://cs.asteryx.com/forums/p/40/55.aspx Just do the same but instead of the ajax javascript , run the code to set it visibility on the server side.


1

Your quickest answer, is create a DIV on your page; set it to runas server, then hide it. So when you start your function go through and turn that div on, then when finished turn the div off. I don't have any code I can quickly post for you; but I have done this all over the place in my COTS apps and the workflow is pretty solid.


1

I would suggest creating a Model in ArcGIS Desktop which does a select by location with a buffer distance set. Then adding a Tool layer to the Map Service and publishing the geoprocessing model as a service. Then in the Web ADF you can just pick up the existing service. In saying this another way to go is to use this sample from the Esri Website to point ...


1

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 ...



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