Select to view content in your preferred language

Simple app

3078
14
Jump to solution
01-23-2013 01:30 PM
ChristineZeller
Occasional Contributor
I have a simple app.  And I'm consuming base layers using the base layer template sample.  Basically my base layer, whichever one I pick (bing, esri imagery, streets, canvas, etc) doesn't complete draw.  Only a few tiles draw...no matter what scale I'm at.  Is there a setting in my app that could be restricting this? It can't be specific to the base layer because of them are acting this way and I have a big list (Esri, Bing, and my own)

Thanks
0 Kudos
14 Replies
KellyHutchins
Esri Notable Contributor
Based on the error message regarding the wkid it sounds like you may be running into the following:

From the 'What's new at 3.3' doc.

http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#whats_new

"Creating a geometry without specifying a spatial reference defaults to WGS84 (wkid 4326). Apps that previously created geometries with non-WGS84 coordinates without a spatial reference now must specify the geometry's spatial reference."


So check your code and see if you are creating a geometry that does not have a spatial reference defined.

Kelly
0 Kudos
ChristineZeller
Occasional Contributor
Thanks Kelly,

Im looking into it. I don't think I am:


// build query
        queryTask = new esri.tasks.QueryTask("https://myserver/pubgis/rest/services/Signs/Signs2/MapServer/0");
     

        //build query filter
        query = new esri.tasks.Query();
        query.returnGeometry = true;
        query.outFields = ["*"];
        query.outSpatialReference = map.spatialReference;   



I'm seaching your samples and ref and I ca'nt seem to find how to declare the

I don't want it default to 4326 becasue my ref is
Spatial Reference: 102100  (3857)


Just don't know where and/how to set it yet.

      query.SpatialReference = map.spatialReference;

or
      query.inSpatialReference = map.spatialReference;
0 Kudos
KellyHutchins
Esri Notable Contributor
Can you debug your code and see if  g.geometry.spatialReference.wkid has a value? You can do this by setting a breakpoint at that line using either Firebug or Chrome Dev Tools.
0 Kudos
ChristineZeller
Occasional Contributor
Kelly,

Thanks again for all the time.

I don't think it is the spatial ref...the parameters I captured with the null result was based on a null query in the 3.0 API.

In API 3.3 it is getting caught up at line 34 column 1 in your API.  Not sure what to do.  I could send you the link of my address, which is public if there was a easy secure way to share it with you.
0 Kudos
KellyHutchins
Esri Notable Contributor
You can email the link to khutchins@esri.com
0 Kudos