|
POST
|
Greetings! JSAPI 4.7 The user workflow is to have a user draw a polygon over some linear features. At "draw-complete" the polygon is coerced to a polyline and I want to find the line features that intersect the drawn polyline. However the query informs me: {"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to perform query operation."]}} The code appears simple enough: action.on("draw-complete", function(evt){
// create a polyline from the drawn polygon evt.verticies
let selectionPolyline = new Polyline(evt.vertices);
// get the gas line layer from the layers in the map using the title
let gasLineLayer = mapView.map.allLayers.find(function(layer) {
return layer.title === GAS_LINE_LAYER_TITLE;
});
let query = new Query({
geometry: selectionPolyline,
spatialRelationship: "intersects"
});
gasLineLayer.queryFeatures(query).then(function(evt){
alert("SUCCESS");
})
}); If I do a simple query with just a where:'1=1', all features are selected, so it must be something in the query definition about the spatialRelationship. Are spatial references this issue perhaps? Help please. TIA!
... View more
05-22-2018
09:29 AM
|
0
|
1
|
2449
|
|
POST
|
I am writing an app that contains a dijit/tree. The tree interacts with map selections such that users select features in the map, the selection gets interrogated and child nodes in the dijit/tree get created and populated. In other words the dijit/tree observes changes to its underlying dojo/store/Memory using dojo/store/Observable (dojo/store/Observable — The Dojo Toolkit - Reference Guide ). The pattern is below: var myStore = new Observable(new Memory({data: someData}));
new ObjectStoreModel({store: myStore, query: {id: 'SomeParentNodes'}});
var myTree= new TreeView({
model: myModel
}, "someNode"); Then, after map selections: array.forEach(selectedFeatureStuff, function(selectedFeatureValue, i){
myTree.model.store.add(selectedFeatureValue); // ADD
}); That's pretty slick, except my dijit/tree will typically have hundreds of child nodes (under 5-10 parent nodes). in this scenario, the addition of each child node takes ~0.5 seconds, which means for hundreds of nodes it takes many minutes to fully hydrate the dijit/tree. Unacceptable. My question is: Is there a way to improve performance here? e.g., turning off Observable just long enough for all the nodes to be created? Or perhaps bulk loading the data store? Or something else entirely. None of the solutions to these options is apparent to me. TIA
... View more
02-14-2018
04:02 PM
|
0
|
0
|
740
|
|
POST
|
DOH! Got it working. Needed to define DateTimeBox: define(['dojo/_base/declare',
'jimu/BaseWidget',
'dijit/form/DateTextBox',
'dijit/_WidgetsInTemplateMixin',
'esri/graphic' ],
function(declare,
BaseWidget,
DateTextBox,
_WidgetsInTemplateMixin,
Graphic) {
//To create a widget, you need to derive from BaseWidget.
return declare([BaseWidget, _WidgetsInTemplateMixin], {
// Custom widget code goes here
... View more
08-01-2017
12:29 PM
|
0
|
1
|
1289
|
|
POST
|
From dijit/form/DateTextBox — The Dojo Toolkit - Reference Guide Uses claro css. In widget.html: <div>
<label for="date1">Drop down Date box:</label>
<input type="text" name="date1" id="date1"
data-dojo-type="dijit/form/DateTextBox"
required="true" />
</div> And in widget.js I've defined dijit/form/DateTextBox. Yet my results are less than pleasing : Any direction and/or clue would be appreciated. TIA
... View more
08-01-2017
08:26 AM
|
1
|
3
|
2480
|
|
POST
|
NM: I needed to set up a Hosting Server on my Portal.
... View more
06-19-2017
11:47 AM
|
0
|
0
|
459
|
|
POST
|
I just completed installation, licensing, etc. of Insights on my site. Now I can launch Insights from my Portal. However, when I click "New workbook", nothing happens. Looking at the debugger I see the following: core-cf34f6bd63.js:6 Error: Create Service exception ' Exception: no protocol: null/admin/services/exists' at Object.E.t.load (js-api.js?1.2.1.0125:249) at dojo.js:66 at d (dojo.js:85) at c (dojo.js:84) at g.Deferred.resolve.callback (dojo.js:86) at d (dojo.js:85) at c (dojo.js:84) at g.Deferred.resolve.callback (dojo.js:86) at dojo.js:70 at k (dojo.js:89) Does anyone recognize this? TIA
... View more
06-19-2017
11:40 AM
|
0
|
1
|
1090
|
|
POST
|
Thank you Aravind: I think I’m a little bit closer. I had our license administrator follow the steps below and he sent me an entitlements file. I imported the entitlements. However, Insights is still not appearing in the apps list. I even went so far as to restart the Portal for ArcGIS service, still no joy. After I import the entitlements, see this: Current entitlements (feature, count): insights, 1 Future entitlements (feature, count): 1. Start date: Wed May 02 18:00:00 MDT 2018 o insights, 0 However when I try to launch Insights I am informed that I don’t have permission to access Insights, even though I am using the admin account that imported the entitlements. I do notice that when I Get Entitlements in the PortalAdmin that I have “Number of pending entitlements: 1”. What does “pending” mean – is this something my local license administrator needs to manage? TIA
... View more
06-16-2017
10:00 AM
|
0
|
2
|
774
|
|
POST
|
My ArcGIS developer entitlements include ArcGIS Server and Portal for ArcGIS. We would like to evaluate Insights for ArcGIS. I've found documentation that says I can import Insights authorization via the Portal administrator. However I cannot find how to get those entitlements from my.esri.com. I can't seem to find anything that say's "This is how you buy Insights" or "This is how you create a developer's instance of Insights" I've to 3 L1 and 2 L2 NUs available to me. Every time I try to launch Insights in the browser I am informed that I do not have permissions to access Insights - even though I am an administrator. When I attempt to share the Insights app with a group, it gives me the impression it was successful sharing the item, yet when I try to share it again, all the share checkboxes have become unchecked. Re: Insights, it it important that we try before we buy... Any insight (ark ark) would be greatly appreciated
... View more
06-15-2017
01:05 PM
|
0
|
4
|
1977
|
|
POST
|
Problem solved: I had the wrong URL for the print service. This works and solves both issues: https://webadaptor.mydomain.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task
... View more
05-16-2017
07:53 AM
|
0
|
0
|
595
|
|
POST
|
Nope. I had the proxy set up correctly, so that's not it. What's interesting/strange - although maybe not related - is that configuring the print widget at this particular site doesn't give me the option to specify the Default Format and the Default Layout. Problem Site: Operational Site:
... View more
05-15-2017
03:32 PM
|
0
|
0
|
595
|
|
POST
|
The pic below shows the issue: I have an app I configured in the WAB that includes a Draw widget and a Print widget. When I draw graphics on the map, then use the Print widget to generate output, the graphics that I drew are not included in the output. I verified that this is not a WAB issue. This example above is from a client site. The example below is hosted at Azure. Note that the graphics are included with the print output. What's up with that?
... View more
05-10-2017
09:44 AM
|
0
|
3
|
952
|
|
POST
|
Greetings fellow travelers! I'm trying write a custom widget that puts a Basemap Gallery in a Dijit Dialog. My debugger tells me the Basemap Gallery is fully hydrated and available, yet my UI tells me otherwise: In HTML: var basemapGalleryInADialog = new BasemapGalleryInADialog({
view:view
});
view.ui.add(basemapGalleryInADialog, "top-left"); The TypeScript widget class: /// <amd-dependency path="esri/core/tsSupport/declareExtendsHelper" name="__extends" />
/// <amd-dependency path="esri/core/tsSupport/decorateHelper" name="__decorate" />
import {aliasOf, subclass, property, declared} from "esri/core/accessorSupport/decorators";
import {accessibleHandler, jsxFactory, renderable, vmEvent} from "esri/widgets/support/widget";
import Widget = require("esri/widgets/Widget");
import MapView = require("esri/views/MapView");
import SceneView = require("esri/views/SceneView");
import BasemapGallery = require("esri/widgets/BasemapGallery");
import Dialog = require("dijit/Dialog");
const CSS = {
base: "esri-home esri-widget-button esri-widget",
text: "esri-icon-font-fallback-text",
basemapIcon: "esri-icon esri-icon-basemap",
loadingIcon: "esri-icon-loading-indicator",
rotatingIcon: "esri-rotating",
disabled: "esri-disabled"
};
@subclass("esri.widgets.Widget")
class BasemapGalleryInADialog extends declared(Widget) {
//--------------------------------------------------------------------------
//
// Lifecycle
//
//--------------------------------------------------------------------------
/**
* @constructor
* @alias module:esri/widgets/Widget
* @extends module:esri/widgets/Widget
* @param {Object} [properties] - See the [properties](#properties-summary) for a list of all the properties
* that may be passed into the constructor.
*/
constructor(params?: any) {
super();
}
//--------------------------------------------------------------------------
//
// Properties
//
//--------------------------------------------------------------------------
//----------------------------------
// view
//----------------------------------
/**
* A reference to the {@link module:esri/views/MapView} or {@link module:esri/views/SceneView}. Set this to link the widget to a specific view.
*
* @type {module:esri/views/MapView | module:esri/views/SceneView}
*
* @name view
* @instance
*/
@property()
@renderable()
view: MapView | SceneView = null;
//--------------------------------------------------------------------------
//
// Public Methods
//
//--------------------------------------------------------------------------
go() {
var basemapGallery = new BasemapGallery({
view: this.view
});
var myDialog = new Dialog({
title: "Basemap Gallery",
content: basemapGallery
});
myDialog.show();
}
render() {
return (
<div bind={this} class={CSS.base}role="button" tabIndex={0} onclick={this._go} onkeydown={this._go}>
<span aria-hidden="true" class={CSS.basemapIcon} title="Basemap Gallery" />
<span class={CSS.text}>Basemap Gallery</span>
</div>
);
}
//--------------------------------------------------------------------------
//
// Private Methods
//
//--------------------------------------------------------------------------
@accessibleHandler()
private _go() {
this.go();
}
}
export = BasemapGalleryInADialog; I'm just messing around with the UX and I thought I'd open this pattern up for discussion, help, etc. TIA
... View more
05-02-2017
09:11 AM
|
0
|
2
|
1056
|
|
POST
|
We have a custom basemap that we serve from our on-premise Portal. It is an image service. The image service uses the same security as our Survey123s. Creating a TPK using the content in the image service creates a package that is over 20GB (and takes a week!) - making offline use of it impractical. Besides, there is full wireless connectivity throughout the study area. What we'd like to do is for Survey123 to consume this basemap as the default map for when users collect their geolocations. Is this possible? Again - not offline, no TPKs.
... View more
04-28-2017
09:13 AM
|
0
|
8
|
2621
|
| Title | Kudos | Posted |
|---|---|---|
| 5 | 11-10-2021 12:27 PM | |
| 1 | 10-02-2019 10:47 AM | |
| 1 | 09-24-2021 08:40 AM | |
| 1 | 09-28-2018 10:16 PM | |
| 1 | 10-09-2015 08:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-05-2023
03:51 AM
|