|
POST
|
I am working on a menu called "rightPanel" that slides left and right. I have a div called "leftPanel" that contains another div called "mapDiv", which contains the map. When rightPanel slides to the right, both leftPanel and mapDiv are stretching to fill the space where rightPanel used to be. However, the map is not updating to fill this space. I've tried using map.refresh(); but this seems not to do anything to my map. Anybody see what's going wrong? jsfiddle (click the lock icon to slide rightPanel left and right)
... View more
07-09-2015
11:57 AM
|
0
|
6
|
3956
|
|
POST
|
Thejus, thank you that seems to be correct. Changed it to run on the "layers-add-result" event and it works perfectly!
... View more
06-26-2015
03:39 PM
|
0
|
0
|
1697
|
|
POST
|
I'm not really very familiar with CORS...you are saying this is a more generic error that doesn't relate to my secured layer? Sounds like something I can disregard then? Do you see any reason layerEnviroSIDRelate.loaded is always false, even though the layer appears on the map? I may ask ESRI tech support about that.
... View more
06-26-2015
01:37 PM
|
0
|
2
|
1697
|
|
POST
|
I should also add, I was told I would have to use a proxy to avoid users having a sign-in dialog pop up for the secured layer. However we found that users are not getting the sign-in dialog - they are able to view this secured layer based on their permissions configured in Server Manager. From what I understand, this should not be possible, but it is working.
... View more
06-26-2015
01:30 PM
|
0
|
0
|
1697
|
|
POST
|
Hi Robert, I posted to jsfiddle but it's not functional - I got errors adding my external resources because some of them are http and not https? You wouldn't be able to see my map layers anyways as they are on our intranet. The test for layer.loaded is in the function mapLoad, near the bottom of the js code. Switching out for our non-secured layer (layerCadastral) this works as intended - so if I put an error in the path for layerCadastral, loaded = false and if I leave the correct url, loaded = true. I just can't figure out why I would be getting a security error, while the layer seems to load fine and is totally accessible. Specifically, this is what comes up in the NetBeans console: Failed to load resource: the server responded with a status of 401 (Unauthorized) (13:05:43:872 | error, network) at http://[private server]/arcgis/rest/info?f=json XMLHttpRequest cannot load http://[private server]/arcgis/rest/info?f=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8383' is therefore not allowed access. The response had HTTP status code 401. (13:05:43:873 | error, javascript) at public_html/MOR.html
... View more
06-26-2015
01:24 PM
|
0
|
4
|
1697
|
|
POST
|
Hi, I have one secured layer in my map. Every time I run the map from NetBeans, there is a 401 (Unauthorized) error logging in the console for this secured service. Despite this, the layer is visible and useable on the map (identify, query work fine, geometry shows up fine). I'm not sure what's causing the 401 error - I have myself set up to have access to this service, so that shouldn't be an issue. For those users who should not have access, I need to gray out the item in the layer menu where they would turn the layer on and off, and deactivate its checkbox. This works fine, and I have it set to do this if layer.loaded === false. Problem is, it always === false, even though it loads and is viewable. Anybody have an idea why this might be?
... View more
06-26-2015
11:48 AM
|
0
|
10
|
4710
|
|
POST
|
I'm trying to have an alert popup whenever javascript logs an error. Am I correct in using the code: window.onerror = function (errorMsg, url, lineNumber) {
alert('Error: ' + errorMsg + ' Script: ' + url + ' Line: ' + lineNumber);
}; This seems not to produce an alert box. Currently my map is creating a 401 error for a layer every time it loads, as well as an error for a missing favicon, so something should be popping up in the alert box. I've tried putting this code at the start of my javascript file before any other code, inside a function to update layers when they are turned on and off, and inside a function that runs on map load...nothing happens. I'm still learning my way around Javascript so not sure where I'm going wrong.
... View more
06-26-2015
10:00 AM
|
0
|
2
|
3938
|
|
POST
|
Thanks Matt, I look forward to 3.14 then! Do you know the expected release date?
... View more
06-23-2015
03:25 PM
|
0
|
0
|
3202
|
|
POST
|
Hi Robert - I see that it does work, it's actually just suggesting from the displayField which is DISTRICTID in this case. What I would like (using this example) is for PARTY to populate the suggestions dropdown when you start typing "republican" for example - without having to code every service layer/field combo separately. Is there a way to have multiple displayFields? For my purposes, it's not ideal to populate the suggestions list with data from another field. The way it's set up if I have a user searching by owner name, the lot number would pop up for them to choose from or vice versa - I'd rather the user see suggestions for the actual text they are typing. A user searching on owner name would have to know and recognize the lot number, for example, which is usually not going to be the case for my users.
... View more
06-23-2015
10:58 AM
|
1
|
6
|
3202
|
|
POST
|
According to ESRI documentation, you should be able to add an array of fields for the widget to search on. So this should work: searchFields: ["LOT_NO", "CITY", "OWNER"] But it does not. Am I making an error in syntax? It seems to only allow one field. I want virtually every layer in my map to be searchable, but if I have to push a new source for every searchable field in every layer, the drop-down is going to become cumbersome - it already has with only a few layers (one category for Lots - Lot Number, one for Lots - City, Lots - Owner, etc.). I probably have around 30-40 layers in my map from various services. Not to mention it seems like a lot of unnecessary code...
... View more
06-22-2015
04:00 PM
|
0
|
8
|
8344
|
|
POST
|
Hi Domenico, I actually do want to use SOI's eventually but haven't been able to find much documentation. I tried searching NetLayerAccessSOI but couldn't find any documentation. Could you post a link?
... View more
06-22-2015
08:04 AM
|
0
|
1
|
1715
|
|
POST
|
Hi all, I'm working with the ESRI search widget, and I have a query layer that has a 1:M relationship (one polygon, multiple records). I would like for the InfoWindow to pop up showing a table of all the results for the polygon which has been searched on and selected - how to do this? Currently I have it set up so that the user can search on the polygon's name. In the query layer's attribute table, it can be seen that each polygon name is multiplied by the number of records in the table that it is joined to. I'm also getting multiple polygon names in the search suggestions, which I'd like to eliminate but I'm not sure if this can be controlled.
... View more
06-19-2015
09:17 AM
|
0
|
2
|
3560
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-09-2016 10:46 AM | |
| 1 | 01-21-2016 10:04 AM | |
| 1 | 06-23-2015 10:58 AM | |
| 1 | 01-19-2016 11:19 AM | |
| 1 | 08-10-2016 02:06 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|