Select to view content in your preferred language

2.9 beta defect - cannot create a WMS layer

1345
9
Jump to solution
06-01-2012 09:46 AM
CoreyAlix
Regular Contributor
Issue can be reproduced on this jsfiddle.
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Notable Contributor
Looks like this issue is fixed in version 3.0 which will be released later this month.

View solution in original post

0 Kudos
9 Replies
KellyHutchins
Esri Notable Contributor
Looks like this issue is fixed in version 3.0 which will be released later this month.
0 Kudos
CoreyAlix
Regular Contributor
Looking forward to 3.0 this June, then.  It does work with 3.0 beta...

http://jsfiddle.net/bEGcp/1/
0 Kudos
JeffPace
MVP Alum
Thats good news, as we just started using WMS pretty heavily.

side note, and sorry to hijack thread, but has something major changed between 2.8 and 2.9 beta/3.0 beta?

my site works perfectly using

<script type="text/javascript" src="http://servicesbeta.esri.com/jsapi/arcgis/2.8"></script>


but if i use

<script type="text/javascript" src="http://servicesbeta.esri.com/jsapi/arcgis/2.9"></script>

or
<script type="text/javascript" src="http://servicesbeta.esri.com/jsapi/arcgis/3.0"></script>


i get all kinds of errors looking for files locally? such as

http://<localserver>/esri/nls/jsapi_en-us.js
Error: Unable to load ../../esri/nls/jsapi_en-us.js status:404
http://servicesbeta.esri.com/jsapi/arcgis/3.0
Line 15

http://<localserver>/<localdirectory>/dojox/gfx/svg.js
http://<localserver>/<localdirectory>/dijit/Dialog.js
NetworkError: 404 Not Found
0 Kudos
JeffPace
MVP Alum
any ideas?
0 Kudos
CoreyAlix
Regular Contributor
The move from 1.6 to 1.7 is noteworthy...try using the AMD syntax as shown in the jsfiddle above or show me a jsfiddle which doesn't work and maybe I can fix it:

   require ( ["esri/map", "esri/layers/wms"], function () {
      // your code
   });
0 Kudos
JeffPace
MVP Alum
The move from 1.6 to 1.7 is noteworthy...try using the AMD syntax as shown in the jsfiddle above or show me a jsfiddle which doesn't work and maybe I can fix it:

   require ( ["esri/map", "esri/layers/wms"], function () {
      // your code
   });


appreicate the response, but i am not even getting to the require statements.  I think it is failing loading the api?

I will see if i can make a simple version reproduce the error.
0 Kudos
S_Ector
Emerging Contributor
I'm trying to move to V3.0 and am seeing the same errors as noted in the previous post:

Error: Unable to load ../../esri/nls/jsapi_en-us.js status:404
GET http://<myhost>/<mypath>/dojox/gfx/svg.js 404 Not Found

Both cases are looking locally for the file.  Does anyone know of a solution?
0 Kudos
JeffPace
MVP Alum
you can no longer run files locally, must be run off a webserver.
0 Kudos
S_Ector
Emerging Contributor
Thanks.  I removed the baseURL attribute from dojoConfig and it fixed the issues.
0 Kudos