POST
|
Hi Michael, I wonder if there is an update on this issue. I have the exactly the same question: if I have too many layers, the Legend can not fit all the layers into the printout on AGS.
... View more
06-13-2016
06:59 AM
|
0
|
1
|
1773
|
POST
|
Hi Alex: The whole application works fine in Chrome and Firefox. But it doesn't load properly in IE11. The js code is very long. I don't know which part is needed to help diagnosis. Below I attached the functions I used in the code. require([ "esri/map", "dojo/_base/connect", "esri/dijit/BasemapGallery", "esri/dijit/Print", "esri/tasks/PrintTask", "esri/tasks/PrintParameters", "esri/tasks/LegendLayer", "esri/tasks/PrintTemplate", "esri/dijit/Search", "esri/arcgis/utils", "esri/geometry/Extent", "esri/geometry/scaleUtils", "esri/geometry/Point", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol", "esri/toolbars/draw", "esri/graphic", "esri/geometry/Polygon", "esri/tasks/FeatureSet", "esri/tasks/query", "esri/tasks/QueryTask", "esri/InfoTemplate", "esri/tasks/IdentifyTask", "esri/tasks/IdentifyParameters", "esri/dijit/Popup", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/layers/FeatureLayer", "esri/dijit/Legend", "esri/dijit/LayerList", "esri/dijit/Scalebar", "dojo/_base/Color", "dojo/_base/array", "dojo/store/Memory", "dojo/_base/declare", "dgrid/OnDemandGrid", "dgrid/Selection", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/form/ComboBox", "dijit/form/FilteringSelect", "dijit/form/HorizontalSlider", "dijit/form/TextBox", "dojo/ready", "dojo/parser", "dijit/registry", "dojo/dom", "dojo/dom-attr", "dojo/on", "dojo/query", "dijit/form/ComboBox", "dijit/form/Select", "dojo/_base/array", "dojo/dom-construct", "dojo/domReady!", "dijit/form/Button", "dijit/WidgetSet", ], function( Map, connect, BasemapGallery, Print, PrintTask, PrintParameters, LegendLayer, PrintTemplate, Search, arcgisUtils, Extent, scaleUtils, Point, SimpleMarkerSymbol, SimpleFillSymbol, SimpleLineSymbol, Draw, Graphic, Polygon, FeatureSet, Query, QueryTask, InfoTemplate, IdentifyTask, IdentifyParameters, Popup, ArcGISDynamicMapServiceLayer, FeatureLayer, Legend, LayerList, Scalebar, Color, array, Memory, declare, Grid, Selection, BorderContainer, ContentPane, ComboBox, FilteringSelect, HorizontalSlider, TextBox, ready, parser, registry, dom, domConstruct, domAttr, on, query, arrayUtils ) { ready(function() { // Parse DOM nodes decorated with the data-dojo-type attribute parser.parse(); });
... View more
05-16-2016
09:40 AM
|
0
|
0
|
550
|
POST
|
Hello: I developed an application based on ArcGIS Server 10.3.1 and JavaScript 3.16. The application works well in Chrome and Firefox, but it doesn't work in IE11. I wonder if I miss anything in the code. Can anyone give me some insights? I have read discussion on CORS and proxy pages, but those seem not an issue for the new version. Below is my HTML file: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/> <title>S4 ArcGIS Map Web App Template</title> <link rel="stylesheet" href="http://js.arcgis.com/3.16/dijit/themes/nihilo/nihilo.css"/> <link rel="stylesheet" href="http://js.arcgis.com/3.16/esri/css/esri.css"/> <link rel="stylesheet" href="css/map.css" type="text/css"/> <script src="http://js.arcgis.com/3.16/"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="js/map.js"></script> </head> <body class="nihilo"> <div id="bcMain" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline', liveSplitters:'true'"> <!-- Header --> <header> <div id="cpTitle" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'top'" style="height: 60px"> <div id="mapTitle"><h1>Map U.S.A Project</h1></div> <div id= "toolbar"> <div id="toolbt"> <button data-dojo-type="dijit/form/Button" id="downLD" onclick='downloadCSV({ filename: "S4DownLoadFile.csv" });'>Download CSV</button> <button data-dojo-type="dijit/form/Button" id="drawPoly" onclick="getdrawingState('poly');app.toolbar.activate(esri.toolbars.Draw.POLYGON);map.graphics.clear();map.infoWindow.hide()">Polygon</button> <button data-dojo-type="dijit/form/Button" id="singlePoly" onclick="getdrawingState('single');app.toolbar.deactivate(esri.toolbars.Draw.POLYGON);map.graphics.clear();map.infoWindow.hide()">Reset</button> <!--<div id="divPrint"></div>--> </div> <div id="divPrint"></div> </div> </div> </header> <!-- Sidebar --> <div id="cpLeading" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="splitter:'true', region:'leading'"style="width: 380px"> <br> <label for="category"></label> <input id="category" /> <br> <br> <label for="layerName"></label> <input id="layerName" /> <br><br> <div id="slider" style="margin-left: 60px"> <ol data-dojo-type="dijit/form/HorizontalRuleLabels" container="topDecoration" style="height:1.5em;font-size:75%;color:gray;"> <li>1940</li> <li>1950</li> <li>1960</li> <li>1970</li> <li>1980</li> <li>1990</li> <li>2000</li> <li>ACS</li> <li>2010</li> </ol> </div> <div id="divLegend"></div> <!-- <div id="divPrint"></div>--> </div> <!-- Main Content Area --> <div id="mapMain" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"> <div id="divSearch"></div> <div id="divBasemapClick"> <div data-dojo-type="dijit/TitlePane" data-dojo-props="title:'Switch Basemap', closable:false, open:false"> <div id="divBasemapContent" data-dojo-type="dijit/layout/ContentPane"> <div id="basemapGallery"></div> </div> </div> </div> <!--<div id="BasemapToggle"></div>--> <div id="cpCenter" data-dojo-type="dijit/layout/ContentPane"></div> <div id="cpBottom" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="splitter:'true', region:'bottom'"> <!-- <div id="divGrid"></div>--> </div> </div> </div> </body> </html>
... View more
05-12-2016
01:33 PM
|
0
|
4
|
4967
|
POST
|
Hello: My GIS server hosts a dynamic map service which contains several layers. Each layer is a designed map showing a field from the attribute table of a shapefile. How can I get the field name from the dynamic map service REST URL with JavaScript API? I am using ArcGIS Server 10.3.1. Thanks in advance!
... View more
12-09-2015
09:16 AM
|
0
|
0
|
1139
|
POST
|
Dear Simon: I am also trying to program a dropdown menu or radio button to toggle my layers. My problem with the default Layer List Widget is that I don't want users to open two layers at the same time due to poor map overlaying. The dropdown menu or radio button would limit users' access to only one layer at a time. Can you share some your code so I can learn from your wisdom? Thanks, Yi
... View more
09-21-2015
06:59 AM
|
0
|
0
|
681
|
POST
|
Hi Jake: Thanks for your reply! I guess your solution might solve the problem but lead to another one. If I add two services into the map, the layer list widget will show two services (but essentially the same map). This is kind of anoyying. Is there a way to solve it?
... View more
09-08-2015
11:11 AM
|
0
|
1
|
892
|
POST
|
Hello: My question is about improving a feature service performance on the ArcGIS Server. I publish a large polygon shapefile, which is census track level data for the whole US. It takes a long time to load the whole map when the web application starts up. My idea is to build cache at the larger scale (nation or state level), so the map can start up faster at larger scale. As users zoom into smaller scale, like county or city, the map will display as dynamic service (don't build caches at smaller scale). Is it possible to consume the same service in this mixed style, or are there any other ways to improve client performance? I greatly appreciate your guidance. Thank you in advance!
... View more
09-08-2015
09:29 AM
|
0
|
7
|
6906
|
POST
|
Hello: I have a question about the Layer List Widget in the Web Appbuilder 1.2 for the ArcGIS Server 10.3.1. My map service has multiple layers of maps. The default setup of Layer List Widget allows users to toggle as many layers as they want. It is not good for display since multiple layers overlay on each other. So I want to allow users to toggle only one layer. The current layer will be unchecked if a new layer is checked. How can I do it? I greatly appreciate any guidance. Thank you in advance!
... View more
09-08-2015
06:34 AM
|
0
|
0
|
2146
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|