POST
|
It looks like you are creating a custom widget based on the Draw widget included with CMV. In order to assist troubleshooting your custom code, I recommend that you create a GitHub repo containing the complete custom widget along with an example configuration that demonstrates the issue. Instead of developing your own export methods, you may want to consider implementing my Export widget https://github.com/tmcgee/cmv-widgets#export which will handle the export to shapefile along with numerous other spatial and non-spatial formats. Passing the desired features for export to that widget is just a few lines of custom code. If you post an issue about the Export widget within my cmv-widgets repo, I can assist you there.
... View more
04-08-2019
11:59 AM
|
0
|
1
|
2010
|
POST
|
Ryan, Here is a simple. working example of how to include the OpenExternalMap widget in an application. https://github.com/tmcgee/cmv-widgets/blob/master/config/openexternalmap.js. Similar to what I show in that repository, I typically put contributed or custom widgets in a separate folder from the core CMV widgets. That makes it much easier to upgrade an application (WAB applications are not as easy to upgrade ). The only other thing to do is include the widgets folder as a dojo "package" as shown here: https://github.com/tmcgee/cmv-widgets/blob/master/config/app.js#L15-L17
... View more
04-04-2019
06:48 PM
|
0
|
0
|
641
|
POST
|
An example of this is provided in the demo code: cmv-app/viewer.js at develop · cmv/cmv-app · GitHub
... View more
01-15-2019
12:33 PM
|
0
|
2
|
1197
|
POST
|
The API docs that I linked has sample code on how to use "setVisibleLayers". Here's a few other comments. lyr.visibleLayers; // is an array of ids of the sub layers that are currently visible.,
lyr.setVisibleLayers([1,2,3]); // Sets the sub layers with ids 1, 2 and 3 as the only visible layers.
lyr.setVisibleLayers([-1]); //Sets all layers as not visible.
... View more
01-10-2019
06:42 AM
|
1
|
2
|
1573
|
POST
|
Sounds like you would want to use the `layerInfos` array, the `visibleLayers` array and the `setVisibleLayers` method of a Dynamic MapService layer to access the sub layers, and affect their visibility : ArcGISDynamicMapServiceLayer | API Reference | ArcGIS API for JavaScript 3.27
... View more
01-09-2019
12:37 PM
|
0
|
0
|
1573
|
POST
|
The documentation for the JavaScript API provides an example for looping through the layers in the map: Map | API Reference | ArcGIS API for JavaScript 3.27
... View more
01-09-2019
08:30 AM
|
0
|
0
|
1573
|
POST
|
While the application is using CMV, the configuration is for the Esri Search widget which can be used within CMV and elsewhere. You can test your Feature Layer(s) and Locator using this sandbox example for the Search widget: ArcGIS API for JavaScript Sandbox
... View more
09-13-2017
03:51 PM
|
2
|
2
|
571
|
POST
|
Assuming your JavaScript code is in Search.js and you want to set the value in dijit you referenced with the attach point 'data-dojo-attach-point="inputSearchTerm0"`, you would use: this.inputSearchTerm0.set('value', 'My Value'); There are numerous additional examples of this method in Search.js. Here's one: cmv-widgets/Search.js at master · tmcgee/cmv-widgets · GitHub
... View more
11-04-2016
10:15 AM
|
1
|
1
|
2122
|
POST
|
Peter, Perhaps this will help you setup the service: Tutorial: Advanced web map printing/exporting using arcpy.mapping—Documentation (10.3 and 10.3.1) | ArcGIS for Server
... View more
10-19-2016
02:33 PM
|
1
|
1
|
424
|
POST
|
Hello Ismet, I am one of the core developers of an open source project called CMV, the Configurable Map Viewer. CMV is built on top of the Esri JavaScript API so you can use your ArcGIS Server REST resources directly without using webmaps or portal. Services at ArcGIS Online and many other external services can be used as well. CMV includes numerous widgets available including a very robust layerControl (TOC) widget. If you prefer to use the WAB LayerList widget, you could do that too. With the upcoming version of CMV, you can use widgets created for the WebApp Builder without changing any code - either those that are included with WAB or those that developers have put together. I have created a github repo with a number of examples using WAB widgets here: GitHub - tmcgee/cmv-wab-widgets: Examples of using widgets from the ESRI WebApp Builder in CMV Other developers have already started using these widgets in their own applications with immediate success. The freely available source code for CMV is on GitHub: GitHub - cmv/cmv-app: A community-supported open source mapping framework built with the Esri JavaScript API and the Doj… Here is a list of additional widgets contributed by the CMV community: GitHub - cmv/cmv-contrib-widgets: User contributed widgets for CMV Along with support at Github, StackExchange and GeoNet (CMV - Configurable Map Viewer), we have a chat room for exchanging ideas and getting assistance: cmv/cmv-app - Gitter In the chat and other places, you'll find myself and other developers very willing to help you get started. I hope this helps you. Tim McGee
... View more
07-15-2016
09:49 AM
|
2
|
1
|
935
|
POST
|
Hi Shaning, Please post your questions related to CMV in the this GeoNet group: CMV - Configurable Map Viewer That will make them easier to find for folks such as myself providing CMVsupport and for other users with similar questions. Thanks, Tim McGee
... View more
07-23-2015
02:58 PM
|
0
|
2
|
641
|
POST
|
Shaning, You set the initial extent in the `mapOptions` here: cmv-app/viewer.js at master · cmv/cmv-app · GitHub In the example, it uses center and zoom. You can use an extent instead. Anything from the ESRI Map contructor Map | API Reference | ArcGIS API for JavaScript can be used in the mapOptions. If you set the mapOptions to the desired initial extent, you can leave it out of the config for the home button as it will use the initial extent. Side note: we've strayed a bit from the original topic. Additional questions should be created in new posts on GeoNet CMV - Configurable Map Viewer or the other cmv support channels.
... View more
07-22-2015
08:41 AM
|
1
|
1
|
443
|
POST
|
Tony, Great! In addition to the support links I provided in my original post, there is also a GeoNet group CMV - Configurable Map Viewer that had been created last year but forgotten about until yesterday. We're monitoring it now. Perhaps too many ways to get help that will be refined as we progress. Too many is better than too few.
... View more
07-22-2015
08:15 AM
|
0
|
0
|
443
|
POST
|
Thanks Rickey, I was about to provide a similar explanation. One minor clarification. You do not need to click on the arrow icon to get the pane to undock. That was true in the initial release. Now you can just click and drag the title bar which is a more natural behavior. The icon remains as an indication that the widget can be undocked. In addition to allowing the sidebar widget to be undocked, there is an older style floating window with `type: 'floating'`, If you click on the 'Help' link in the upper-right corner you'll see a modal non-movable version of this. I expect that the floating widget will evolve to have similar behavior to that of an undocked titlePane widget shown in Rickey's screenshot.
... View more
07-22-2015
08:10 AM
|
1
|
3
|
443
|
POST
|
HI Tony, From your description, CMV sounds like it would fit the bill. I've done similar things in a former life so it sounds familiar. I am not here looking for work . Just suggesting I have a good understand of your issue. I know of several developers who are using CMV in a manner much like you describe tied to centralized management of app configuration, services and app security, user/group roles, etc. I can (with your permission and theirs) get you connected to discuss how they have approached this. Let me know if that is of interest. Regards, Tim McGee
... View more
07-21-2015
03:26 PM
|
1
|
6
|
1034
|
Title | Kudos | Posted |
---|---|---|
1 | 11-04-2016 10:15 AM | |
1 | 01-10-2019 06:42 AM | |
1 | 07-22-2015 08:41 AM | |
1 | 07-21-2015 03:26 PM | |
1 | 07-22-2015 08:10 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|