[development] GMap and the White Screen Of Death

Gustavo Cabral gmcabral at gmail.com
Sat Jul 31 00:02:44 UTC 2010


Hi there:
I've installed drupal 6.17 whit gmap module, It's working fine, I
proved the macro code on a node:

[gmap|id=map|center=49.2,-123.1|zoom=7|width=600px|height=400px|control=Small|type=Map]

And It shown a google map correctly. But when I proved this snippet:
<?php
$north = 38.897546;
$east  = -77.039394;
$zoom  = 16;
$mywmss=array(
array('name'=>'Terraserver',
                    'url'=>'http://terraservice.net/ogcmap6.ashx?',
                    'format'=>'image/jpeg',
                    'minresolution'=>'1',
                    'maxresolution'=>'17',
                    'layers'=>'DOQ',
                    'copyrights' => array(array(
                      'minzoom'=>'1',
                      'bounds'=>'-190,-90,180,90',
                      'text'=>'&copy; terrasever',
                      )),
                    'overlaywith'=>'Hybrid',
                    'merczoomlevel'=>'5',
    ),
array('name'=>'Lizardtech',

'url'=>'http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS',
                    'format'=>'image/jpeg',
                    'minresolution'=>'1',
                    'maxresolution'=>'17',
                    'layers'=>'DC',
                    'copyrights' => array(array(
                      'minzoom'=>'1',
                      'bounds'=>'-190,-90,180,90',
                      'text'=>'&copy; lizardtech',
                      )),
                    'overlaywith'=>'Hybrid',
                    'merczoomlevel'=>'5',
    ),
array('name'=>'NASA_JPL',
                    'url'=>'http://wms.jpl.nasa.gov/wms.cgi?service=WMS',
                    'format'=>'image/jpeg',
                    'minresolution'=>'1',
                    'maxresolution'=>'17',
                    'layers'=>'global_mosaic',
                    'copyrights' => array(array(
                      'minzoom'=>'1',
                      'bounds'=>'-190,-90,180,90',
                      'text'=>'&copy; NASA',
                      )),
                    'overlaywith'=>'Hybrid',
                    'merczoomlevel'=>'5',
    ),
);
$mymap=array('id' => 'map',
             'control' => 'Large',
             'tcontrol' => 'on',
             'zoom' => $zoom,
             'center' => $north.','.$east,
             'width' => '100%',
             'height' => '500px',
             'type' => 'Satellite',
             'wmss' => $mywmss,
             );
echo gmap_draw_map($mymap);
?>
I got simply the famous white page of death. Can you please tell me
what can I do to solve that problem? I'm working on my tesis work, so
please help me.
Thanks a lot.

--

Linux es Libertad


More information about the development mailing list