|
POST
|
If you are using AMD style, check if the module aliases match the dependency list. Take below code as an example. module1 is the alias of path/to/mod1, module2 for path/to/mod2, and so on. You can skip some dependencies not assigning them aliases, like path/to/mod4 in below, but all the skipped modules must be at the end of the dependency list. define(["path/to/mod1", "path/to/mod2", "path/to/mod3", "path/to/mod4"], function(module1, module2, module3) { // body content }); More than likely, in your map.js, the position of parser in the alias list does not match the position of module dojo/parser in the dependency list. Otherwise, please post map.js code for further inspection.
... View more
11-07-2013
05:43 PM
|
0
|
0
|
636
|
|
POST
|
Tif, thank you very much for the tip. Removing the content under C:\Users\<yourUserName>\AppData\Local\Apps\2.0 folder does the trick. I do recommend ESRI put this tip down to the online document.
... View more
11-07-2013
05:04 PM
|
0
|
0
|
1109
|
|
POST
|
I have previously installed Operations Dashboard successfully on my Windows 7 32-bit machine (which means I have .NET 4.5 Framework installed). I have also successfully created couple of views until it keeps crashing whenever I tried to open existing views or creating new views. I thought I might have messed up the Operations Board, and decided to uninstall it and perform a reinstall. However, when I tried to reinstall, I got the below error: Application cannot be started. Contact the application vendor. Clicking Details... to get the below log report: Any help will be highly appreciated. PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.18052
System.Deployment.dll : 4.0.30319.17929 built by: FX45RTMREL
clr.dll : 4.0.30319.18052 built by: FX45RTMGDR
dfdll.dll : 4.0.30319.17929 built by: FX45RTMREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file:///C:/Users/Zhijun/Downloads/OperationsDashboard(1).application
Deployment Provider url : http://www.arcgis.com/opsdashboard/OperationsDashboard.application
Server : ArcGISOnline
Application url : http://static.arcgis.com/opsdashboard/OperationsDashboard.exe.manifest
Server : ArcGISOnline
IDENTITIES
Deployment Identity : Operations Dashboard.app, Version=10.1.1.142, Culture=neutral, PublicKeyToken=f464941b06bea132, processorArchitecture=msil
Application Identity : Operations Dashboard.exe, Version=10.1.1.142, Culture=neutral, PublicKeyToken=f464941b06bea132, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Installable application.
* Trust url parameter is set.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\Zhijun\Downloads\OperationsDashboard(1).application resulted in exception. Following failure messages were detected:
+ Unable to install this application because an application with the same identity is already installed. To install this application, either modify the manifest version for this application or uninstall the preexisting application.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [11/6/2013 10:51:51 PM] : Activation of C:\Users\Zhijun\Downloads\OperationsDashboard(1).application has started.
* [11/6/2013 10:51:52 PM] : Processing of deployment manifest has successfully completed.
* [11/6/2013 10:51:52 PM] : Installation of the application has started.
* [11/6/2013 10:51:52 PM] : Processing of application manifest has successfully completed.
* [11/6/2013 10:52:01 PM] : Found compatible runtime version 4.0.30319.
* [11/6/2013 10:52:01 PM] : Request of trust and detection of platform is complete.
* [11/6/2013 10:52:25 PM] : Downloading of subscription dependencies is complete.
* [11/6/2013 10:52:25 PM] : Commit of the downloaded application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [11/6/2013 10:52:25 PM] System.Deployment.Application.DeploymentException (Subscription)
- Unable to install this application because an application with the same identity is already installed. To install this application, either modify the manifest version for this application or uninstall the preexisting application.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SubscriptionStore.CheckApplicationPayload(CommitApplicationParams commitParams)
at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState& subState, CommitApplicationParams commitParams)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
... View more
11-06-2013
07:15 PM
|
0
|
4
|
5632
|
|
POST
|
Michael, query is normally performed against a feature layer or table in a map service, not against to the map service itself. To run a query against a feature layer, typically you will need the following steps: Create a feature layer using its REST endpoint, or create a query task using esri.tasks.QueryTask. Create a query that defines the query parameters Perform the query, and define the callback function to process the query result. There are many query samples under Query and Select section. Here is one.
... View more
11-06-2013
04:34 AM
|
1
|
0
|
2448
|
|
POST
|
Without code details, hard to tell what went wrong. Due to some issues with the PrintTask, the best suggestion I can give to you is to save each type of graphics into a separate graphics layer. Basically, one layer for points, one layer for text graphics, one layer for lines and one for polygons. Refer to this thread for some details.
... View more
11-05-2013
06:20 PM
|
0
|
0
|
2021
|
|
POST
|
Javascript is case-sensitive. Based on the layer info, the objectid field should be OBJECTID. Change: selectQuery.objectIds = [e.graphic.attributes.objectid]; To: selectQuery.objectIds = [e.graphic.attributes.OBJECTID];
... View more
11-05-2013
05:36 PM
|
0
|
0
|
577
|
|
POST
|
To prevent the recursive loop, use a flag variable, like below. var bolDefExpSet = false; set bolDefExpSet to true right after featureLayer.setDefinitionExpression. map.on("update-end", function() { if (bolDefExpSet) { // set map extent to the feature layer feature extent map.setExtent(...); // reset bolDefExpSet to prevent the recursive loop bolDefExpSet = false; } });
... View more
10-30-2013
07:57 PM
|
0
|
0
|
1075
|
|
POST
|
There are several issues in your code. Try to make below changes. Also refer to this thread for the offset issue. Change: <script>var dojoConfig = { parseOnLoad: true };</script> To: set async to true is the requirement for AMD style. <script>var dojoConfig = { parseOnLoad: true, async: true };</script> Change: require(["esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "dijit/dijit", "dijit/layout/BorderContainer", "dijit/layout/ContentPane",
"dijit/layout/AccordionContainer", "dijit/form/TextBox",
"dijit/form/Button", "dijit/Toolbar", "dijit/Tooltip", "esri/toolbars/navigation", "dojo/domReady!"
], function (
Map, ArcGISDynamicMapServiceLayer, Navigation
) { To: require(["esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/toolbars/navigation", "dijit/dijit", "dijit/layout/BorderContainer", "dijit/layout/ContentPane",
"dijit/layout/AccordionContainer", "dijit/form/TextBox",
"dijit/form/Button", "dijit/Toolbar", "dijit/Tooltip", "dojo/domReady!"
], function (
Map, ArcGISDynamicMapServiceLayer, Navigation
) { The order of the modules in the array right after require should match the order of the parameters (module aliases) inside function(). You can have fewer module aliases. But once have in the alias list, those aliases must match the order in the module dependency list.
... View more
10-30-2013
10:21 AM
|
0
|
0
|
553
|
|
POST
|
Hi Brian, One feature layer cannot be added to two map objects. The reason is simple. To render a feature layer on a map, dom elements will be created under the map div element for each layer and its graphics and labels. Why not use the same map object for the two "pages"? You can control the visibility/display of the map surround elements to make users feel like two pages. You can also reposition and resize the map object if in need. Using two map objects will be troublesome, hard to maintain and less efficient.
... View more
10-29-2013
08:43 PM
|
0
|
0
|
1516
|
|
POST
|
Tracy is correct. I overlooked one thing in my revision. Change: locNames.push(value.attributes.NAME); To: locNames.push({NAME: value.attributes.NAME});
... View more
10-28-2013
12:52 PM
|
0
|
0
|
2244
|
|
POST
|
Set a breakpoint right after filteringSelect is instantiated, and check filteringSelect.store to see if the data is populated. If yes, then something else in your code is wrong. From the original error: "TypeError: a[this.searchAttr] is undefined", it's something to do with an array named "a". Can you post the code that relates to how "a" array is populated and being used?
... View more
10-28-2013
12:33 PM
|
0
|
0
|
2244
|
|
POST
|
filteringSelect needs to be created inside the callback function of the query. Try to change your code as shown below. var queryTaskName = new esri.tasks.QueryTask("");
var filteringSelect;
var locNames = [];
//build query filter
var queryName = new esri.tasks.Query();
queryName.returnGeometry = false;
queryName.outFields = ["OBJECTID","NAME"];
queryName.where = "OBJECTID > 0";
queryName.returnGeometry = false;
queryTaskName.execute(queryName, function (results) {
//parse results and add to autocomplete widget
dojo.forEach(results.features, function (value, index) {
locNames.push(value.attributes.NAME);
});
// assume locNamesMemory is declared as a global variable.
locNamesMemory = new Memory({ data: locNames, idProperty: "NAME" });
filteringSelect = new FilteringSelect({
id: "txtSearch",
name: "state",
value: "Enter Name Here",
store: locNamesMemory,
autoComplete: true,
searchAttr: "NAME"
}, "txtSearch");
}, function (error) {
alert("Error: " + error);
});
... View more
10-28-2013
09:32 AM
|
0
|
0
|
2244
|
|
POST
|
It depends. If you need to query the layer based on the attribute data and/or spatial features, having a graphics layer to render the found features can be one way to go. Otherwise, if you only like to control the feature limit at each map scale level, making query and rendering afterwards would be an overhead. Setting scale dependencies in the map service would be the way I will recommend then. Again, your business logic will eventually define the best approach you will need.
... View more
10-28-2013
09:16 AM
|
0
|
0
|
3101
|
|
POST
|
Yufei, although you can control limiting rendering features by setting the MaxRecordCount number at the map service level, it is normally not a good idea to use that measure as the only control. MaxRecordCount is used mainly for performance consideration. But you don't want to confuse the users that the features rendered are the only ones available at that map scale. I would suggest to control the layer visibility by setting their scale dependency. With that, you can control that only features within the limit will be displayed, and meet your performance need as well. If you can describe more detail how you like to filter the layer, it will help us better help you out.
... View more
10-28-2013
05:40 AM
|
0
|
0
|
3101
|
|
POST
|
yufei, you can use renderer to render the whole feature layer, and use featureLayer.setDefinitionExpression(expression) to filter which subset of features will be displayed by their attribute data.
... View more
10-27-2013
07:40 PM
|
0
|
0
|
3101
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-17-2013 05:16 AM | |
| 1 | 11-06-2013 04:34 AM | |
| 1 | 08-29-2013 10:58 AM | |
| 6 | 10-20-2020 02:09 PM | |
| 1 | 11-20-2013 06:09 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-17-2024
08:41 AM
|