POST
|
I'm accessing a private layer from a server that uses an expired certificate (I have no control over this server). I haven't found a way to allow the proxy page to allow just this one expired certificate and not allow all expired certs. I want to know if it is possible to force the javascript api to not use the proxy for this layer so that any security problems are handled by the browser. Hopefully our users will have more influence over the data provider than we do . We are requesting the legend and while the proxy is not usually used for the layer itself, it always uses the proxy for the legend when using an esriRequest. I found the corsEnabledServers setting in esri.config.defaults.io and adding the domain to this list seems to keep it from proxying in Chrome, but not in IE9. The only solution I can think of if we can't stop the api from proxying this request is to use a different ajax request other than esriRequest. If I have to go that way, does anybody know if there are any concerns with accessing these services with native javascript or other popular library ajax requests: dojo.xhr, jquery.get, etc?
... View more
09-23-2014
04:22 PM
|
0
|
6
|
2463
|
POST
|
Jonathan Uihlein Thanks for your input, I can place the map in any container I wish, but the parent container will always be a part that I don't control. If the parent container is not visible, then any size I provide is ignored, since the map creation process inspects the actual displayed dimensions of the container, and if it is not displayed, the dimensions are 0 or undefined or NaN or something else equally unusable. I was hoping that the automatic sizing of 400 x 400 could be circumvented or interrupted either by just stopping it from happening or by delaying creation/initialization of the map until it is "safe" to use the provided dimensions. It seems that the only way to do this is with a interval that checks periodically for displayable dimensions or to use the callback that is unavailable to me from the containing application. What we are doing now is allowing the application to access the resize() and reposition() functions, so that when it knows that the map is displayable, it can call these explicitly. This exposes more of the underlying map API than we would like, but more importantly, at least it works.
... View more
09-18-2014
01:46 PM
|
0
|
0
|
611
|
POST
|
Thanks again for your response, Riyas Deen Thanks for clarifying when the problem occurs. I know the problem happens when the div is not displayed at the time that the map is initialized. I am looking for where or how this determination is made by the API so I can figure out how to either delay the map creation or resize/reposition the map once it does have displayable dimensions. It would be nice if this check (for displayable dimensions) was described explicitly in the API documentation. Also more event triggers during the map creation would make it easier to respond to certain situations. For now, I will explicitly allow the map consumer to access the resize() and reposition() functions so that the app takes care of these functions, rather than the map. If anyone has any idea how a map that doesn't control its container can still make sure it can be displayed, I would love to hear it. Thanks for all your replies!
... View more
09-04-2014
09:31 AM
|
0
|
2
|
611
|
POST
|
Thanks for the response K M, It is similar to what I wanted to do, but the map itself is in the modal. The modal isn't shown by the time the map is created, so the map can't confirm that it has an actual screen position to draw to, this causes it to have trouble drawing itself, and it automatically resizes itself to 400px x 400px. I'm trying to figure out from the map's point of view when it does have the ability to draw itself, or how the map can be reset (repositioned, resized, redrawn, etc) on demand, when an external library or somesuch requests it.
... View more
09-03-2014
03:54 PM
|
0
|
0
|
1783
|
POST
|
Thanks John, It's not that they won't give me an event to listen to, it's that this must work 1-way. The map component must handle its own events and expose what is necessary for the app team to handle everything else. I've had preliminary luck with using reposition instead of resize. If I come up with something that works, I'll post it. Thanks again
... View more
09-03-2014
01:24 PM
|
0
|
4
|
611
|
POST
|
Thanks for your input Ken Buja and John Grayson, You're right John, I don't have a resize event to listen to. I'm not controlling the container the other team is using at all. From what they tell me, it is not a resize, but a (Bootstrap custom) show event. I tried exposing the map.resize() event to them, so they could handle when they want the map to be resized, but once the map is sized (correctly or incorrectly), only an actual change in size of the containing div will allow the map.resize() to do anything, since the resize event actually checks for a change. Maybe I'm looking at this wrong. The way I see it, I either need to control when the map loads (so i need to know without relying on the library used to display the map, when it is safe to load), or have a function that the other team can call which will "reload" the map when, (they should know), it is safe to do so. Please let me know if I'm not seeing something or looking at this completely the wrong way.
... View more
09-03-2014
12:13 PM
|
0
|
3
|
1783
|
POST
|
Riyas Deen, Thanks for your response. According to the API Reference documentation you mention, autoResize is set to true by default. I tried explicitly setting it as you suggested, but unfortunately, it doesn't change the behavior. I did notice that even when I set the style width and height explicitly, it was replaced upon map creation by the default 400px when the map's container was not visible when the map was created. This is a serious problem, since calling resize() after the fact never actually resizes again, since the width and height of the container have been explicitly set (on the element itself, not using classes, ids or stylesheets) without checking if the size was already set, in fact, overwriting any explicitly set values. Do you know what check for size or visibility the map makes in order to determine whether to set default width and height?
... View more
09-03-2014
10:07 AM
|
0
|
0
|
1783
|
POST
|
I have a map that displays in a Bootstrap modal. The map is set to 100% of its container. Since it loads before the modal is made visible, the map assigns its containing div a css width and height of 400px. Since I am creating the map (but NOT the modal), I need to know what event or set of circumstances I need to wait for in order to properly initialize the map. If it is possible to re-initialize or have the map reset its values after an improper initialization I would like to know how to do that, too. To be clear, I cannot use the Bootstrap shown.bs.modal event, since the map cannot know about how it is shown (but it can, of course, inspect the DOM, so it might know something about where it is displayed). Any insights at all would be helpful.
... View more
09-02-2014
06:13 PM
|
0
|
14
|
5249
|
POST
|
Hi Kelly, I tried the examples you suggested. They don't have the problem. I don't have access to a public server to share code examples, but I noticed that the examples use the new API version 3.10. I switched my application to use 3.10 (I was using 3.9) and the problem isn't occuring right now. I note that in the "What's New" page for 3.10, the undefined "" error was fixed, maybe some of these async errors were also fixed, or maybe I'm just a dummy. In any event, thanks for the push in the right direction. I'll monitor the issue and see if it continues.
... View more
08-12-2014
11:06 AM
|
0
|
0
|
680
|
POST
|
One update...I cleared the cache and now I get the 30-40 errors no matter what basemap I select. Anybody who'd like to share any insights?
... View more
08-12-2014
09:31 AM
|
0
|
0
|
680
|
POST
|
When I use the basemap gallery to select an arcgis basemap upon map load, I get 30-40 errors like Cannot read property 'mapDiv_layer0_tile_4_2_7' of null.This seems to be because of a 0-length timeout that is requested when the original basemap is added, whose callback tries to access the tiles for that basemap which has already been replaced, (there's a new layer in its place). This doesn't happen if I choose a non-arcgis basemap like a Bing basemap. Can anyone tell me what is causing this and offer a solution to fix it? I have already tried not loading an initial basemap and using the basemap gallery to load the first basemap, but this does not work (no basemap is loaded, but no errors). If someone knows how to check if the requested basemap is an esri basemap without hard-coding the name or id or anything else, I would like to know that too, since i could load esri maps another way (on map initialization or by manually adding a layer). Thanks for your help!
... View more
08-11-2014
06:38 PM
|
0
|
3
|
1137
|
POST
|
Is it possible to just override whatever internal method the WMTSLayer uses to make the actual request to the WMTS endpoint? Then I could add a property and function to change the time. (I'd probably want to cache the frames, too). Is there an un-minified, un-obfuscated version of the library I can look at to extend/edit the WMTSLayer "class"? Thanks!
... View more
05-27-2014
09:57 AM
|
0
|
0
|
347
|
POST
|
Hi All, I want to access a time-enabled WMTS service and request several images based on time (the latest weather radar images). I can't find anywhere in the WMTSLayer class which lets me specify time. Does anybody know if this is possible? Thanks!
... View more
05-26-2014
12:19 PM
|
0
|
1
|
1003
|
POST
|
Hi, I have the exact same problem. The service I'm accessing is the public NOAA nowCOAST mapping service: http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/obs It returns its responses using Content-Type: application/vnd.ogc.wms_xml The layers work in IE and Firefox, but in chrome, I get the error message: "GetCapabilities request for http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/obs failed. (Response is null.)" This is very frustrating. The only workaround we have right now is to manually create an ajax request, parse the data and create a matching resource info object. I don't want to have to do this. Does anybody have a solution for this problem? Thanks!
... View more
01-14-2014
01:49 PM
|
0
|
0
|
1291
|
POST
|
I'm having a similar problem but with an ArcGISDynamicMapServiceLayer. If the google maps layer is the base layer, I have the same problem Lizd is having. If I use the ESRI World-Imagery layer as the base layer and hide it behind the google maps layer, it only screws up if the AGDMSLayer is shown before a zoom. After a zoom (whether the AGDMSLayer was visible or not), it has no problem. It seems like it is using the wrong extent to query and display the map. Is this a problem with the gmaps.GoogleMapsLayer? Is this even supported by ESRI? Any insights would be helpful.
... View more
10-05-2011
10:50 AM
|
0
|
0
|
886
|
Title | Kudos | Posted |
---|---|---|
1 | 10-27-2016 01:41 AM | |
1 | 05-12-2015 11:58 AM | |
1 | 08-22-2017 11:48 AM | |
1 | 11-21-2016 10:43 AM | |
1 | 10-25-2016 11:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|