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
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
ivo silvestre
@ivomts

Hi!

I’m trying to use cmv's find.js to query related records. I wonder if you can give me some advices?

Basically, I’ve a rest MapServer serving a Feature Layer related to a Table Layer.
What I need to do is to find a feature in the Table Layer, return some fields into the grid columns and zoom to the correspondent element in the Feature Layer.

{
description: 'test',
url: 'http://myserver/arcgis/rest/services/test/MapServer/',
layerIds: [4],
relatedTableId: 14,
searchFields: ["relationships/0/serie"],
minChars: 2,
gridColumns: [
{ field: 'snno', label: 'snno', width: 100, sortable: false, resizable: false },
{ field: 'u_mcons', label: 'u_mcons' },
{ field: 'serie', label: 'Nr serie' }
],
sort: [
{
attribute: 'u_mcons',
descending: false
}
],
prompt: 'p.e. "123456"',
selectionMode: 'single'
}

Thanks in advance.

Tim McGee
@tmcgee
@ivomts Are you asking about my Search widget? If so, there is an example that includes searching related records here
yogeshsharma505
@yogeshsharma505
@tmcgee Hi really appreciated .. Actually in my current project i need to deal with 2D as well as 3D so it will be great if you provide me solution using AGS JS 4.X version.Thanks in advance
ivo silvestre
@ivomts
@tmcgee Can I instead search for related records directlly using the queries parameters inside find.js?
Tim McGee
@tmcgee
@ivomts I think you are trying to use the Find widget. It uses the find operation of a Map Service. I am fairly certain that does not support related records.
yogeshsharma505
@yogeshsharma505
@tmcgee Thanks I understood due to some technical things we can not use 4.X for both 2D & 3D as of now but after some time we can.
ashishgis
@ashishgis
@tmcgee How to add and remove widget dynamically in cmv app
@tmcgee Please suggest solution, Thank in advance
Tim McGee
@tmcgee
@ashishgis you can load a widget at any time by publishing a topic. Removing widgets is a bit more problematic because of the dojo code needed to completely clean up the widget. I usually just show and hide widgets using CSS or other methods. If you use preload in the config effectively, the widget does not actually load until you want to show it. For example, by default a widget is not loaded until the TitlePane (or ContainerPane) that contains the widget is opened.
ashishgis
@ashishgis
@tmcgee Thank u