|
POST
|
Hi Robert, Moving the code to startup didn't work. Same error as before.
... View more
11-10-2015
07:51 PM
|
0
|
8
|
1264
|
|
POST
|
I'm trying to assign a custom popup to the map.infowindow in a custom widget, but when I do this I receive a console error saying "cannot read property 'toScreen' of undefined at p.show". Here is my code: _customPopup: new Popup({
fillSymbol: this._sfsParcel,
highlight: true,
lineSymbol: this._slsRoad,
markerSymbol: this._smsPoint
}, domConstruct.create("div")),
postCreate: function () {
this.inherited(arguments);
this._config = this.config;
this.map = this.map;
this.map.infoWindow = this._customPopup;
}, Does anyone see what could be wrong here?
... View more
11-10-2015
06:19 PM
|
0
|
10
|
4908
|
|
POST
|
Removal of this line from \client\stemapp\config.json has fixed this error. "geometryService": "http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer", See this link for geometryService explanation: App configuration—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
... View more
10-28-2015
02:18 PM
|
1
|
0
|
1534
|
|
POST
|
I'm trying to call a few clean up processes in the widget onClose event, but this event doesn't fire in the Launchpad theme when the widget icon button is in the Anchor Bar Controller. What event could I attach to instead of the onClose?
... View more
10-26-2015
08:31 PM
|
0
|
2
|
2859
|
|
POST
|
Hi Robert, Yes, that URL returns the config.json successfully.
... View more
10-21-2015
08:54 PM
|
0
|
4
|
1534
|
|
POST
|
I'm wondering why I get this error in the dev tools console when I load webappviewer/?config=config.json. Does anyone know what causes this and how to fix it please?
... View more
10-21-2015
02:38 PM
|
0
|
8
|
3700
|
|
POST
|
When I used this.map.infowindow.show() I get this error: "TypeError: Cannot read property 'toScreen' of undefined at p.show (http://js.arcgis.com/3.14/init.js:1639:501)..."
... View more
10-07-2015
03:25 PM
|
0
|
1
|
1851
|
|
POST
|
Hi Robert, I was using InfoTemplate out of ignorance. However, now that I'm using PopupTemplate the title is not displaying. When I use the developer tools, I see that the title has been applied to the template, but I can't see why it doesn't show in the popup. By the way, how do I get my code snippets to look nice like I see in other posts? var that = this.map._mapParams.infoWindow;
var popupTemplate = new PopupTemplate();
popupTemplate.title = "Address";
popupTemplate.content = "${ADDRESS}</br>${LOCALITY}";
selected[0].setInfoTemplate(popupTemplate);
that.setFeatures(selected);
that.show(selected[0].geometry);
... View more
10-07-2015
02:02 PM
|
0
|
3
|
1851
|
|
POST
|
I have this simple chunk of code that fails with the error: "TypeError: Cannot read property 'toScreen' of undefined at p.show (http://js.arcgis.com/3.14/init.js:199" It fails at this.map.infoWindow.show(selectedAddress[0].geometry, selectedAddress[0].geometry); var infoTemplate = new InfoTemplate();
infoTemplate.title = "Address";
infoTemplate.content = "${ADDRESS}</br>${LOCALITY}";
selectedAddress[0].setInfoTemplate(infoTemplate);
this.map.infoWindow.setFeatures(selectedAddress);
this.map.infoWindow.show(selectedAddress[0].geometry, selectedAddress[0].geometry); Can anyone see what I'm doing wrong? Message was edited by: Andrew Terwiel I have it working now, but this looks like a hack to me. var that = this.map._mapParams.infoWindow;
var infoTemplate = new InfoTemplate();
infoTemplate.title = "Address";
infoTemplate.content = "${ADDRESS}</br>${LOCALITY}";
selected[0].setInfoTemplate(infoTemplate);
that.setFeatures(selected);
that.show(selected[0].geometry);
... View more
10-06-2015
04:20 PM
|
0
|
7
|
6039
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-27-2016 01:34 PM | |
| 1 | 05-13-2015 09:27 PM | |
| 1 | 06-09-2015 03:18 PM | |
| 1 | 06-24-2015 06:22 PM | |
| 1 | 07-07-2015 03:17 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-22-2021
03:45 PM
|