Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 23 19:42
    tmcgee commented #939
  • Mar 23 19:39
    reyemtm commented #939
  • Mar 23 19:36
    tmcgee assigned #939
  • Mar 23 19:36
    tmcgee labeled #939
  • Mar 23 19:36
    tmcgee labeled #939
  • Mar 23 19:36
    tmcgee commented #939
  • Mar 23 13:23
    reyemtm opened #939
  • Mar 21 19:01
    appleshan starred cmv/cmv-app
  • Mar 19 12:55
    reyemtm starred cmv/cmv-app
  • Mar 17 14:39
    tmcgee closed #938
  • Mar 17 03:02
    greenkeeper[bot] labeled #938
  • Mar 17 03:02
    greenkeeper[bot] opened #938
  • Mar 13 12:39
    NexZhu starred cmv/cmv-app
  • Mar 03 13:03
    AnatolyAG opened #937
  • Feb 26 23:11
  • Feb 15 15:40
    tmcgee closed #936
  • Feb 15 15:37
    tmcgee synchronize #936
  • Feb 15 15:33
    tmcgee closed #935
  • Feb 14 22:47
    greenkeeper[bot] labeled #936
  • Feb 14 22:47
    greenkeeper[bot] opened #936
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.
coigis
@coigis
@tmcgee The error points to the ajax library for Excel. I unchecked the loading of source map files and it still doesn't work.
Tim McGee
@tmcgee
@coigis Not loading the map file is no problem. It would be a problem f it is unable to load the JS file.
https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.7.8/xlsx.core.min.js
Looks like the file location may have moved. Notice the dist folder is no longer in the path.
coigis
@coigis
@tmcgee But the reference to the js file in the widget is still valid. Is the map file referenced somewhere in the app?
Tim McGee
@tmcgee
The path to the map file is within the JS not the app. A JavaScript-based application like CMV and the Esri JS API does not use the map file at all.
Denverino
@Denverino
Hi everybody. I can't publish this url in cmv: https://pkk.rosreestr.ru/arcgis/rest/services/PKK6/Cadastre/MapServer. What's wrong with it? I use js api 3.24 locally.
Tim McGee
@tmcgee
@Denverino It looks to be a problem with the Map Service. Many 503 service errors as you navigate to the sublayer URLs.
Denverino
@Denverino
@tmcgee yes it is, but this service used in one map viewer. And data from this Map Service loading well. Requests using Export Map works good. I can get link for example tomorrow. I need to do something like this((
@tmcgee can this Map Service blocked specially? What do you think?
Denverino
@Denverino
@tmcgee Oh, they are fixed Map Service! I can load layers in OperationalLayers, but i have errors in request link addres. How can i change Export Map request properties, such as format, size, bboxSR and imageSR?
I changed format with BuildImageParameters() function, but others parameters don't changing(
Denverino
@Denverino
I found that query strings makes in js api, and this links use current map window size. So how this arcgis service https://pkk.rosreestr.ru/arcgis/rest/services/PKK6/Cadastre/MapServer can give only size 1024x1024 px??