A community-supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit - https://cmv.io/
@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 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.
?locale=
to the url. Here is an example using Egyptian Arabic.
@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.
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.
find
operation of a Map Service. I am fairly certain that does not support related records.
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.
preload
since it is set to false
by default. The identify widget is the only TitlePane widget in the demo that preloads before its TitlePane is opened.
@tmcgee yes, Find operation does not support related records...
I didn't know how to use your Search widget inside my cmv, so I start to work in other way: query my SQL Server stand alone table and zoom the result using an auxiliar field with x,y coordinates. But now I know that it also doesn't support stand alone tables...
Maybe using your Search widget inside the search tab (is what I want instead of using Attributes Tables) is more easy to implement.
Is there anyone with the similar issue?
Thanks!
@TOldemeyer_gitlab You can create a new custom widget using this one as a starting point. It has the basics for querying a sublayer - in this case, to get metadata. (You can simplify the code greatly since that example does more than you need). You would do a similar query to get the complete extent for all features in the layer. A query that ends up something like this:
which returns this:
{
"extent": {
"xmin": -122.51129560300001,
"ymin": 33.75,
"xmax": -108.60000000000002,
"ymax": 38.100000000000023,
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
}
}
}
As part of your query, you'll want to reproject the coordinates into the spatial reference used by your map (usually Web Mercator, WKID 102100).
Here's a code snippet for adding the menu for the sublayers.
Hoping this is enough to get you going.