Take the 2-minute tour ×

I'm trying to add a WMS i have generated from a Arc Server into onto my google map. here is what I've tried,

In the main function

      addLayer("Transmission_TCircuits", "1");

The Function

 function addLayer(layer_name, layer_title, isdefault) {
    var WMS_URL = 'http://e********/arcgis/services/Transmission/TCircuits/MapServer/WMSServer?request=GetCapabilities&service=WMS';
    var G_MAP_LAYER_FILLED = createWMSTileLayer(WMS_URL, layer_name, null, "image/png", null, null, null, .5);
    var G_MAP_OVERLAY = createWMSOverlayMapType([G_NORMAL_MAP.getTileLayers()[0], G_MAP_LAYER_FILLED], layer_title);
    G_MAP_OVERLAY.layer = layer_name;
    if (isdefault) {

Nothing shows up. All help is much appreciated.

share|improve this question
Where have you gotten that code from? It doesn't seem right... The WMS method ´GetCapabilities´ will not display data - ´GetMap´ will. What happens in the method ´createWMSTileLayer´? Could you edit you post with that? –  Niklas Ringdahl Oct 19 '11 at 14:55
and please provide the createWMSOverlayMapType as well, the more complete your sample code is the easier it is to help –  Niklas Ringdahl Oct 19 '11 at 14:56
add comment


Your Answer



Browse other questions tagged or ask your own question.