IDEA
|
The Public Notification app is currently configured such that to implement it you are required to cache a basemap which includes parcel lines. This is impractical as parcels and addresses update regularly. It does not make sense for me to have to re-cache the service weekly to assure the current parcel geometry is reflected in the basemap. After a bit of poking around I managed to add a dynamic service layer into the app such that you can see the parcels that are live on our server but it was not an easy process for someone with limited JS ability.
... View more
11-03-2015
11:39 AM
|
5
|
3
|
1276
|
POST
|
It did end up being in baseMapGallery.js. I added an ArcGISDynamicMapServiceLayer after line 60. I watched the dev console in Chrome and saw that my service was adding before the basemaps regardless of where I put it in mapSettings.js so I figured it was in baseMapGallary.js. After a lot of looking at that code I got it inserted in the right spot. Headed over to the ideas page to suggest this as an enhancement.
... View more
11-03-2015
11:33 AM
|
1
|
0
|
789
|
POST
|
I think its in baseMapGallery.js that's the problem. Pushing the button to toggle basemaps hides all layers and sets the next basemap as visible. I'm guessing at least. It looks like it should only hide things in config.js that are in the basemap list. EDIT: I'm revising this assumption. I think the problem is mapSettings.js is pushing the parcels to the back and I cant figure out why or how. App is at Public Notification.
... View more
10-29-2015
12:38 PM
|
0
|
0
|
789
|
POST
|
I didnt add it to my config.js. I added it to mapSettings.js. Im new to JS so I just looked for the file controlling the body of the app, looked for where the basemap was added and stuck it in at that point.
... View more
10-29-2015
10:20 AM
|
0
|
0
|
789
|
POST
|
Changing the dataframe projection to Web Mercator fixed the location issue but I cant get the service to show up on top of the basemap. If I switch the basemaps really fast I can see the parcels below the basemap before the next one draws. Slowly solving this.
... View more
10-29-2015
09:12 AM
|
0
|
3
|
789
|
POST
|
I really do not want to have to maintain two parcel, address, and road datasets just so this app this work. All the searches work fine and I added the service into the code where the basemap is loaded. If I load the basemap first the search shows results in Cameroon, if I load the service layer first searches show in the correct place but the basemap doesn't appear at all. I know its a projection issue and I remember my boss having an issue like this with the FLEX API a few years ago but we don't remember what the solution was in that case. I'm going to try changing the projection on that service and see if that helps.
... View more
10-29-2015
06:09 AM
|
0
|
0
|
789
|
POST
|
Its tricky to take a LGIM targeted app and make it work with a non-LGIM schema but that's what I'm in the midst of. First: I have most of this app configured and it searches just fine but the geometry for the addresses and parcels fall in Bertoua, Cameroon instead of Bay County, Florida. Street name searches return everything fine and in the correct location. Parcel shape is correct, but its been transposed to Africa. All searches return attributes correctly. All three services are in the same projection and are layers in the same service. Second: We want to use the esri Streets basemap instead of one we published ourselves. With this app you are expected to build your own basemap which includes parcels and streets. Is there a way I can stick a bit into the body of \widgets\mapSettings\mapSettings.js to drop my parcels in on top of the basemap using the same service that's being searched by the search function?
... View more
10-28-2015
10:28 AM
|
0
|
7
|
3031
|
POST
|
That would be very helpful. I hadn't heard that but I hope they are implementing it.
... View more
10-25-2015
04:53 PM
|
0
|
5
|
2543
|
POST
|
Ok this is sort of the timeline I was expecting. The AGOL update to bring vector basemaps into the mix and then a WAB update to incorporate the new AGOL functionality.
... View more
10-21-2015
11:07 AM
|
0
|
0
|
1041
|
POST
|
Oh I agree, but they should expose this in the main interface as something you can set at the start instead of going into the config, which is minified, after export insert the url.
... View more
09-24-2015
09:54 AM
|
1
|
1
|
705
|
POST
|
Wow thanks to Subu suggesting a JS beautifier I found it pretty quick. I used os.walk python to look in every file for "useProxy" and add any that contained it to a list. Then I just beautified the code in those few files before searching through them. In '\server\rest\apps.js' there is a function called zipApp which does what I expected, edits the app config in the deployment zip. I dont know enough JS to tell if it happens before or after zipping but I plugged 'TEST' into the empty url string, saved, exported and there it is in the config.json in the zipfile. Beautified version below, the url is on line 21. function zipApp(e, t) {
var n = getAppPath(e);
n = path.normalize(n);
try {
fs.existsSync("./apps/zips") || fs.mkdirSync("./apps/zips");
var i = fse.readJsonSync(path.join(getAppPath(e), "config.json")),
r = i.portalUrl;
"/" !== r.substr(r.length - 1, r.length) && (r += "/");
var o = new JSZip;
utils.visitFolderFiles(n, function(e, t, i) {
var r, a = e.substr(n.length, e.length);
if (i) o.folder(a);
else if ("env.js" === a) r = fs.readFileSync(e, {
encoding: "utf-8"
}), r = r.replace("//apiUrl = ", "apiUrl = "), o.file(a, r);
else if ("config.json" === a) {
var p = fse.readJsonSync(e);
p.httpProxy = {
useProxy: !0,
alwaysUseProxy: !1,
url: "",
rules: []
}, p.appId = "", o.file(a, JSON.stringify(p))
} else r = fs.readFileSync(e), o.file(a, r)
});
var a = o.generate({
type: "nodebuffer",
compression: "DEFLATE"
});
fs.writeFileSync(getZipFilePath(e), a, "binary"), t()
} catch (p) {
console.log(p), t(p)
}
}
... View more
09-23-2015
10:50 AM
|
1
|
4
|
2195
|
POST
|
Thanks Subu. I take esri's response as being that this just isn't something they expect people to being doing so they didnt build in a place to obviously do it. Beautifying the code may go long way to help.
... View more
09-23-2015
08:49 AM
|
0
|
0
|
705
|
POST
|
No, annoyingly. I could find references to it all throughout and could find sample configs but not where the config that gets zipped up with an app for deployment actually gets copied from. Its not the one that lives with the app in the development directories because that one is different and set up specifically to make the app function correctly in the WAB environment. It may be that a piece of code edits that file in place as its being zipped but I cant seem to see it. Much of that code isn't formatted so when you open it in a text editor or IDE its just a big wall of text. It's there somewhere but I never found it.
... View more
09-18-2015
07:23 AM
|
0
|
5
|
1490
|
POST
|
It totally worked. I dont know if its supposed to but it does. We have been holding off upgrading to newer geodatabase versions because of an external host who is staying at 10.1 for the while. I just tested a replication via geodata service between 10.3.1 and 10.1 and it successfully transmitted updates.
... View more
09-01-2015
11:26 AM
|
0
|
1
|
596
|
Title | Kudos | Posted |
---|---|---|
1 | 11-03-2015 11:33 AM | |
1 | 09-23-2015 10:50 AM | |
1 | 12-14-2015 10:42 AM | |
1 | 12-14-2015 01:10 PM | |
1 | 12-04-2015 08:19 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|