|
POST
|
Do you mean in the Widget.js somewhere or through the Widget Interface?
... View more
05-25-2016
12:35 PM
|
0
|
1
|
2064
|
|
POST
|
Ok. I updated everything, made the adjustments, and here is what I am getting. init.js:199 TypeError: Cannot read property 'expressions' of undefined(…) "TypeError: Cannot read property 'expressions' of undefined
at .<anonymous> (http://maps.cityoftulsa.org/sandbox/crimes/widgets/eSearch/Widget.js:966:53)
at http://js.arcgis.com/3.16/init.js:167:296
at k (http://js.arcgis.com/3.16/init.js:189:431)
at q (http://js.arcgis.com/3.16/init.js:189:357)
at resolve (http://js.arcgis.com/3.16/init.js:191:441)
at http://js.arcgis.com/3.16/init.js:949:56
at k (http://js.arcgis.com/3.16/init.js:189:431)
at q (http://js.arcgis.com/3.16/init.js:189:357)
at resolve (http://js.arcgis.com/3.16/init.js:191:441)
at k (http://js.arcgis.com/3.16/init.js:189:431)
----------------------------------------
rejected at a (http://js.arcgis.com/3.16/init.js:190:337)
at k (http://js.arcgis.com/3.16/init.js:190:89)
at q (http://js.arcgis.com/3.16/init.js:189:357)
at resolve (http://js.arcgis.com/3.16/init.js:191:441)
at http://js.arcgis.com/3.16/init.js:949:56
at k (http://js.arcgis.com/3.16/init.js:189:431)
at q (http://js.arcgis.com/3.16/init.js:189:357)
at resolve (http://js.arcgis.com/3.16/init.js:191:441)
at k (http://js.arcgis.com/3.16/init.js:189:431)
at q (http://js.arcgis.com/3.16/init.js:189:357)
----------------------------------------
Error
at then.b.then (http://js.arcgis.com/3.16/init.js:192:253)
at declare._initLayerSelect (http://maps.cityoftulsa.org/sandbox/crimes/widgets/eSearch/Widget.js:894:21)
at declare.postCreate (http://maps.cityoftulsa.org/sandbox/crimes/widgets/eSearch/Widget.js:156:14)
at h.create (http://js.arcgis.com/3.16/init.js:1281:207)
at h.postscript (http://js.arcgis.com/3.16/init.js:1279:464)
at new <anonymous> (http://js.arcgis.com/3.16/init.js:98:192)
at declare.createWidget (http://maps.cityoftulsa.org/sandbox/crimes/jimu.js/WidgetManager.js:294:20)
at .<anonymous> (http://maps.cityoftulsa.org/sandbox/crimes/jimu.js/WidgetManager.js:113:39)
at http://js.arcgis.com/3.16/init.js:167:296
at k (http://js.arcgis.com/3.16/init.js:189:431)" I'm kinda lost. lol Here is the URL to the actual map: ArcGIS Web Application Just in case that helps.
... View more
05-25-2016
10:40 AM
|
0
|
1
|
2064
|
|
POST
|
Ok... I'm getting a weird error... Here is my code: //now check if there is a url search to do
var myObject = this.getUrlParams();
if (myObject.esearch) {
if (myObject.esearch === "curMonth") {
var today = new Date();
today.setDate(1);
var thisMonthStr = this._formatDate(today.getTime(), 'yyyy/MM/dd');
myObject.esearch = thisMonthStr + "~" + this._formatDate(new Date().getTime(), 'yyyy/MM/dd');
console.info(myObject.esearch);
} else {
this._queryFromURL(myObject.esearch, myObject.slayer, myObject.exprnum, myObject.close || false);
this.publishData({
message : myObject.slayer
});
}
else {
//init the first available layers paramsDijit
var aIndex = options[0].value;
//console.info(options[0].label);
this.AttributeLayerIndex = aIndex;
this._initSelectedLayerExpressions();
var valuesObj = lang.clone(this.config.layers[aIndex].expressions.expression[0].values.value);
this.paramsDijit.build(valuesObj, this.resultLayers[aIndex], this.config.layers[aIndex].url, this.config.layers[aIndex].definitionexpression);
if (this.config.layers[aIndex].sumfield) {
html.addClass(this.list.domNode, 'sum');
html.setStyle(this.divSum, 'display', '');
} else {
html.removeClass(this.list.domNode, 'sum');
html.setStyle(this.divSum, 'display', 'none');
}
}
} Can you see anything wrong with this? It's buggin.
... View more
05-25-2016
06:52 AM
|
0
|
3
|
2064
|
|
POST
|
Anyone reaching the Crime map will come from a URL provided by the City. So if I have my URL like so: http://point.to.map.com/?esearch=parameters-that-equal-current-month then I can setup our Map Gallery or the provided links so that they all point to the URL parameter version. This allows me to have the map load and show all data relevant to just the current month (regardless of which month) and then I can have a SINGLE rest service rather than REST Service 1 = Current Year / REST Service 2 = Current Month. This allows me to (also) have the data onscreen disappear the instant a new search is generated. I have police officers testing this map that don't understand why the dots stay on the screen after a search. AND they will turn on the Current Year layer and wonder why some dots are overlapping. I am going to extrapolate that citizens will be equally confused. The eSearch with it's URL parameter allows me a map that loads showing JUST the data I want. AND it's data that disappears at the first search. If there was a way to "easily" trigger disabling a Layer on a map upon search, that would be just as good. I hope this makes sense.
... View more
05-24-2016
11:07 AM
|
0
|
5
|
2064
|
|
POST
|
Using the eSearch widget by Robert Scheitlin, GISP I am wondering if anyone has come up with a method, through the URL Parameters, to generate a query that would show the 'Current' Day/Month/Year. I am developing a Crimes map, and it needs to load with the current Month's crimes (not the last 30 days, altho if that's an option I'm open to that as well). If there is any option to make this happen I would love to hear it.
... View more
05-24-2016
08:30 AM
|
0
|
10
|
4172
|
|
POST
|
Yeah, I want the exact same URL parameters to be the same everytime. HOWEVER, the reason I worded my question the way I did was because I could see a reason to have a changing URL. Such as... Collisions Map. Set up the URL generator to create a new eSearch parameterized URL for the PREVIOUS days collisions. Then every visitor is INITIALLY greeted by yesterdays crashes. In MY instance RIGHT NOW I'm building a Methlabs map. I don't want to populate the screen with Methlabs because (good lord Oklahoma has TOO many!) but I don't want to create a layer of JUST 2016 Methlabs. So by turning Methlabs off by default, using the URL parameters to auto-search the 2016 Methlabs, I get the map I want... EXCEPT I can't figure out how to auto-insert the URL Parameters for (at least) the first visit to the Web Map.
... View more
05-19-2016
10:28 AM
|
0
|
1
|
973
|
|
POST
|
So I have a web map that does EXACTLY what I want it to do... EXCEPT... The Map needs to load with the URL Parameters for the eSearch Widget that I added. ( shoutout to Robert Scheitlin, GISP ) What is the best way to setup the webmap so that it reloads itself WITH the URL Parameters? I NEED the search to be the first thing users see. This allows me to have the web map just like we need it.
... View more
05-19-2016
08:47 AM
|
0
|
3
|
4016
|
|
DOC
|
Figures. I'm on Launchpad. Thanks Robert Scheitlin, GISP
... View more
05-16-2016
02:27 PM
|
0
|
0
|
8133
|
|
DOC
|
Robert Scheitlin, GISP if you select the eSearch widget to open automatically, is there a way (through config) to set position and size?
... View more
05-16-2016
10:40 AM
|
0
|
0
|
8133
|
|
POST
|
Found it! In stemapp/config.json I made a change to the "geometryService" to try to default it to ours. So on line 18 where it says the following: "isWebTier": false,
"geometryService": "http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer",
"links": [{
"label": "ArcGIS Online",
"url": "//www.arcgis.com"
}], I changed it to look like this:
"isWebTier": false,
// "geometryService": "http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer",
"geometryService": "http://maps.cityoftulsa.org/gis/rest/services/Utilities/Geometry/GeometryServer ",
"links": [{
"label": "ArcGIS Online",
"url": "//www.arcgis.com"
}], So once I changed it back I had no issues. I wish there was some location OUTSIDE of the general directory where I could place a settings file and it would AUTO-include those settings for all WAB's even after updates.
... View more
05-12-2016
08:28 AM
|
0
|
0
|
1638
|
|
POST
|
This is just the window I get when I load the WAB. Not a specific app.
... View more
05-12-2016
07:40 AM
|
0
|
0
|
1638
|
|
POST
|
I'm doing a Methlabs WAB-built map. My MXD has layers that look like this: This symbol has the following settings: But the Web Map in AGOL and WAB both look like this: Here is the REST Service: JSAPI/tpd_Methlabs (MapServer) Anyone have any ideas?
... View more
05-11-2016
11:03 AM
|
0
|
1
|
1844
|
|
POST
|
At first I thought it was because of cache. But I've cleared it excessively... still happens.
... View more
05-11-2016
07:49 AM
|
0
|
1
|
1381
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2015 08:51 AM | |
| 1 | 06-02-2016 02:00 PM | |
| 1 | 10-09-2015 07:43 AM | |
| 1 | 10-09-2015 09:42 AM | |
| 1 | 02-09-2016 07:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|