jna3856

javascript feature layer render issue

Discussion created by jna3856 on Nov 7, 2011
Latest reply on Nov 7, 2012 by sunilpalkar
i'm adding a feature layer service via the js api. i'm getting the following errors/warnings...

Unexpected value NaN parsing x attribute.
Unexpected value NaN parsing y attribute.
Unexpected value matrix(1.00000000,0.00000000,0.00000000,1.00000000,NaN,NaN) parsing transform attribute.

the features from this service are being rendered as expected, with the addition of a stacked set of these features in the far upper-left of the map view port too!

the following is the code which i'm using to add the feature service layers...

var serviceRequestLayerURL = "http://arcgisserver.northwind-inc.com/ArcGIS/rest/services/itd_service/MapServer/0";
var serviceRequestmobileLayerURL = "http://arcgisserver.northwind-inc.com/ArcGIS/rest/services/itd_service/MapServer/0";

var serviceRequestLayer = new esri.layers.FeatureLayer(isBorwser ? serviceRequestLayerURL : serviceRequestmobileLayerURL, {
                mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
                outFields: ["*"],
                id: serviceRequestLayerId,
                displayOnPan: true
            });
            map.addLayer(serviceRequestLayer);

            var serviceRequestCommentsLayer = new esri.layers.FeatureLayer(serviceRequestCommentsLayerURL, {
                mode: esri.layers.FeatureLayer.MODE_SELECTION,
                outFields: ["*"],
                id: serviceRequestCommentsLayerId,
                displayOnPan: false
            });
            map.addLayer(serviceRequestCommentsLayer);

Outcomes