Has anyone been able to add extra levels of detail (LOD) in an application that was built in web app builder? I know I can add the extra levels using code but I'm not sure which file to add the code to.
Thanks,
Brandon
Brandon,
Due to the fact that WAB uses a web map from AGOL when creating the map object you would have to feed the MapManager.js _processMapOptions function from new code like:
_processMapOptions: function(mapOptions) { if (!mapOptions) { return; } var ret = lang.clone(mapOptions); if (ret.extent) { ret.extent = new Extent(ret.extent); } if (ret.infoWindow) { ret.infoWindow = new InfoWindow(ret.infoWindow, html.create('div', {}, this.mapDivId)); } //Start new code ret.lods = [ {"level" : 0, "resolution" : 0.010986328125, "scale" : 4617149.97766929}, {"level" : 1, "resolution" : 0.0054931640625, "scale" : 2308574.98883465}, {"level" : 2, "resolution" : 0.00274658203125, "scale" : 1154287.49441732}, {"level" : 3, "resolution" : 0.001373291015625, "scale" : 577143.747208662}, {"level" : 4, "resolution" : 0.0006866455078125, "scale" : 288571.873604331} ]; //end new code return ret; },
BTW you would have to specify ALL the original LODS as well as your additions.
Hi Robert,
Thanks for the reply! I will give this a try and let you know how it goes. Is the MapManager.js_processMapOptions function usually in the same file? Also, your response brings up another question we've had regarding WAB. We've been using it to jumpstart our application building as well as for our users who aren't as skilled in pure javascript. But for one of our main applications we'd like to run completely off of our ArcGIS Server and aren't sure how we would use operational layers like we have in the past for flex applications. Can you give me any guidance on this?
Best,
The closest thing (currently) to making WAB more like Flex Viewer (as far as operational and basemap layer from your own server) is to use the Local Layer Widget. LocalLayerWidget and AccessifizrWidget
This widget still does not get past the need to use a AGOL Web Map as the starting point (i.e. setting the LODs and spatial reference). Unless esri changes something the need to use a AGOL web map is going to be a requirement.
Thanks Robert,
I like the looks of the LocalLayerWidget. Slightly disappointing that WAB doesn't support operational layers in the same way but not entirely surprising. Our reasoning for wanting to have the operational layers is to not have to purchase additional named user accounts. Is there another way to accomplish this without going the whole way to a completely custom Javascript app? We have our ArcGIS Server tied into AGOL using ADFS. Thanks in advance.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.