|
POST
|
I also unfortunately misspelled 'copyright' in the post title. . . geez
... View more
08-22-2016
01:06 PM
|
0
|
5
|
2684
|
|
POST
|
Hi - I know this info has been posted up before but I just can't find it. Does anyone recall where to disable copyright text? Would it be here in the Print.js: var hasCopyrightText = lang.getObject(
'layoutOptions.hasCopyrightText', false, templateInfo);
if (!hasCopyrightText) {
html.setStyle(this.copyrightTr, 'display', 'none');
} else {
html.setStyle(this.copyrightTr, 'display', '');
} ? Thanks- David
... View more
08-22-2016
10:29 AM
|
0
|
8
|
3649
|
|
POST
|
Ok John thanks, that wasn't clear to me. I'll definently need to use this method elswhere, but not here. So at this point I'm going to leave this alone for until 'selectFeatures' functionality is restored hopefully at 4.1. There is other functionality I need (layer list, routing. print), plus the popup needs to be able to read domain descriptions and there is more work with it's paging functionality.
... View more
08-22-2016
09:30 AM
|
0
|
0
|
3229
|
|
POST
|
The feature layers have a defined template, but I am not creating a FeatureSet from the graphics.
... View more
08-19-2016
01:44 PM
|
0
|
2
|
3229
|
|
POST
|
Hi John, that's interesting. I tried it and do see a popup but it still can't access the content. I also tried app.activeView.popup.open({
features: mobResult.attributes,
location: qPoint
}); and the popup briefly displayed a Project title, but it's unstable - i.e. project title attribute only appeared once in the title
... View more
08-19-2016
10:42 AM
|
0
|
4
|
3229
|
|
DOC
|
Hi Robert, I've just stood up my own profile service and it appears that what the widget is returning are the 'stretch' values from my DEM, rather than the pixel values. The DEM is a float raster dataset, in local state plane harn with z units in feet. I adjusted for resolution and measures in the python prior to publication. I can't seem to find it in the documentation, but do know if the DEM needs to be an integer grid? Thanks, David
... View more
08-19-2016
06:27 AM
|
0
|
0
|
17545
|
|
POST
|
Thanks Robert, what I can see now is that queryFeatures wants to work against graphics, not features. If I had done a little more homework by going to the 3.x-4.x functionality matrix Functionality matrix | ArcGIS API for JavaScript 4.0 I would have seen that a selectFeatures method for a feature layer (like I'm doing in 3.x) isn't ready yet. So in my workflow I'm not interested in setting up a template on the graphic as I'd just have to re-write my returns anyway Thanks- David
... View more
08-18-2016
10:17 AM
|
1
|
0
|
3229
|
|
POST
|
Oh now I can see that. I'll see what I can do . . .
... View more
08-18-2016
10:03 AM
|
0
|
1
|
3229
|
|
POST
|
Hello - in continuing 3.x - 4.x functionality migraiton I'm running into some problems getting the popup to display query return results. We (mstranovsky) have a setup sort of like a near me, where we're returning a an intersect based on the search select-result event. In 3.x it's really straight-forward: s.on("select-result", showResults);
function showResults(evt) {
mapMain.graphics.clear();
if (evt.source.name == "Search by Address" || evt.source.name == "Search by Street") { //s.activeSource.name
console.log(evt.source.name);
qPoint = evt.result.feature.geometry;
buffer = geometryEngine.geodesicBuffer(qPoint, [1], 9035, true);
//console.log(qPoint); //console.log(buffer);
var symbol = new SimpleFillSymbol();
symbol.setColor(new Color([100,100,100,0.15]));
symbol.setOutline(null);
var graphicPoly = new Graphic(buffer, symbol);
mapMain.graphics.add(graphicPoly); //geometry
var queryTran = new Query;
queryTran.geometry = buffer;
var tranQuery = lyrMobBnds.selectFeatures(queryTran, FeatureLayer.SELECTION_NEW);
myPopup.setFeatures([tranQuery]);
myPopup.show(qPoint); //buffer
} always worked really well, pass the event point into the geometry engine, buffer it, pass that geom to the query, select the feautures, pass and show the popup. For 4.x, here's what I'm doing: app.search.on("select-result", showResults);
function showResults(evt) {
app.activeView.graphics.clear;
if (evt.source.name == "Search by Address" || evt.source.name == "Search by Street") { //s.activeSource.name
console.log(evt.source.name);
qPoint = evt.result.feature.geometry;
buffer = geometryEngine.geodesicBuffer(qPoint, [1], 9035, true);
//console.log(qPoint); //console.log(buffer);
var symbol = new SimpleFillSymbol({
color: [100,100,100,0.15],
style: "solid",
outline: { // autocasts as esri/symbols/SimpleLineSymbol
color: "white",
width: 0
}
});
var graphicPoly = new Graphic(buffer, symbol);
app.activeView.graphics.add(graphicPoly); //geometry
var queryTran = new Query;
queryTran.geometry = buffer;
var tranQuery = lyrMobBnds.queryFeatures(queryTran).then(function(mobResult) { //, FeatureLayer.SELECTION_NEW);
console.log(mobResult);
app.activeView.popup.open({
features: [mobResult],
location: qPoint//result.geometry.centroid
});
}); consol.log are clearly showing a result, but I cannot get the result to open in the poup. I keep getting a type error: "TypeError: this.selectedFeature.getEffectivePopupTemplate is not a function" I am not entirely certain I have my query setup correctly, but since the console log is showing the selectedFeature. Any insight is appreciated- Thanks David
... View more
08-18-2016
08:57 AM
|
0
|
10
|
5154
|
|
POST
|
Hi ZeZheng, yes this fix works well, thanks for your help. I applied changes to both stemapp and my deployment's AT widget.js files. Note that my code index line numbers are slightly different than yours: I'll let support know as well that I have applied the fix to dev and that the fix is planned for online David
... View more
08-16-2016
03:00 PM
|
1
|
1
|
1476
|
|
POST
|
Interesting aside - in adopting CalciteMaps 4.0 I am noticing that scene views do seem to handle multiple features . ..
... View more
08-16-2016
10:49 AM
|
0
|
0
|
2128
|
|
POST
|
Hi - In exploring how to best work with the Add Data widget, I've noticed 2 issues: Labels: for a feaure service, webmap confgured labels do not seem to load when added. For example I have a zoning layer in a planning data wab that has labels configured. The labels do not come over as part of the service when I add to another wab. Popups: for an image service, the configured popup does not display, only the REST folder/servicename is shown in the popup. For example, I have a high-resolution local DEM with configured and enabled popup, but it will not display either the {Raster.ServicePixelValue} or {Raster.ServicePixelValue.Raw} values. I'm guessing these are issues that would have to be resolved in the next release, just wondering if anyone else has encountered them. Thanks David
... View more
08-12-2016
11:24 AM
|
0
|
16
|
7911
|
|
DOC
|
Hi Yoav - if you set your poly and point layers of interest as spatial selection layers in the eSearch you will be able to select a poly by attribute or by graphic and then use that selection to select your other layers. David
... View more
08-12-2016
09:40 AM
|
0
|
0
|
16162
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-01-2026 05:41 AM | |
| 1 | 06-26-2026 12:39 PM | |
| 6 | 06-25-2026 07:23 AM | |
| 1 | 06-17-2026 06:04 AM | |
| 1 | 06-08-2026 08:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|