|
BLOG
|
I'm kinda inspired to hack into the overview map. The clients I've worked with who expressed interest in OverviewMaps want features that I haven't teased out of them yet. I end up creating a second map with custom layers, zoom scales, and features that they want. Is there any difference memory or performance-wise between loading an overview map and creating a second map?
... View more
02-04-2015
11:00 AM
|
0
|
0
|
306
|
|
POST
|
Okay, I found the answer. If you set the portalUrl in the config.json file to an HTTPS arcgis portal, then it will change the protocol of your Web AppBuilder to HTTPS. By changing the portalUrl to HTTP, the app loaded fine.
... View more
01-22-2015
08:07 AM
|
3
|
2
|
2257
|
|
POST
|
After stepping through the code, I found the code that is switching the window.location.protocol to https://, but I'm not sure why. In the file jimu.js/shared/ConfigManager.js, there's a method called _processNotInPortalAppProtocol. It looks like it's comparing the organization's ArcGISOnline portal url to the current url. It then switches the window.location.protocol to https in line 436 if the portal url is secured, but the current url isn't. I'm going to try to find the source of the portal url, and attempt to change it to http:// to test if that works.
... View more
01-22-2015
07:47 AM
|
0
|
0
|
2257
|
|
POST
|
So, I've attempted to deploy my first custom application built on Web AppBuilder. When I go to my demo site at http://<mydemosite>/, it loads and redirects to https://<mydemosite>/. The problem is, my demo server isn't set up for secure services, and my browser says that the webpage is not available. Do I need SSL certificates to run these apps, or is there a setting somewhere that I can change to redirect back to http://<mydemosite>/?
... View more
01-21-2015
03:10 PM
|
0
|
5
|
7705
|
|
BLOG
|
Great advice, Last year, I made it a goal to remove dojo/_base/lang from my applications. Most notably, to replace lang.hitch() with Function.prototype.bind(). Of course, I had to polyfill because we support IE 8 & 9. This year, I'll make it a goal to remove dojo/_base/array as well.
... View more
12-29-2014
10:12 AM
|
0
|
0
|
862
|
|
POST
|
I have a map I've created on ArcGIS Online, mashing up several map services. I've configured popups for several layers and sublayers. On the webmap, I have a map service called GIS Layers, which has a layer called GPS Monuments. GIS Layers is turned on, but GPS Monuments is turned off by default. I have a popup configured for GPS Monuments, and when I turn on that layer in ArcGIS Online, the popup will show when the layer is visible. However, when I load the webmap through an application created with version 3.11 of the ArcGIS API for JavaScript, and I toggle the visibility of the GPS Monuments layer, I don't get a popup for that layer. Stepping through the code, I found that if the GPS Monuments layer is made visible, the feature layer that controls the popup is loaded by the arcgisUtils.createMap method. However, if the GPS Monuments layer is turned off on the webmap, no feature layer is loaded. I know I could make visible all the layers that have popups configured for them, but it makes the webmap look messy. Any suggestions on how to handle this without hard-coding manual turn on/off of layers in the external JSAPI application? Thanks,
... View more
12-01-2014
03:15 PM
|
0
|
2
|
2006
|
|
POST
|
Thanks Jonathan, To answer your questions: First noticed it in Chrome, and it was repeatable in FireFox and IE 11. We are using a new in-house application. I'll post some snippets in the morning, once I have access to my machine. As a side note, we confirmed that the spatial reference of the data matched the spatial reference of the basemap behind it (Ohio State Plane). We thought we fixed the issue before when the map used the Web Mercator basemaps provided by ArcGIS Online. Now the issue has creeped up again.
... View more
09-17-2014
09:52 PM
|
0
|
1
|
1082
|
|
POST
|
We have a custom JavaScript API based application that loads an ArcGIS Online Webmap from our organization and lets the user edit the shapes of polygons in a specific layer. Initially, the polygons all cover a specific area, and there are no gaps in between them. The application loads the Editor Dijit, and configurations plus event handlers limit the Editor Dijit to the following: Edit Feature Attributes Draw new polygons Autocomplete polygons Cut features Merge features. Undo and Redo Problem: When the user cuts a polygon, the two pieces look okay. But when the two features are selected and merged, the new polygon is displaced by two to three pixels in some random direction. The merged shape is maintained, but it looks like it slid over a little bit. This creates gaps and overlaps in the polygons where there weren't any before. When we look at the data in ArcMap, we see the same gaps and overlaps in the edited polygon. While the displacement appears to be a couple pixels off, that translates to about 10 foot gaps in our data. For right now, we don't have a topology on these features, since the extra checks and balances they add reduce the performance of other operations. Any suggestions? I'll be happy to post bits of my code when I have time.
... View more
09-17-2014
02:59 PM
|
0
|
4
|
3574
|
|
POST
|
As a side note, this hack doesn't work if you're using QueryTask.executeForCount. There's probably other places it doesn't work. We anxiously await the next release.
... View more
09-02-2014
01:46 PM
|
0
|
0
|
2091
|
|
POST
|
What I ended up doing was to test for the presence of ESRI's Identity Manager Dialog using dojo/query, If the dialog was present, I hid the dialog and presented my own error message. Below I've added some code I used to search for this. var scanForLogin; arcgisUtils.createMap(agolId, mapDivId, { mapOptions: mapOptions }) .then(onSuccess, onFailure); // check if a login is required. require(["dojo/query", "dijit/registry"], function (dojoQuery, registry) { var loginChecks = 0; scanForLogin = window.setInterval(function () { // testing access to sign in node var signInNode = dojoQuery(".esriSignInDialog"), promptDialog; // if there is a signin node if (signInNode.length) { promptDialog = registry.byNode(signInNode[0]); promptDialog.hide(); // hide the prompt dialog onFailure({message: "Map failed to load properly"}); } else if (this.loginChecks > 4) { // stops checking after five times (over 3 seconds). window.clearInterval(this.scanForLogin); } loginChecks++; }, 600); }); function onSuccess (response) { // stop checking for login window.clearInterval(scanForLogin); ... } function onFailure (err) { // stop checking for login window.clearInterval(scanForLogin); alert(err.message || err.Message); }
... View more
08-28-2014
10:06 AM
|
0
|
0
|
1987
|
|
POST
|
For a temporary hack until the Query property supports the feature, try tacking it into your QueryTask url definition. It may not work in all cases. example: var qtask = new QueryTask(url + "?returnDistinctValues=true");
... View more
08-22-2014
07:21 AM
|
1
|
1
|
2091
|
|
POST
|
Loading the compact build introduced some other changes to the application that we didn't want. Are there any other ways to either: 1. Stop the IdentityManager or 2. Find an attach point for the IdentifyManager, either in arcgis.utils where I'm calling createMap, or wherever, to attach an event when it shows. Thanks,
... View more
05-23-2014
12:00 PM
|
0
|
0
|
1987
|
|
POST
|
For my application, I'm modifying the map's large zoom slider to create a custom look. However, if I use the compact build of the library (for certain other reasons), the map loads with the default smaller zoom tool. In the map options, setting sliderStyle: "large" doesn't matter. Is there a way to force the compact build to load the larger zoom slider? Thanks,
... View more
05-22-2014
10:31 AM
|
0
|
0
|
1112
|
|
POST
|
Thanks, that helped. It introduced another issue somewhere else, but I'll save that for another forum post.
... View more
05-22-2014
10:06 AM
|
0
|
0
|
1987
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-05-2013 11:45 AM | |
| 1 | 05-20-2015 08:05 AM | |
| 2 | 03-24-2017 07:11 AM | |
| 2 | 03-28-2018 07:45 PM | |
| 1 | 07-03-2018 07:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|