|
POST
|
Robert Scheitlin, GISP has created the eSearch widget. It has URL parameters. With this ability I can generate a URL that allows my clients / customers to visit a webmap that is cued up to exactly what I want them to see. Except I need to offer them a 'current year' URL and that wasn't an option with eSearch "out-of-the-box" so after working with Robert I was able to introduce some modified code that gave me what I wanted. //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);
}
if(myObject.esearch === "curyear"){
var today = new Date();
today.setDate(1);
var thisYearStr = this._formatDate(today.getTime(), 'yyyy');
myObject.esearch = this._formatDate(Date(thisYearStr), 'yyyy');
console.info(myObject.esearch);
}
if(this.config.layers[myObject.slayer].expressions.expression.length > 0){
var valuesObj1 = lang.clone(this.config.layers[myObject.slayer].expressions.expression[myObject.exprnum].values.value);
var values = myObject.esearch.split("|");
array.forEach(values, lang.hitch(this, function(val, index){
if (val.indexOf('~') > -1){
var ranges = val.split("~");
valuesObj1[index].valueObj.value1 = ranges[0];
valuesObj1[index].valueObj.value2 = ranges[1];
}else{
valuesObj1[index].valueObj.value = val;
}
}));
html.empty(this.textsearchlabel);
html.place(html.toDom(this.config.layers[myObject.slayer].expressions.expression[myObject.exprnum].textsearchlabel), this.textsearchlabel);
this.paramsDijit.build(valuesObj1, this.resultLayers[myObject.slayer], this.config.layers[myObject.slayer].url,
this.config.layers[myObject.slayer].definitionexpression);
this.selectLayerAttribute.set('value', myObject.slayer);
on.once(this.paramsDijit, 'param-ready', lang.hitch(this, function () {
this._queryFromURL(myObject.esearch, myObject.slayer, myObject.exprnum, myObject.close || false);
}));
} This adds a 'Current Month' (curmonth) option and a 'Current Year' (curyear) option to the URL Parameters. However, it just stopped working and I wonder if anyone has any ideas? The map can be viewed at the custom URL: City of Tulsa, Tulsa Police Department, Methlabs Web Map This map is in our sandbox area so it won't be there once I get this figured out. But for now, I'm getting zilch returns on the custom URL.
... View more
10-14-2016
09:47 AM
|
0
|
3
|
1783
|
|
POST
|
Would anyone be willing to help me walk through the steps necessary to develop my first widget? I believe it would be a simple one. I want to take the following JSAPI functionality and make it into a widget. Buffer a point | ArcGIS API for JavaScript 3.18 I'm envisioning a CREATE BUFFER POINTS button. You click it, then click on the map, then I want the user to be able to print the map with the buffers created. That is all I want... I'm an experienced JS developer, just out of practice and unfamiliar with Dojo. I really just need to know where and what calls and callbacks and function naming conventions to use as well as packaging guidance. Thanks in advance
... View more
10-13-2016
08:48 AM
|
1
|
13
|
4749
|
|
POST
|
So we have an INTERNAL ONLY server where we store maps that are only accessible if you are on our local network. All of our maps are developed through the Web App Builder process... Data compiled, configured, stored and shared as a REST Service from our Enterprise Database Server. AGOL Map developed with Layers and Popups configured WAB App developed, widgets configured, app downloaded App placed on server, unzipped, accessed via Folder name : http://internalservername/appname So far this is all we have needed. However, we have started to have a decent number of internal only maps that our internal users are constantly cross asking about (i.e., Department X asks about map capabilties already developed and deployed in Map B) and we are passing URL's back and forth so we decided it was time to configure a Map Gallery for our Internal Only Maps. In AGOL we configured an Internal Maps Only group. We shared an AGOL (currently private) map with this group and one that was public. At this point the public map shows up but not the private. We noticed that if we signed in, then it works perfectly. This Internal Map Gallery is supposed to be for INTERNAL USERS who may (or may not) have AGOL accounts. So we need this app to work regardless of who is accessing it because ONLY Internal users can even see it. This is what we see when we visit this map. But if we login, we see the following: I can't require users to login. Most users have no clue what AGOL even is. What do I need to do.
... View more
10-12-2016
10:15 AM
|
0
|
3
|
1565
|
|
POST
|
Brownfield land - Wikipedia, the free encyclopedia We are embarking on a project that will track and monitor brownsfields and I'm assuming that the LGM is already equipped to handle this... does anyone have any knowledge that would help direct me to the relevant areas?
... View more
10-11-2016
06:44 AM
|
0
|
1
|
1391
|
|
POST
|
Ahhhh... I'm having a similar issue and hitting dead ends... thanks man.
... View more
10-04-2016
09:09 AM
|
0
|
1
|
7882
|
|
POST
|
Where did this line of code GO...? In the web.config? In the Web App Builder? I'm lost...
... View more
10-04-2016
08:58 AM
|
0
|
3
|
7882
|
|
POST
|
So we've been using the server name for our internal maps as the URL to reach them. http://servername/mapname/?parameters Well, our server team is rolling out some security measures and needs us to use a domain name instead. SO... we are using a domain name and I'm starting to have issues just replacing the old urls with the the domain name. I'm wondering if anyone knows what I need to do to correct this? Do I need to go back and rebuild the AGOL maps piecemeal using the new URL's for the rest services? I've already modified the DotNet proxies to include the new domain, I've gotten a couple of maps to load... but not all... I'm getting errors like this: XMLHttpRequest cannot load http://<servername>/DotNet/proxy.ashx?http://cityoftulsa.maps.arcgis.com/sharing/rest/portals/self?f=json&dojo.preventCache=1475591315961. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://<domain-name>' is therefore not allowed access. Help?
... View more
10-04-2016
07:48 AM
|
0
|
0
|
749
|
|
POST
|
You do realize that's just because you loaded it in your magical browser... right? (lol... thanks, yeah... it acts like it doesn't remember giving me FAILED messages all day... ugh)
... View more
10-04-2016
07:31 AM
|
0
|
0
|
784
|
|
POST
|
http://maps.cityoftulsa.org/sandbox/methlabs/?esearch=curyear&slayer=0&exprnum=0 http://maps.cityoftulsa.org/sandbox/crimes/?esearch=curmonth&slayer=0&exprnum=0 http://maps.cityoftulsa.org/sandbox/collisions/?esearch=curmonth&slayer=0&exprnum=0 I have these three maps ALMOST ready to move out of our sandbox area. My problem is... With no records in the database (as of today, the first of the month) I am getting ERRORS from eSearch. Is there anyway to have it fail with "No Records Available" instead of "SEARCH FAILED!" It looks like the map has an error or a glitch... I'm going to get some serious feedback from our police department on that note... Any ideas? rscheitlin
... View more
10-03-2016
07:10 AM
|
0
|
2
|
1512
|
|
POST
|
If I setup an account on our ArcGIS for Server for consultants to login and download plans, is there any way to track the download by that account I setup?
... View more
09-22-2016
02:05 PM
|
0
|
1
|
522
|
|
POST
|
Does anyone have any idea how you upgrade a request like this to a service ticket with ESRI? This is a serious glitch with a production system. It replicates across any of our computers here. You cannot edit those feature layers except randomly. You can click 'Configure Popup' a hundred times and it will suddenly work once out of too many... HELP!
... View more
09-02-2016
09:35 AM
|
0
|
2
|
4775
|
|
POST
|
No sir. Still just "Configure Popup" > CLICK > Nothing
... View more
09-01-2016
01:16 PM
|
0
|
0
|
4775
|
|
POST
|
To confuse the issue even further... If I go into Incognito mode, it works but only on my supervisors computer / account. Otherwise, none of my co-workers can edit... I can't edit... except randomly... and then the configure option goes away immediately afterwards.
... View more
09-01-2016
12:01 PM
|
0
|
2
|
4775
|
|
POST
|
I have a map on AGOL that we have created a Web Map for via WAB. It's been in production, on an internal server (so no, I can't share the url), for a few months now. I got a service ticket today to add the OBJECTID to all popups for all feature classes. Please don't tell me why this is a bad idea, I already know. Mine is not to question why, Mine is just to eat the pie. SO ANYWAY, I am on AGOL configuring the pop-ups when 8 layers in clicking on CONFIGURE POP-UP for a layer does nothing. Not a thing. I try to click on other CONFIGURE POP-UP for other layers... nothing. I try to do this for layers I've already added OBJECTID... nothing. I can click on the map and see my brand new popup configurations and there is the OBJECTID... but I cannot change it anymore. On any layer. I have rebooted even thinking it might be a weird browser issue... nothing. No more editing the pop-ups... Here is a quick screencast showing my frustration... ArcGIS Online Popups Not Configurable Suddenly - YouTube Any ideas?
... View more
09-01-2016
11:22 AM
|
3
|
26
|
15092
|
|
POST
|
Bummer. I was hoping it was a simple fix. I haven't had time to familiarize myself yet with the Dojo system. I'll have to go another route. Thank you anyway rscheitlin
... View more
08-26-2016
10:56 AM
|
0
|
0
|
630
|
| 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
|