POST
|
Hi Ghofran, The first problem is not the Portal issue, but rather the system. You have two options: 1. If this portal is only for testing, you may add FQDN to the hosts file like in the following string: 10.1.1.5 portal.domain.com and then distribute this file to all machines taking part in your test. 2. If the portal will be accessed from the large number of clients, ask your IT to add your machine to domain zone in your DNS. You may also need to add domain suffix to the IP configuration on your portal machine. Anyway, it would be a good idea to consult with your IT manager. When you will configure the Web Adapter, think the second problem also will gone. Regards, Gennady
... View more
03-19-2016
04:21 AM
|
1
|
0
|
1451
|
POST
|
Hi to All, Please, can somebody point me to the right place, where (in what assembly ?) I can find and use the object structure, used to serialize Web Map as JSON ? I need it in the proxy to add token to secure layers in print task. I'm trying to recreate this object manually according to the definition found here: http://server.arcgis.com/en/server/latest/create-web-apps/windows/exportwebmap-specification.htm But it is long work that sure was already done, and I'm in doubt about it's current and future compatibility with ExportWebMap process. I need object definition to allow Json Serializer / Deserializer to do their work accurately. May be this question was already asked and even answered, but unfortunately I couldn't find anything about it. Thanks in advance. Gennady
... View more
02-22-2016
03:40 AM
|
0
|
0
|
1374
|
POST
|
Hi ! I'm using ArcGISDynamicMapServiceLayer (API v.2.4) pointing to the Map service containing 40+ layers. Some of these layers defined visible in the MXD, others - not. I need to show selected features from one of layers. So I do the following:
layerDefs[layerID] = expression;
designLand.visibleLayers = new ArrayCollection([layerID]);
designLand.layerDefinitions = layerDefs;
designLand.dpi = 96;
designLand.imageFormat = "png24";
designLand.imageTransparency = true;
designLand.disableClientCaching = true;
designLand.visible = true;
designLand.alpha = 0.5;
It works fine in the development environment, and I can see in the Fiddler the correct request for export . But when the swf is uploaded onto the production server, this request is issued wrong: instead of setting layers=show:layerID (show:37 in my case), it is set to the list of all layers, defined as visible in the MXD. The only difference between two environments: in the dev environment I'm using proxy to access the production services. What may be wrong ? What should I do to isolate the problem ? Any help will be highly appreciated. Thanks in advance. Regards, Gennady
... View more
03-13-2014
08:30 AM
|
0
|
0
|
305
|
POST
|
Finally I've found... Not the cause of the problem yet, but at list the work around. Or may be my previous way should be called "work around"? In short, instead of calling ViewerContainer.getInstance().widgetManager.getWidget(addrWidgetID,true); directly I've used AppEvent.dispatch(AppEvent.WIDGET_RUN, addrWidgetID); Maybe anyway somebody can explain what was wrong in the first version and why it didn't work only in IE8 and 9? Thanks. Regards, Gennady
... View more
08-25-2013
09:45 PM
|
0
|
0
|
227
|
POST
|
Hi ! I need to load one of widgets dynamically (as a response to certain URL parameter). I decided that the most suitable place to do it is HeaderControllerWidget:
if ((ViewerContainer.urlConfigParams.street != null && ViewerContainer.urlConfigParams.house != null) )
{
var addrWidgetID:Number;
var addrWidget:IBaseWidget;
addrWidgetID = ViewerContainer.getInstance().widgetManager.getWidgetId(addrWidgetLabel);
addrWidget = ViewerContainer.getInstance().widgetManager.getWidget(addrWidgetID,true);
return;
}
It works fine in IE10, Chrome and FF, but in the IE8/9 the widget is never loaded and cursor stays in the busy state. System is waiting, and when I load this widget manually - it continues to function properly. Here is the link: Test link When cleaning the IE cache, the first run is successful, but only once. I tried to play with cache definitions without any success. Can somebody please shed light on this strainge behavior ? Thanks in advance. Regards, Gennady
... View more
08-19-2013
07:34 AM
|
0
|
2
|
463
|
POST
|
Hi All ! Environment: ArcGIS Server 10.0, Flex viewer 2.4, Flex API 2.4, Flex Builder 4.5 I need to show the exported image of the layer on the map. Here is the code:
private var designLand:ArcGISDynamicMapServiceLayer;
private var layerImage:MapImageLayer;
......
layerImage = new MapImageLayer();
layerImage.id = "designLand";
map.addLayer(layerImage);
designLand = new ArcGISDynamicMapServiceLayer(landURL);
......
var pars:ImageParameters = new ImageParameters();
var layerDefs:Array = new Array();
pars.dpi = 96;
pars.extent = map.extent;
pars.format = "png8";
pars.imageSpatialReference = map.spatialReference;
layerDefs[layerID] = expression; // The list of where conditions
pars.layerDefinitions = layerDefs;
pars.layerIds = [layerID];
pars.layerOption = "show"; // For sure
pars.transparent = true;
pars.width = map.width;
pars.height = map.height;
designLand.exportMapImage(pars,new AsyncResponder(onExportComplete,onExportFault));
.........
private function onExportComplete(img:MapImage, event:MapImageEvent):void
{
// var mi:MapImage = new MapImage();
// mi.extent = map.extent;
// mi.href = img.href;
layerImage.removeAll();
layerImage.alpha = 0.5;
// layerImage.add(mi);
layerImage.add(img);
layerImage.visible = true;
}
The image created OK, all MapImage parameters (extent,spatial reference,width,height) seem to be OK, only the initial extent of the MapImageLayer stays default. But image is shown with shift down, under the bottom boundary of the screen. Can somebody please explain, what I'm doing wrong. Thanks in advance. Regards, Gennady
... View more
05-27-2013
06:04 AM
|
0
|
0
|
455
|