Problem displaying dynamic map services with ArcGIS Google API

Discussion created by acwalker on May 29, 2012
Latest reply on May 30, 2012 by nliu
The knowledge base article shows how to overlay a service from ArcGIS Server over the google maps base layer.  The code in the article works perfectly until I replace the dynamic URL with my own map service.  I cannot get any of our dynamic map services to overlay like the ESRI one does.  Here's my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xmlns:v="urn:schemas-microsoft-com:vml">
  <title>ArcGIS JavaScript Extension for the Google Maps API Example</title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  <script src="" type="text/javascript"></script>
  <script src="" type="text/javascript" ></script>

  <script type="text/javascript">
    var gmap = null;

    function initialize() {
      gmap = new GMap2(document.getElementById("gmap"));
      var centerat = new GLatLng(0,0);
      gmap.addControl(new GLargeMapControl());
      gmap.addControl(new GMapTypeControl());
      gmap.setCenter(centerat, 1);
      var dynamicMap = new esri.arcgis.gmaps.DynamicMapServiceLayer("", null, 0.75, dynmapcallback);

    function dynmapcallback(mapservicelayer) {


<body onload="initialize();" onunload="GUnload();">
<div id="gmap" style="width: 500px; height:500px;"></div>