|
POST
|
I agree. However i think it is likely due to a code driven focus. I.e. if group options were respected, If i set layer12 visible, , it might do nothing if i forget to check if layer 9 (the group) is also visible. The logic gets really complicated if its 1. Check if group is on 2, If group not on turn on 3. Check if other layers in group already on but hidden by group 4. Deal with those layers 5. turn desired layer on. We, to simplify, just refuse to group layers in mxds that are destined for server.
... View more
12-05-2012
07:28 AM
|
0
|
0
|
1416
|
|
POST
|
you are calling addLayers twice. Remember this is all asynchronous. You call add layers, then define a legend in the callback. Likely after the legend is defined, the event actually occurs, triggering it. You then call addLayers again, which triggers the callback again, which tries to create a second legend.
... View more
12-03-2012
10:34 AM
|
0
|
0
|
1710
|
|
POST
|
Browsing the rest service gets a connection refused for me.
... View more
12-03-2012
08:38 AM
|
0
|
0
|
3408
|
|
POST
|
I am trying to add the WorldHydroReferenceOverlay layer to my basemap and seems it is not getting added as I don't see this layer on my map when viewing the map. Here is my sample code: var myMap = new esri.Map("mapDiv"); var baseMap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"); myMap.addLayer(baseMap); var referenceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://184.72.212.114:6080/arcgis/rest/services/WorldHydroReferenceOverlay/MapServer"); myMap.addLayer(referenceLayer); dojo.addOnLoad(init); I see the world topo map when viewing the webpage, but not the hydro map layer. Any help would be appreciated. PK I dont see the URL as valid, are you sure its correct?
... View more
12-03-2012
08:21 AM
|
0
|
0
|
3408
|
|
POST
|
although i might be reading it wrong, it looks like you are CREATING a legend on each layer add. So it would work the first time, but on the second layer it is trying to create a second legend.
... View more
12-03-2012
06:54 AM
|
0
|
0
|
1710
|
|
POST
|
Hi all I downloaded the StreetView widget for Sample Viewer ESRI http://www.arcgis.com/home/item.html?id=2ba0b738ae2c444f88c69ccd0d37c3f4 but I do not understand how to set it up reading the ReadMe.txt for example 1) Copy image in folder icons\icon\i_streetView.png in folder js\com\esri\solutions\jsviewer\assets\images\icons where is the folder js\com\esri\solutions\jsviewer\assets\images\icons? Thanks The Javascript Sample Viewer was abandoned by ESRI years ago. A few of us continue to maintain our own versions. If you are using the correct sample viewer, that folder structure should exist.
... View more
12-03-2012
04:44 AM
|
0
|
0
|
509
|
|
POST
|
That error can be safely ignored and is not related
... View more
12-02-2012
07:56 AM
|
0
|
0
|
1394
|
|
POST
|
yes 3.2 requires a css file http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/css.htm <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" />
... View more
11-30-2012
11:59 AM
|
0
|
0
|
1394
|
|
POST
|
Why are using the latest version of dojo (1.8.1) with such an ancient version of the api (1.6) Just use the 3.2 api, it comes with dojo 1.7. You do not need a separate call to dojo.
... View more
11-30-2012
11:15 AM
|
0
|
0
|
1394
|
|
POST
|
since you are running on your own server, you need to add ESRI's servers to the proxy.
... View more
11-30-2012
09:04 AM
|
0
|
0
|
842
|
|
POST
|
So I checked the folder I download for the app and a proxy is set up and saved in the same location as my application. I also have the following code in my html document. esri.config.defaults.io.proxyUrl = "proxy.ashx"; //Setting to use proxy file
esriConfig.defaults.io.alwaysUseProxy = false;
esriConfig.defaults.io.timeout = 180000; //ersi request timeout value
If I understood the documentation I read, this set up will automatically use the proxy page if the request exceeds 2000 characters. Also, the documentation for this app says that it is optimized for IE 7/8/9, Chrome, FireFox so it must be somethign I changed. The only things I changed were field names and map service names/url's. That looks fine, did you add your servers to the .config file?
... View more
11-29-2012
11:51 AM
|
0
|
0
|
2417
|
|
POST
|
GET requests (less than 2000 characters) don't need a proxy. POST does (>2000 characters). my guess is the size of the request is switching the request type to POST.
... View more
11-29-2012
11:09 AM
|
0
|
0
|
2417
|
|
POST
|
Thanks for the reply. Is that just an issue with Javascript, because I have a Silverlight app that I created and it runs fine on IE7? not sure. still better than needed an abandoned plugin though 😉
... View more
11-29-2012
11:02 AM
|
0
|
0
|
2417
|
|
POST
|
I am new to Javascript and have been working on configuring the ParkFinder Template from the Local Government App Gallery (http://www.arcgis.com/home/item.html?id=734512384d3b4b849aba2db0e33a80f2). So far I just swapped out all the ESRi layer/field names for mine. I got the app to work on Chrome and FIrefox, but run into an issue when testing it in IE7. The app loads and everything is fine until I try to search for parks. The map says "Loading" and never actually loads anything. As you can see in the attached image, the search Results portion is populated. However the Park info and Directions boxes do not even show up. I am guessing it is something with the routing functionality, but am not sure where to start. Any help would be greatly appreciated. Thanks, Mark Also, I just noticed that the infowindow does not work when I click on the park either. IE7 is not a CORS compliant browser, which means you have cross domain issues, which means you need a proxy setup.
... View more
11-29-2012
10:52 AM
|
0
|
0
|
2417
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|