Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So this seems like it should be super obvious, but I can't for the life of me figure out why I can't get any ESRI layers to show up on my map. I've tried different layers and messing around with the options, but all that happens is that both layer names show up in the layers panel, but only the Google layer actually shows up on the map. Here is the code I'm using:

function addOpenLayers() {
    var mapcenter = new OpenLayers.LonLat(-90.8, 46.45)
    var base = new OpenLayers.Layer.Google("Google Satellite", {type: google.maps.MapTypeId.SATELLITE, numZoomLevels:22});

    var olOptions = {
        controls: [new OpenLayers.Control.PanZoomBar, new OpenLayers.Control.LayerSwitcher, new OpenLayers.Control.Navigation],
    var olMap = new OpenLayers.Map("map", olOptions);


        new OpenLayers.Projection("EPSG:4326"),
    ), 10);

    //This is the part that doesn't work:
    var esriRoadsUrl = "";
    var esriRoads = new OpenLayers.Layer.ArcGIS93Rest("Roads", esriRoadsUrl, {layers: "0"});
    esriRoads.isBaseLayer = false;

share|improve this question
did u check out from firebug about the problem? – Aragon Aug 1 '12 at 7:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.