|
POST
|
Miri, Will you post the code you changed/added to get it to work? I think it would be very helpful to have this available so others dont have to try and redo what you are doing. Thanks.
... View more
02-02-2015
06:33 AM
|
0
|
0
|
763
|
|
POST
|
The Geocoder URL here needs a Geocoding service not a map service. You need to create a locator based on the POI with the single line style and then share that as a service. Then you can take that URL and add it to the Geocoder widget in WAB.
... View more
01-22-2015
07:52 AM
|
2
|
1
|
745
|
|
POST
|
I find that by clearing the browser cache, I get the updated code. I clear mine very often when making changes. Clearing the cache it tells the browser to go and get the js files again and not look at the ones stored in the browser. I believe you can run your browser in incognito mode and it does not keep those files cached, but i have not gone down that road yet.
... View more
01-20-2015
07:45 AM
|
0
|
0
|
5628
|
|
POST
|
Larry, A custom logo would reside in the mxd of the print template. There is no coding needed. Create a template with the logo on it then add the mxd to the location where your print templates are for your arcgis server. You need to make sure the WAB is pointing to the right print service. Once that is done the template should show up in the drop down box in the widget for you to choose to print with that template. Here is a tutorial: ArcGIS Help 10.1
... View more
01-12-2015
04:20 PM
|
0
|
2
|
2593
|
|
POST
|
For those who want to change the default printing DPI for your WAB print widget I have found the spot. This is for the Developers version in \widgets\Print\templates\Print.html line 143 change the value:300 to the desired dpi value <input type="text" data-dojo-type="dijit/form/NumberTextBox" data-dojo-props="name:'dpi',required:true,value:300,style:'width:100px;'"
... View more
01-12-2015
04:02 PM
|
0
|
0
|
4176
|
|
POST
|
Looks like both options are good. The reason I did it in the \jimu.js\dijit\DrawBox.js file is because that is where the clickEventHandler and clickEvent Listener are for the draw tool. To use the code block you need to use the advanced editor.
... View more
01-12-2015
02:20 PM
|
0
|
0
|
2021
|
|
POST
|
OK I did some more digging and found the place to fix the draw widget. \jimu.js\dijit\DrawBox.js around line 165 Comment out this.enableWebMapPopup(); and add in this.map.setInfoWindowOnClick(true); deactivate:function(){
//this.enableWebMapPopup();
this.map.setInfoWindowOnClick(true); //Added this
if(this.drawToolBar){
this.drawToolBar.deactivate();
}
query('.draw-item',this.domNode).removeClass('selected');
}, around line 245 Comment out this.disableWebMapPopup(); and add in this.map.setInfoWindowOnClick(false); _onItemClick:function(event){
var target = event.target||event.srcElement;
var items = query('.draw-item',this.domNode);
items.removeClass('selected');
html.addClass(target,'selected');
var geotype = target.getAttribute('data-geotype');
var commontype = target.getAttribute('data-commontype');
var tool = Draw[geotype];
//this.disableWebMapPopup();
this.map.setInfoWindowOnClick(false); // added this
this.drawToolBar.activate(tool);
this.onIconSelected(target,geotype,commontype);
},
... View more
01-12-2015
01:09 PM
|
0
|
0
|
2261
|
|
POST
|
OK I did some more digging and found the place to fix the draw widget. \jimu.js\dijit\DrawBox.js around line 165 Comment out this.enableWebMapPopup(); and add in this.map.setInfoWindowOnClick(true); deactivate:function(){
//this.enableWebMapPopup();
this.map.setInfoWindowOnClick(true); //Added this
if(this.drawToolBar){
this.drawToolBar.deactivate();
}
query('.draw-item',this.domNode).removeClass('selected');
}, around line 245 Comment out this.disableWebMapPopup(); and add in this.map.setInfoWindowOnClick(false); _onItemClick:function(event){
var target = event.target||event.srcElement;
var items = query('.draw-item',this.domNode);
items.removeClass('selected');
html.addClass(target,'selected');
var geotype = target.getAttribute('data-geotype');
var commontype = target.getAttribute('data-commontype');
var tool = Draw[geotype];
//this.disableWebMapPopup();
this.map.setInfoWindowOnClick(false); // added this
this.drawToolBar.activate(tool);
this.onIconSelected(target,geotype,commontype);
},
... View more
01-12-2015
01:06 PM
|
2
|
0
|
3078
|
|
POST
|
When you use the usePopupManager: true it breaks other popups for the map like the measure and draw tools. What happens is when you want to measure something the map will measure but it still thinks that the identify tool is active and identifies things and the popup gets in the way. Here is another chunk of code to add to those widgets to fix that issue. So far it works for me, but not 100% sure it is the best fix. For the measurement widget I opened \widgets\Measurement\Widget.js and commented out two lines and added two new ones right around line 69. aspect.after(this.measurement, 'setTool', lang.hitch(this, function() {
if (this.measurement.activeTool) {
//this.disableWebMapPopup();
this.map.setInfoWindowOnClick(false); //added this
} else {
//this.enableWebMapPopup();
this.map.setInfoWindowOnClick(true); //added this
}
})); It looks like you need to add these lines of code to other widgets that need map clicks like draw. also see Identify Features
... View more
01-12-2015
10:50 AM
|
1
|
0
|
2261
|
|
POST
|
Kelly, Thanks for the help. After you mentioned using map.showInfoWindowOnClick I tried to look it up but there was not much out there for that. All I found was this link esri/arcgis/utils | API Reference | ArcGIS API for JavaScript that has this When using usePopupManager: true in the options parameter in the createMap method, the clickEventHandle and clickEventListener will be undefined. Instead use the Map.setInfoWindowOnClick to control visibility of the popup. It did not give any examples on how to do that. I tried a few things and I think I found one that works. From what I can tell it looks good to me. For the measurement widget I opened \widgets\Measurement\Widget.js and commented out two lines and added two new ones right around line 69. aspect.after(this.measurement, 'setTool', lang.hitch(this, function() {
if (this.measurement.activeTool) {
//this.disableWebMapPopup();
this.map.setInfoWindowOnClick(false); //added this
} else {
//this.enableWebMapPopup();
this.map.setInfoWindowOnClick(true); //added this
}
})); It looks like you need to add these lines of code to other widgets that need map clicks like draw.
... View more
01-12-2015
10:36 AM
|
2
|
4
|
3078
|
|
POST
|
Right now this work around only works for the developer version. You can not access the MapManager.js file for the AGOL web app builder.
... View more
01-09-2015
01:30 PM
|
0
|
0
|
2261
|
|
POST
|
Yes the Web Map needs to be made public if only for a few moments so you can get the json parameters. I do not believe the application has to be registered. I suppose if you really wanted to you could either create a public web map that has everything you want with out the private stuff. Then do step one and manually add the json that you need or just write your own json file from scratch. That way you wold not have to make it public at all. By using the url method it just makes it easier.
... View more
01-08-2015
09:57 AM
|
0
|
0
|
1475
|
|
POST
|
I just tried this and it worked for me: 1. In a separate tab enter one of the following URLs ---www.arcgis.com/sharing/rest/content/items/<itemid>/data?f=pjson ---<orgkey>.maps.arcgis.com/sharing/rest/content/items/<itemid>/data?f=pjson Change the <itemid> and/or <orgkey> for the Web Map id 2. Open the details of your web mapping application and click edit. 3. At the bottom change the purpose to Configurable. 4. Copy the json text from step 1 and paste it in the Configuration Parameters section at the bottom. 5. Edit out the empty json tag that is in the basemap gallery section that looks like {}, 6. Save and refresh and that should do it.
... View more
01-08-2015
08:48 AM
|
5
|
10
|
4290
|
|
POST
|
remove the empty json tag. delete the whole line: {},
... View more
01-07-2015
10:07 AM
|
0
|
3
|
816
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-29-2015 06:36 AM | |
| 1 | 06-30-2015 09:27 AM | |
| 1 | 04-20-2015 10:23 AM | |
| 1 | 06-23-2015 11:01 AM | |
| 1 | 05-19-2015 02:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-07-2025
06:26 AM
|