Select to view content in your preferred language

Layer loadError with JavaScript 3.12 API

6471
12
01-09-2015 08:21 AM
MichaelLundin
Deactivated User

I'm working on upgrading to the 3.12 version of the ArcGIS JavaScript API, and I'm hitting a bit of a snag. If I create a separate page and add a layer to a map everything works fine, so I know I have the API set up correctly. However, in my application, there comes a point where if I create an ArcGISTiledMapServiceLayer, it is immediately created with a loadError of "Error: no match found". The error occurs before the layer is added to the map (and even if it's never added to the map). I'm trying to create the smallest possible set of code for reproducing the problem, but haven't been able to isolate where it's happening. I apologize for not including any code samples, due to that, and will continue to try and get to a point where I can.

More what I'm wondering is if anyone has hit this error before, and what it might mean. To make sure it wasn't my layer that was causing the problem, I have used multiple layers and I am currently trying with one of the ESRI base layers:

var layer = new ArcGISTiledMapServiceLayer('http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer');

Using Fiddler, I've also noticed that when I do this, no http request is made to the endpoint.

Any help on this would be greatly appreciated.

Thanks.

0 Kudos
12 Replies
MichaelLundin
Deactivated User

Kelly,

Thanks for the reply, and the explanation of the differences. Your suggestion of the addition of the corsEnabledServers works great, though, in fact, we found that we didn't really need the call we had to the xhrPlugin after all, so we have removed that.

Thanks much,

Mike

JeffPace
MVP Alum

Can you open a bug ticket? Sounds like you have a reproduceable case and if it worked at 3.11 and not at 3.12 that is definitely are error.,

0 Kudos
MichaelLundin
Deactivated User

I would if I knew where to do that. I don't see a place on the tech support page. Am I missing something?

0 Kudos