jfbomber

NetworkError : 404 'bboxSR' parameter is invalid

Discussion created by jfbomber on Jun 28, 2011
Latest reply on Jun 28, 2011 by DSwingley-esristaff
I am getting the following error

"NetworkError: 404 'bboxSR' parameter is invalid .../MapServer/export?dpi=96&transparent=true&format=png8&bbox=-10804893.560439762%2C3860291.8999301037%2C-10803276.439560238%2C3861092.1000698963&bboxSR=%5Bobject%20Object%5D&imageSR=%5Bobject%20Object%5D&size=1354%2C670&f=image"


// Get Map Extent 
    var mapExtent = eval("(" + document.getElementById("MapExtent").value + ")");
    extent = new esri.geometry.Extent({
        "xmin":mapExtent.xmin,
        "ymin":mapExtent.ymin,
        "xmax":mapExtent.xmax,
        "ymax":mapExtent.ymax,  "spatialReference": { "wkid":mapExtent.spatialReference }
    });

    // Create Map
    map = new esri.Map("Map");
    map.setExtent(extent);

    // base layer
    baseUrl = "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer";
    baseLayer = new esri.layers.ArcGISTiledMapServiceLayer(baseUrl);
    baseLayer.id = "BaseLayer";

    // Data layer
    dataUrl = document.getElementById("dataUrl").value;
    dataLayer = new esri.layers.ArcGISDynamicMapServiceLayer(dataUrl);
    dataLayer.id = "DataLayer";

    // Add Layers
    map.addLayers([baseLayer, dataLayer]);
    window.onresize = resizeMap;

    dojo.connect(map, "onLoad", function () {
        // Do other stuff                           
    });

Outcomes