|
POST
|
Hello Chad. I modified the edraw widget so when you right-click on a drawn line or point you get to choose out of a list of layers to query in within the user selected buffer distance from the drawn line/point. The results of the buffer are shown in the AT. Is that what you're looking for?
... View more
11-08-2016
08:27 AM
|
0
|
4
|
2724
|
|
DOC
|
The modified save session widget is posted at: https://community.esri.com/docs/DOC-8914-savesessionzip
... View more
11-07-2016
08:49 AM
|
0
|
0
|
33954
|
|
DOC
|
This is a modified save session widget to save session as a local file. IE prompts user where to save file and Chrome saves it in the download folder.
... View more
11-07-2016
08:48 AM
|
1
|
3
|
2736
|
|
DOC
|
PM with your email. Yes it does in Chrome. It will save it in the download folder. IE will prompt you where you want to save it.
... View more
11-04-2016
01:10 PM
|
0
|
0
|
33954
|
|
DOC
|
Based on the suggestions of my customers who wanted a simple way to save the session to a local file, I removed all the actions, except the save to a file and load from a file. If you wish, I can send you the modified widget in a zip file.
... View more
11-04-2016
12:21 PM
|
0
|
0
|
33954
|
|
DOC
|
I created a button "Save to Local File" and this is the function shown below associated with the click. It uses the session name as the file name and each browser act different. Chrome saves it in the download folder but IE prompts the user to select destination folder. I think Robert Scheitlin used this code in another widget and I thought it would be handy here. onSaveButtonClicked: function () {
console.log('SaveSession :: onSaveButtonClicked :: begin');
var session,
sessionName = "";
sessionName = this.sessionNameTextBox.get("value");
if (!sessionName || sessionName==="") {
alert("Please enter a name");
session="";
this.sessions=[];
return}
else {
session = this.getSettingsForCurrentMap();
session.name = sessionName;
this.sessions=[];
this.sessions.push(session);
var sessionString = JSON.stringify(this.sessions);
var blob = new Blob([sessionString], {type: "application/json"});
var url = URL.createObjectURL(blob);
var a = document.getElementById("content");
var thefileName = sessionName + ".json";
if (a.download !== undefined) { //feature detection)
var att = document.createAttribute("download");
att.value= thefileName;
a.setAttributeNode(att);
var att2 = document.createAttribute("href");
att2.value=url;
a.setAttributeNode(att2);
}
else {
a.setAttribute("href", url);
a.addEventListener("click", function(event) {
navigator.msSaveBlob(blob, thefileName);
}, false);
}
}
}
... View more
11-03-2016
11:43 AM
|
0
|
0
|
33954
|
|
DOC
|
I would send the code to you, when I figure out how to attach a file....
... View more
11-02-2016
02:15 PM
|
1
|
0
|
33954
|
|
POST
|
Thank you. However, it seems that the use of the above urls for the google maps violate the terms of use with Google. For the users who have a license how do they specify their license key or clientID?
... View more
10-12-2016
01:29 PM
|
0
|
0
|
1556
|
|
POST
|
Wow. Thank you Panayioti. I was not aware of this. For the rest of you reading this post, I found this discussion very helpful: Google Maps Tile URL for HYBRID mapType tiles? - Stack Overflow
... View more
10-11-2016
08:50 AM
|
0
|
1
|
6290
|
|
POST
|
Hello Matt. I'd like to add the google basemap on arcgis js apps. Did you get it working? I have a license for google maps. Thanks.
... View more
10-10-2016
04:02 PM
|
0
|
0
|
6290
|
|
POST
|
I wrote this script some time ago when there was no url query widget. However, this approach is very useful dynamic apps. So, when you have the user to make choices by selecting variables in drop down boxes or typing something in a textbox. Then, you grab those variables and on the fly you create a url where you append these selected variable and you call the url using a custom config file. Bear in mind that based on the selections you can also in script can specify with config.json file to use. All that can happen behind the scenes after the user make their selections on a webpage and produce a customized map.
... View more
09-23-2016
08:48 AM
|
0
|
0
|
2789
|
|
POST
|
No. I am referring to a real time. For example you have a url like this http://(server)/myapp/index.html?config=my_config.json?county=SLO&route=1 Then have widget that starts up when your app opens and in that widget under the startup function read the url parameter and perform any actions you want similar to this: urlSubstring = location.search.substring(1); //console.log(urlSubstring); if(urlSubstring.indexOf("?")>0){ var myparams1 = urlSubstring.split('?'); urlSubstring = myparams1[1]; } ------ -------
... View more
09-23-2016
08:30 AM
|
0
|
2
|
2789
|
|
POST
|
I have this very strange behavior and can't find what's wrong. I use the developer's web appbuilder 2.1. I copied the localayer 2.0 in the widget directory of an existing application and I added: { "uri": "widgets/LocalLayer/Widget", "name": "Local Layer", "visible": "true" }, Once I refresh the map, the basemap changes from the selected "Streets" basemap to the National GeographicMap basemap. If I remove the locallayer widget entry from config.json, it restores the Streets basemap!! Suggestions? Thanks.
... View more
09-15-2016
01:56 PM
|
0
|
1
|
1723
|
|
POST
|
Thanks. So, if the widget is already openAtStart (true) and not visible, I can use this method to call an instance of the widget and execute the filter operation based on the custom_Filter? require(["jimu/WidgetManager"], function(WidgetManager) { var wm = WidgetManager.openWidget("Filter"); });
... View more
08-29-2016
10:03 AM
|
0
|
1
|
1825
|
|
POST
|
Thank you Robert. It works. However, since I am using tens of custom config.json files that are called in the url, ideally I would like to use something like the FilterManager.getInstance() (no sql statement) in AT (for example) and let the custom config.json call the custom config_Filter.json for the SQL expression (as it is already set up). Can it be done? Thanks.
... View more
08-24-2016
03:15 PM
|
0
|
3
|
1825
|
| 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 |
3 weeks ago
|