|
POST
|
I am using the editor widget to add features to SDE feature classes via an ArcGIS Server Feature Server, but have found the infowindow used by the editor widget to be cumbersome because it displays on top of the map. I would like to use a Div outside of the map to contain the infowindow contents used by the Editor widget. Does anyone have some code that shows how to use to redirect the infowindow used when editing to a location other than in the map div HTML element? Thanks, Mele
... View more
09-19-2012
09:24 AM
|
0
|
5
|
1544
|
|
POST
|
I have updated a JavaScript web application created in Visual Studio 2010 to the new 3.1 API and am using the Intellisense VSDOC file available here: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/api_codeassist.htm This looks to be very handy for Visual Studio users, but I was not able to get it work within my HTML file. I have my HTML file, scripts, and styles in seperate files so I placed the following in my .html file: <script type="text/javascript" src="Assets/scripts/jsapi_vsdoc_v31.js"></script> But when I run the project, I get an error in IE that says "Expected identifier, string or number" which refers to the above JavaScript file and there is no intellisense. I can get intellisense to work in my JavaScript files by using the following reference /// <reference path="~/Assets/Scripts/jsapi_vsdoc_v31.js" />, but the problem is that I have several JavaScript files and I have to add the reference to each JavaScript file. Has anyone been able to get this to work in the HTML file or is there another way to use Intellisens without having to add the 'reference' to each JavaScript file? Thanks, Mele
... View more
08-06-2012
02:57 PM
|
0
|
1
|
652
|
|
POST
|
I have noticed that I have to reload my page in order to get the TOC to display. I can see that the agsjs.dijit.TOC is created on the initial load of the page, but the results do not show up in my 'tocDiv'. I have also experienced this behavior on the internet example site http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.02/examples/toc.html on the initial load the TOC does not show, but if I refresh in IE8, it does. Just wondering if there is a work around to address this behavior. Thanks, Mele
... View more
07-24-2012
01:29 PM
|
0
|
0
|
2570
|
|
POST
|
Thanks for answering this forum post and providing instructions on how to use your dijit in the 3.0 api. I have downloaded the latest JS from the link you provided and followed your instructions and things are working in 3.0 Mele
... View more
07-18-2012
11:44 AM
|
0
|
0
|
2570
|
|
POST
|
I have been using the Table of Contents widget from https://code.google.com/p/gmaps-utility-gis/ with ArcGIS Javasript API 2.8 but wanted to update my API to 3.0 and have not had luck doing so. I am not clear on how to migrate to 3.0 even after reading the documention. I did update my dojoconfig to use the "packages" property. dojoConfig = { parseOnLoad: true, packages: [{ name: "agsjs", location: "http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/1.07/build/agsjs" }] However, when using dojo.require("agsjs.dijit.TOC"); the table of contents does not load and the rest of my page does not load either. Has anyone been able to use this Table of Contents widget with 3.0? If so, can you provide instructions on how you got it to work? Thanks, Mele
... View more
06-21-2012
10:39 AM
|
0
|
13
|
8503
|
|
POST
|
I would like to implement the same flash feature command that ESRI uses when accessing the context menu on a table row. I have used the following to flash a selected feature: IActiveView activeView = ArcMap.Document.ActiveView; IFeatureIdentifyObj featIdentify = new FeatureIdentifyObject(); featIdentify.Feature = feature; IIdentifyObj identify = featIdentify as IIdentifyObj; identify.Flash(activeView.ScreenDisplay); This code works, but does not have the 'crosshairs' that the ESRI flash command does. I was looking possibly executing a command with ICommand.Execute, but could not find an ID for the Flash Command form the table context menu. Anyone have success with implmenting the same Flash Command that ESRI uses within custom code? Thanks, Mele
... View more
04-26-2012
08:48 AM
|
0
|
3
|
734
|
|
POST
|
After further investigation, this code does work. The problem I was having was trying to rebuild a locator which was moved from ArcSDE 9.x to our Development ArcSDE 10.x database. ArcGIS 9.x Locators must be recreated in 10 http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00250000001w000000.htm%20
... View more
04-03-2012
01:32 PM
|
0
|
0
|
342
|
|
POST
|
Trying to use ArcObjects to rebuild locators in an IWorkspace, but enounter 'COMException was unhandled' error when trying to use the 'rebuildlocator' method on ILocatorWorkspace2. Here is the code I am using: private static IWorkspace ws; IWorkspaceFactory2 wsf = new SdeWorkspaceFactoryClass(); ws = wsf.Open(propertySet, 0); private static void RebuildLocators() { System.Object obj = Activator.CreateInstance(Type.GetTypeFromProgID("esriLocation.LocatorManager")); ILocatorManager locManager = (ILocatorManager)obj; ILocatorWorkspace2 locWs = (ILocatorWorkspace2)locManager.GetLocatorWorkspace(ws); IEnumLocatorName enumlocName = locWs.get_LocatorNames(esriLocatorQuery.esriLocator, "Address"); ILocatorName locName = enumlocName.Next(); //IEnumLocator enumloc = locWs.get_Locators(esriLocatorQuery.esriLocator, "Address"); //ILocator loc = (ILocator)enumloc.Next(); while (locName != null) { locWs.RebuildLocator(locName.Name, null); locName = (ILocatorName)enumlocName.Next(); } } I have tried to pass both the ILocator.Name and ILocatorName.Name, but I suspect the problem might be the ITrackCAncel. Has anyone had success with rebuilding locators with ILocateWorkspace2? Please let me know if you can assist. Thanks, Mele
... View more
03-31-2012
06:46 AM
|
0
|
1
|
847
|