Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 08 16:45
    tmcgee closed #984
  • Apr 08 16:44
    tmcgee milestoned #984
  • Apr 08 16:44
    tmcgee labeled #984
  • Apr 06 21:03
    snyk-bot opened #984
  • Mar 31 12:58
    tmcgee commented #983
  • Mar 31 01:17
    duckblaster edited #983
  • Mar 31 01:16
    duckblaster edited #983
  • Mar 31 01:16
    duckblaster edited #983
  • Mar 31 01:16
    duckblaster edited #983
  • Mar 31 01:15
    duckblaster opened #983
  • Mar 30 21:04
    snyk-bot opened #982
  • Mar 24 19:24
    tmcgee commented #981
  • Mar 24 18:42
    azinsharaf opened #981
  • Mar 18 16:34
    adrianrb commented #980
  • Mar 18 16:34
    adrianrb closed #980
  • Mar 18 13:25
    adrianrb opened #980
  • Mar 18 13:21
    adrianrb edited #979
  • Mar 18 13:20
    adrianrb opened #979
  • Mar 18 12:59
    adrianrb closed #977
  • Mar 18 12:59
    adrianrb commented #977
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??
Malcolm Meyer
@reyemtm
for identify, i am struggling to figure out how to simply show all keys and values from the clicked feature (feature service). I assumed this was default behavior, but it looks like I have to build a custom template for each feature, or have a template where each key is in all features - is this true? I have like one hundred features...
Malcolm Meyer
@reyemtm
ok, looks like I needed outFields: ['*'] set in my layer options
knozaki2001
@knozaki2001
For print widget, is there a way to exclude specific layers such as imagery in the legend?
Tim McGee
@tmcgee
@knozaki2001 I believe that would require a custom print service since the legend is generated on the server in the service.
triesco
@triesco
Hello, Does anybody know how to open the legend widget programatically?? For example, lets say I filter a layer and when it finishes I would like to open the legend automatically??
Tim McGee
@tmcgee
@triesco Is your legend widget in a titlePane?
triesco
@triesco
yes sir, the default one.
Tim McGee
@tmcgee
//  get the titlePane for the legend, be sure to include `dijit/registry` in your declare statement
var titlePane = registry.byId('legend_parent');
// open the titlePane
titlePane.set('open', true);
@triesco :point_up:
marillenkrapfen
@marillenkrapfen
I would like to make the title of my CMV app dynamic, pulling a short text from a REST API service. Can someone tell me where I would insert a script that could fetch that information on init when the app loads? Would something like that work if I put it in the _LayoutMixin.js?
Tim McGee
@tmcgee
@marillenkrapfen It is certainly very possible to do something like that. I would suggest NOT putting it _LayoutMixin.js. Instead, I would create a separate mixin or a widget.
marillenkrapfen
@marillenkrapfen
@tmcgee Thank you -- I just don't know how to call it on load. Maybe I could put it in the script of index.html?
Tim McGee
@tmcgee
@marillenkrapfen This definitely can be done with JavaScript file loaded from index.html or a JavaScript function in the index.html file. A separate file might make it more portable for additional applications - depends on your needs.
marillenkrapfen
@marillenkrapfen
@tmcgee I'll give it a try -- I know it's a simple thing. Just wasn't sure where to insert it or how to start. Got a couple of ideas I will try. Thanks again.
milenaAE
@milenaAE
I am new to this site and to CMV customization. I have a question, does anyone knows if it is possible to insert user login and IP address watermarks on prints on from a secured portal Server/CMV application on cloud deployment.
Tim McGee
@tmcgee

@milenaAE If I am understanding your objective correctly the yes, I believe that would be quite possible. I think you'd need to start with a custom Print template and/or Print service on the AGS server that would accept the desired text. It may be possible to capture the info also within your service - not sure about that. If not, then on the client side you 'd possibly use a custom widget that would gather the data you want to include on the watermark, perhaps a variant of the CMV Print widget. To be more secure, you may want to capture the info using a server-side language like ASP.NET, PHP, etc. Perhaps your secured portal already handles some of that.

Another possibly approach would be to create a service proxy that sits in front of the Print Service that captures the info that you require and passes it along to the service.

Probably quite a few other possible approaches but bottom line is it is possible.

yogeshsharma505
@yogeshsharma505
Do we have RTL facility for Arabic
Tim McGee
@tmcgee

@yogeshsharma505 Yes, The Arabic language and RTL are supported by the Esri JavaScript API:. The API documentation is here

The Esri map and widgets used in CMV like Scalebar, Measurements and Legend already include localization for Arabic and the other languages shown on that page. The widgets developed by the CMV team have been localized with community support to French, Spanish and Portuguese. These localizations are also included in the Locale widget.

I would be happy to assist you or anyone with any efforts to translate CMV to Arabic or other languages. Let me know if I can help.

Tim McGee
@tmcgee
image.png
@yogeshsharma505 You can use the demo site to demonstrate how well Esri + CMV already support your local Arabic dialect by adding ?locale= to the url. Here is an example using Egyptian Arabic.
Tim McGee
@tmcgee
@yogeshsharma505 These widgets included with CMV should already have good locale support for Arabic:
  • Bookmarks
  • Directions
  • Editor
  • Home Button
  • Legend
  • Locate Button
  • Measure
  • Overview Map
  • Scalebar
  • Search
yogeshsharma505
@yogeshsharma505
CMV is really very useful and time saving ..my requirement is i want to change complete layout to RTL like widgets should come in right side and map is left side...Thanks in advance
@tmcgee Thanks for ur reply really it very useful
Tim McGee
@tmcgee

@yogeshsharma505 You can easily move the widgets to the right side of the page. Here's a copy of the demo site's viewer.js with a pane on the right side holding all the widgets.

The only changes are configuring a right pane while hiding the default left pane in panes section and then configuring each widget to be in the right pane.

yogeshsharma505
@yogeshsharma505
@tmcgee Thanks for your help we are working on that.we will come back to you for more help...Thanks
Robert Jones
@rjones0
I have a question about compatibility, which I have a feeling might be a silly question, but nonetheless since I couldn't find this information anywhere: is CMV compatible with ArcGIS Server 10.4.1? I am guessing the answer is yes, because CMV talks to Server via the REST API, and CMV is compatible with the REST API going back possibly to the inception of the REST API i.e. 10.1 or possibly even earlier. Grateful for clarification. Thanks
yogeshsharma505
@yogeshsharma505
Can we implement 3D as well?
Tim McGee
@tmcgee
@rjones0 I have multiple customers that are using CMV with AGS version 10.3.1 without issue (upgrading soon). Theoretically, CMV and the ArcGIS Javascript API is compatible back to AGS version 10.1 . Some of the Esri sample servers are still running 10.1! Those servers have some compatibility issues with modern browsers around security but nothing specific to the ArcGIS Javascript API or CMV that I am aware of.
Tim McGee
@tmcgee
@yogeshsharma505 The current version of CMV hosted on GitHub works with version 3.x of the ArcGIS Javascript API. That version of the API does not support 3-D. I have a version of CMV that works with version 4.x, including 3-D. However, that version is not available on GitHub. I've stopped guessing when I might release that version beyond a few of my existing customers who supported that effort. Working with the current CMV and supporting my customers has kept me very busy these past few years.
Robert Jones
@rjones0
@tmcgee many thanks! Exactly what I needed