|
POST
|
This is may be an idiotic question with an obvious answer. Can I execute the query using only one expression? It seems to me that the only way to do this is to set "Both" and set the second query that you don't need to something like "OBJECTID_1 is greater than 0". If you use only one query, you get an error since it expects both expressions to be valid. Thanks.
... View more
02-25-2016
10:23 AM
|
0
|
2
|
2176
|
|
POST
|
Robert, I how do I change the locations of the tools pop ups when you click on a folder? I assume with the above modifications it affected the display location. Thanks.
... View more
02-19-2016
07:57 AM
|
0
|
5
|
2362
|
|
POST
|
Thank you. I ended up moving the "jimu.." above the div and changed the config.json to top:85 because I wanted to add another div for a custom menu under the banner.
... View more
02-18-2016
11:36 AM
|
0
|
0
|
2362
|
|
POST
|
Robert, it works. However, when I enter content in that div, it creates another 50px space under the original div. How can I prevent this? Thank you <div id="main-page">
<div style="width:100%; text-align:left; background-color:#3892D2">
<script>
if ( window.location.href.indexOf("district1/") > -1) {
document.write('<img src="assets/images/banner1.jpg" height="50" />');
} else if ( window.location.href.indexOf("district8/") > -1) {
document.write('<img src="assets/images/banner8.jpg" height="50" />');
} else {
alert("no district image");
}
</script>
</div>
<div id="jimu-layout-manager"></div>
... View more
02-18-2016
09:37 AM
|
0
|
11
|
2362
|
|
POST
|
Is it possible to insert across the page on the top of the lanuchpad theme a div that host among other components, your own menu? I was able to do that in flex by modifying the index.html, but it proves to be more difficult with the js due to the claro class. The primary target for this app is for the desktop user, not the mobile user. Thank you. <body class="claro jimu-main-font">
<div style="height:50px; width:100%; text-align:left; background-color:#3892D2">
<div id="main-loading">
... View more
02-16-2016
02:40 PM
|
0
|
13
|
5214
|
|
POST
|
Thank you Robert. Got one more question. the text in bold states "queries with a where clause or non-extent based spatial queries". The query that I am using has no where clause. If I replace the geometry of the query with an extent to create an extent based query, will that work? var queryExtent = new esri.geometry.Extent(x-tol,y-tol,x+tol,y+tol,evt.mapPoint.spatialReference);
myquery.geometry = queryExtent;
... View more
02-10-2016
07:13 AM
|
0
|
2
|
1568
|
|
POST
|
i use the addshapefile widget to add a widget to the map and then I tried to run a query to capture features of the shapefile that intercept the buffer around a line segment. However I get the message: "FeatureLayer::selectFeatures - query contains one or more unsupported parameters". Can the feature layer from the shapefile be used for query? Thank you. myfeaturelayer is the feature layer from the shapefile created from: arrayUtils.forEach(featureCollection.layers, lang.hitch(this, function (layer) {
var infoTemplate = new InfoTemplate("Details", "${*}");
var featureLayer = new FeatureLayer(layer, {
infoTemplate: infoTemplate
}); Buffer Widget: The resultEvent is the geometry of a line var myquery = new Query();
myquery.geometry = resultEvent;
myquery.returnGeometry = true;
myquery.outFields = ["*"];
myquery.outSpatialReference = this.map.spatialReference;
myquery.spatialRelationship = Query.SPATIAL_REL_INTERSECTS;
this.myfeatureLayer.selectFeatures(myquery,FeatureLayer.SELECTION_NEW);
... View more
02-09-2016
09:57 PM
|
0
|
4
|
3230
|
|
DOC
|
Thanks. Meanwhile, I went ahead to modify the code as a temporary measure until you apply this enhancement. I needed to change the widget, so this version adds only the operational layers ignoring the config.json of the widget. All the fields from each operational layer are included. It seems to be working as intended for all the feature layers that are on the map, however, the popup window of the results is very small. Do you have any suggestion of how to address this issue? Thanks. http://ekoumis.net/widget.zip
... View more
02-02-2016
11:42 AM
|
0
|
0
|
15918
|
|
DOC
|
Is it possible the widget to list the operational layers by default to search? It would save a lot of time if you have to create multiple maps with different layers. Thanks.
... View more
01-26-2016
03:43 PM
|
0
|
0
|
15918
|
|
POST
|
Robert, I finally figured it out. As I was suspecting, the issue was with the attribute tables not refreshing after the first buffer. All the variables were initialized after removing a buffer, but still the attribute table would not show the new buffer layer. The solution was to force the attribute table to refresh by using the attribute table's function destroy instead of closing it. After that, the buffer layers appear on the attribute table after the first query. closetable:function(){
var widgetCfg = this._getWidgetConfig('AttributeTable');
//console.log(widgetCfg);
if (this.wManager) {
var widgetCfg = this._getWidgetConfig('AttributeTable');
if(widgetCfg){
var attWidget = this.wManager.getWidgetByLabel(widgetCfg.label);
this.attTableOpenedbySearch = !attWidget.showing;
this.wManager.closeWidget(attWidget);
//attWidget._closeTable();
attWidget.destroy();
}
}
},
... View more
01-14-2016
09:41 AM
|
0
|
1
|
1698
|
|
POST
|
Thank you Robert. My variables are indeed global and they are initialized as well. When the user remove the buffer layer, it calls a destroy function that initialize all the variables (featurelayers). I placed breakpoints at several locations to verify that the variables are null before the user calls another buffer. I looked in the esearch code, and it seems that I have a different approach. When features of a layer are found in the buffer, are added to a new feature layer with the name of layer name + " Buffer". When the buffer is removed, I search through the layers on the map that contain the "Buffer" in their name property and remove them. In esearch, it seems that all operational layers are defined from the results of the buffer and they are all removed prior the new query. I have do some more head scratching to figure out what is wrong with my approach. Thank you again for your time.
... View more
01-13-2016
08:57 AM
|
0
|
0
|
1698
|
|
POST
|
I don't understand. So, how is the new buffer layer shows up in the layer list and the attribute table when I select the option from the list, if I didn't destroy the old one?
... View more
01-12-2016
03:31 PM
|
0
|
4
|
1698
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-09-2026 12:44 PM | |
| 1 | 06-08-2026 12:12 PM | |
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|