Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 13 23:23
    VoidedMuse starred cmv/cmv-app
  • Jul 07 05:46
    snyk-bot opened #992
  • Jun 16 23:27
    tmcgee closed #991
  • Jun 16 08:43
    snyk-bot opened #991
  • Jun 09 22:21
    tmcgee closed #990
  • Jun 09 04:48
    snyk-bot opened #990
  • Jun 07 08:03
    khusaeriz starred cmv/cmv-app
  • Jun 05 02:54
    tmcgee closed #988
  • Jun 05 02:52
    tmcgee synchronize #988
  • Jun 05 02:52
    tmcgee closed #982
  • Jun 05 02:49
    tmcgee synchronize #982
  • Jun 03 16:20
    ERS-Long commented #989
  • Jun 03 15:53
    tmcgee commented #989
  • Jun 03 15:52
    ERS-Long closed #989
  • Jun 03 15:52
    ERS-Long commented #989
  • Jun 03 15:45
    ERS-Long opened #989
  • Jun 02 04:32
    snyk-bot opened #988
  • May 31 01:37
    tmcgee closed #987
  • May 26 04:29
    snyk-bot opened #987
  • May 25 20:01
    tmcgee closed #986
Steve
@cuthberts
Is there a way to make the template picker of the Editor widget more then 3 columns wide? Perhaps set to auto depending on how big i make the widget frame?
Santiago Utsumi
@santiagoutsumi
Hi somebody there to help with the following
I use GitHub to make a custom web map using QGIS2Web that worked fine but now would like to visualise atribute tables for selected lyears and then to export tables as CVS file. Any help welcome. I am not a codeing guy....
Tim McGee
@tmcgee
@triesco Yes I have worked on several approaches for including the v4.x API in CMV: 1) dojo-based like we do with v3 (CMV supporting both 3 and 4) and 2) components for use React (v4x only). Both of these have been in use by several of my clients for quite awhile. Consistent with my past efforts, both were created using funding from the client for their projects with the specific intent that the work on CMV will ultimately be released as open source for use by all CMV users and developers. It is taking much longer to get that public release than I had wished but it will occur. I hesitate to provide any time frame for the release because I have said coming soon several times in the past and have been wrong so I won't say it now. Sorry I can't be more specific at this time.
Tim McGee
@tmcgee
@cuthberts Esri's Template Picker widget includes parameters for the number of columns and rows. I have used them successfully in custom widgets I have built. I am pretty sure you can pass those parameters along with the Esri Editor widget and you'd need to create your own widget. This is something I always recommend for editing because the Esri Editor widget doesn't provide acceptable flexibility of the Editing experience for the users or the developers.
Tim McGee
@tmcgee
@santiagoutsumi Your project is using Leaflet not the Esri JavaScript API. The Attributes Table widget is dependent on the Esri API so may be very difficult to integrate into your project. I suggest you look for a different components that will work with Leaflet.
Denverino
@Denverino
Hi everybody. I have a trouble with my cmv. My editor widget don't save any edits in arcsde database. But i don't see any errors, what i missed?
Tim McGee
@tmcgee
@Denverino This is always a challenge to determine the root cause. Most often it has to do with issues in the Feature Service. And the error messages at the REST end point rarely provide enough detail to easily get to the bottom of it. First see if you can edit features through the Feature Service using ArcGIS Desktop. If not, then you have problem with the service. If you can save edits, then there's something missing in your configuration of the Editor widget. I avoid that widget so don't have specific direction on what might be missing.
Tim McGee
@tmcgee
Others here that use that widget may be able to share some tips and tricks.
Denverino
@Denverino
Hmm, it is interesting. I did't edit feature service in the Desktop anytime.
Denverino
@Denverino
@tmcgee yes, you are right! My services don't editable, because in there are in mxd file 2 connections to different arcsde db, but both use one postgresql user account.
triesco
@triesco
Is there a eay to edit in the attribute table in CMV?
Denverino
@Denverino
@tmcgee hi. I use the rest service without identify possibility, only json query. Can identify widget cmv use json requests to view attribute info of the mapService?
Or may be i don't understand what i need to identify(
Tim McGee
@tmcgee
@Denverino For Dynamic layers, the Identify widget uses the Identify task of the Map Service (not querying the individual sub layers). For Feature layers (from a Feature Service or a single sub layer of a Map Service), the rest service is not queried at all - the attributes are associated with the graphics features on the map. Does this not work for you?
Denverino
@Denverino
@tmcgee Yes, it does not work for me. I have some Feature layers in Map Service.
Current version 10.31 of the arcgis rest services
Tim McGee
@tmcgee
All that you describe should work without issue. Many folks are using cmv successfully with feature layers and 10.3.1. Sounds like maybe there may be a problem with your cmv configuration.
Denverino
@Denverino
It works fine with my own rest 10.0 services
I'm use arcgis api 3.24
Denverino
@Denverino
It looks like something wrong with my proxy settings
Denverino
@Denverino
"Error:Requested operation is not supported by this service. ControllerBase.js:95"
This is info message i see in Console when i click by object on the map
knozaki2001
@knozaki2001
@tmcgee I have trouble loading disclaimer widget. After coping disclaimer folder and disclaimer.js, I modified viewer.js (https://drive.google.com/open?id=1IKro5ljqkaic5YtIxgDtXgSkIYnrcnli). Please let me know what I am missing. Thank you very much.
Tim McGee
@tmcgee
@knozaki2001 I can't open your file on Google drive. Most common issue with the Disclaimer widget is forgetting to put preload: true in the widget's configuration.
knozaki2001
@knozaki2001
@tmcgee Sorry, I forgot to make the link shareable. Yes, your guess is right. It worked after putting preload: true. Thank you very much.
Tim McGee
@tmcgee
:thumbsup:
asleepjk
@asleepjk
Hi everyone, is there an example of how to implement more than one layer control at the same time with different layers?
Tim McGee
@tmcgee
@asleepjk I have not seen an example of that but I believe it would be possible. The challenge would be to determine which layers are managed by each layer control widget. Would require some customization to sort that out.
moco32
@moco32
I am using the CMV Attributes Table and I am trying to edit the data shown in the table. Is the data editable via the table? Can I enable the table to be editable? :)
Tim McGee
@tmcgee
@moco32 The AttributesTable is based on dgrid which supports editing the cells within the grid. There are several examples of editing within the dgrid samples. NOTE: dGrid does not send any of the edited values to whatever data source (database/features layer/json/etc) you may be using to initially populate the grid. If that is a requirement of your application, you would have to write code to send that data to the back-end. There are many, many ways to do that but it is outside the scope of support offered here.
Kiro Andreev
@kireandreev_gitlab
is it better to use FeatureTable instead of dGrid for editing cell and for send any value to data source?
moco32
@moco32
hey guys, how can I change the format of my date field when I export a file from my grid with the export widget?
image.png
Tim McGee
@tmcgee
@moco32 The secret sauce for a proper export of dates is in the configuration for the column in the grid.
@kireandreev_gitlab I can't comment on better since I don't use the FeatureTable at all and don't know your use case. Here is an example of of using FeatureTable with CMV.
moco32
@moco32
@tmcgee that did the formatting trick but now when I export to an Excel file, the datetime column in the document is empty.
ERS-Long
@ERS-Long
@tmcgee is there a way to update the symbol or legend underneath a feature layer? for example, i have a layer def, depends on what user needs, the filter is on or off for a feature layer. The legend widget refreshes accoringingly, but the legend underneath the layer in the layer control does not. Please share your suggestion. Thanks!
Tim McGee
@tmcgee

@ERS-Long The legend for Feature layers in the layerControl widget isn't a typical legend. The symbols are built from the layer's render when the layerControl is first instantiated. I forget the reasoning behind this approach (I didn't write it).

The first workaround that comes to mind is remove the layer from the layer control and add it again. I'm not sure if this will work since the symbols are built from the layer's renderer and may ignore the layer defs (at least that is how it looks like it will behave based on a quick look at the code).

Second possibility is to rely on the Legend widget. You can add noLegend: true to the layerControlOptions for that layer so it doesn't show the Legend in the layerControl widget.

ERS-Long
@ERS-Long
@tmcgee Thanks for the hint, it is not that critical to have. Yes, i did locate the code for that piece, it creates the legend based on the initial layer’s render info. I will discuss the option to our client, maybe hide it makes more sense in this case. Hopefully I will meet you next week if you also go to Dev Summit. Have a good one.
triesco
@triesco
actually, following this same question, is there a way to put the actual legend on each layer on the TOC? Somttimes people think the legend is the one under each layer in TOC and mostly with feature layers they dont have the correct legend. It would be cool to have the actual legend under each layer on the TOC. Any ideas?
Tim McGee
@tmcgee
@ERS-Long Unfortunately, I won't be at the Dev Summit this year. It is has become an every-other-year event for me.
Tim McGee
@tmcgee
@triesco For Dynamic Layers, it is an an actual legend dijit under each layer. I believe this issue being discussed only affects graphic (vector) layers like Feature Layers, CSV, KML, etc. As I said, I don't recall the reasoning behind using different Legend approaches. I am always open to contributions to CMV so if someone wants to submit a change to always use a Legend dijit for all layers in the LayerControl, please do. :smile:
Tim McGee
@tmcgee
@triesco Actually, I think I was incorrect in my last comment. It appears that only the Feature Layer uses the vectorLegend
ERS-Long
@ERS-Long
@tmcgee thanks for you hint, i got it kind of working, but have to hardcode the particular feature layer legend obj for map refresh call. the change is in the vectorLegend method, i just comment out all the existing code and use the layerLegend function code.
triesco
@triesco
@tmcgee Ill try to do some stuff here for the featurelayer. I guess I should start by doing a condition so that if its a freatureLayer then put the legend. Ill let you know any progress to contribute. Thanks guys
coigis
@coigis
How to solve "DevTools failed to parse SourceMap" in Chrome?
Tim McGee
@tmcgee
@coigis I've read that is a bug in the Chrome browser. Do a Google search for that term and you should find some potential work-arounds.
coigis
@coigis
@tmcgee So with this bug in Chrome, some widgets will be affected? For my case, the Export widget doesn't work in Chrome/Firefox but works in IE.
Tim McGee
@tmcgee
@coigis That bug should not affect widget's in any way. Source map files are not required to run web applications. You can even turn off the loading of source map files within the DevTools settings.