|
POST
|
I am having trouble loading WMS layers in the new api. After I create my WMS layer, I do map.addLayer(layer) . On the first WMS layer, I get error Loading map service at url: http://www.mymanatee.org/lizardtech/iserv/ows TypeError: _9.spatialReference is null MapManager however, the line before add layer is console.log("mm llh: "+layer.id + " "+layer.spatialReference.wkid ); which results in mm llh: 2011 Aerials 102100 so the spatial reference is set properly. I am looping through 6 layers, 1st one always fails, next 5 always succeed. Regardless of order. The result is the layer draws!!! however it is created on top of the graphics layer. I reported this before, but wanted to re-report now that 3.0 is final. Code for creating layer mapServiceInfo.label = "2011" mapServiceInfo.url = "http://www.mymanatee.org/lizardtech/iserv/ows" mapServiceInfo.catalog = "2011" 2003, 2007, 2008, 2009, 2010, 2011 are all valid values else if (mapServiceInfo.type === "wms") {
var layerInfo = new esri.layers.WMSLayerInfo({
"name":mapServiceInfo.label,
"title":mapServiceInfo.label
});
var resourceInfo = {
extent: new esri.geometry.Extent({
"xmin":-9214584.290114,
"ymin":3145848.430227,
"xmax":-9133734.228469,
"ymax":3208214.597832,
"wkid": 102100
}),
layerInfos: [layerInfo],
version:"1.1.1"
};
layer = new esri.layers.WMSLayer(mapServiceInfo.url, {
resourceInfo: resourceInfo,
id: mapServiceInfo.label,
visibleLayers: [mapServiceInfo.catalog],
type: "wms"
});
... View more
06-19-2012
08:23 AM
|
0
|
0
|
1640
|
|
POST
|
I was able to get rid of the cross origin error by adding the allow cross origin header. I used the instructions here: http://enable-cors.org/ I still get the "Uncaught TypeError: Cannot read property 'className' of null " error even after this is fixed, this is the issue I am considering to be a bug until I hear otherwise. Where did you add it?
... View more
06-14-2012
07:07 AM
|
0
|
0
|
2467
|
|
POST
|
I am attempting to upgrade to version 3.0 of the API, and I have started getting errors. The error I get is seen in the sample http://help.arcgis.com/en/webapi/javascript/arcgis/demos/widget/widget_basemapManual.html I imagine this is a bug since the sample is broken as well. Has anyone else seen or resolved this issue? Thanks, Adam Conner City of Philadelphia I get the same error, both on the sample and on my own app. Whenever a layer is loaded it tries to access http://sampleserver1.arcgisonline.com/ArcGIS/rest/info?f=json or in my case also http://services.arcgisonline.com/ArcGIS/rest/info?f=json (world basemap) and http://www.mymanatee.org/arcgis/rest/info?f=json (local services) These return valid json (200 0k http code) but for some reason throw an error in the app the error is (on the sample) XMLHttpRequest cannot load http://sampleserver1.arcgisonline.com/ArcGIS/rest/info?f=json. Origin http://help.arcgis.com is not allowed by Access-Control-Allow-Origin. and on my local development site XMLHttpRequest cannot load http://www.mymanatee.org/arcgis/rest/info?f=json. Origin http://jpgisdev.intranet is not allowed by Access-Control-Allow-Origin. Its seems like arcgis server is not properly returning the Access-Control-Allow-Origin "*" headers in the response.
... View more
06-14-2012
06:38 AM
|
0
|
0
|
2467
|
|
POST
|
As a developer, please for the love of pete do not call this new layer type a "dynamiclayer". There is already enough confusion between a layer (mapservice) layer (api), etc.. The functionality sounds great, just please pick a different name.
... View more
06-11-2012
12:25 PM
|
0
|
0
|
984
|
|
POST
|
Just ruling it out, but does the same error occur pointing to the mxd instead of the msd? that would at least focus the msd as the error. Is the data layer by chance a spatial view?
... View more
06-11-2012
09:03 AM
|
0
|
0
|
937
|
|
POST
|
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.
... View more
06-07-2012
06:51 AM
|
0
|
0
|
2241
|
|
POST
|
In the sample beolw http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_attribute_inspector.html what does this line signify..selectQuery.geometry = evt.mapPoint; Somehow I am not able to return evt.mappoint objetct that it needs to return when I add an alert(map.evt)..Can someone guide me on this Thank you in advance its in the onclick event, so it is setting the selection location (the query's geometry, i.e. where to search) to the coordinates of the evt Since the onclick is in screen geometry (pixel height/width) the event (evt or click) 's mapPoint property is "where the user clicked the map in map units).
... View more
06-06-2012
11:52 AM
|
0
|
0
|
858
|
|
POST
|
http://msdn.microsoft.com/en-us/library/dd435699.aspx
... View more
06-04-2012
10:19 AM
|
0
|
0
|
1197
|
|
POST
|
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
... View more
06-04-2012
05:55 AM
|
0
|
0
|
2241
|
|
POST
|
ok maybe agree wasnt the right word, how about "begrudgingly work together" For us, not a single agency we work with (including ourselves) would ever stored data in lat/long. We have been using on the fly projection in the data frame to web mercator and performance has been more than satisfactory. Just tile more, and the coversion is precomputed, at least for display 🙂
... View more
05-30-2012
04:26 AM
|
0
|
0
|
1847
|
|
POST
|
i actually feel its a "miracle" everyone (GOOGLE, BING, ESRI, OPEN STREET MAPS) found a way to all agree on a coordinate system. I think lat/long would be a monster step backwards I think we are actually at a state where the coordinate system doesnt really matter, and as developers should be nearly or completely transparent to the end user.
... View more
05-29-2012
11:13 AM
|
0
|
0
|
1847
|
|
POST
|
I am not sure you can use albers projection with google. Can you try redoing your service in web mercator aux sphere ?? You don't need top change your data, just change the data frame projection in the msd, restart your service and clear your rest cache.
... View more
05-29-2012
05:22 AM
|
0
|
0
|
1456
|
|
POST
|
yes i looked at the api documentation and while they talk about dijit.dropdownmenu i could not find it in the api. Curious how you solved the issue as well
... View more
05-25-2012
12:16 PM
|
0
|
0
|
805
|
|
POST
|
Jeff, here's Douglas Crockford's comment on why he removed comments from JSON: https://plus.google.com/118095276221607585885/posts/RK8qyGVaGSr -Andy THanks for the link. IT really isnt a big deal, more of just a watershed moment when "why is my json always invalid" is oh - no comments allowed!!
... View more
05-25-2012
05:48 AM
|
0
|
0
|
6497
|
| 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
|