<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>Post an issue in the Gmap issue queue.<BR>&nbsp;</DIV>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Gustavo Cabral &lt;gmcabral@gmail.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> development@drupal.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Mon, August 2, 2010 10:09:58 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [development] Substitute for the function gmap_draw_map()<BR></FONT><BR><BR><BR>
<DIV class=gmail_quote>2010/8/2 Gustavo Cabral <SPAN dir=ltr>&lt;<A href="mailto:gmcabral@gmail.com" target=_blank rel=nofollow ymailto="mailto:gmcabral@gmail.com">gmcabral@gmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi Drupalers<BR>I need to post in nodes distinct maps of my own (I've my server running with mapserver), I found in the net a code to GMap module that allows me to show my maps on contents using as a base layer map the Google Earth. The example can be found on:<BR>http://geoserver.org/display/GEOSDOC/Drupal<BR><BR><SPAN dir=ltr>The problem is that the code uses the function gmap_draw_map()</SPAN>, <SPAN dir=ltr>and searching on <A href="http://drupal.org/" target=_blank rel=nofollow>drupal.org</A> I could see that the function was removed</SPAN> but I can't found his substitute. Can you help me to replace that function with a similar code?<BR><BR>The code is:<BR><PRE>&lt;?php<BR><BR>$north = 38.897546;<BR>$east  = -77.039394;<BR>$zoom  = 16;<BR><BR>$mywmss=array(<BR>array('name'=&gt;'Terraserver',<BR>                   
 'url'=&gt;'http://terraservice.net/ogcmap6.ashx?',<BR>

                    'format'=&gt;'image/jpeg',<BR>                    'minresolution'=&gt;'1',<BR>                    'maxresolution'=&gt;'17',<BR>                    'layers'=&gt;'DOQ',<BR>

                    'copyrights' =&gt; array(array(<BR>                      'minzoom'=&gt;'1',<BR>                      'bounds'=&gt;'-190,-90,180,90',<BR>                      'text'=&gt;'&amp;copy; terrasever',<BR>

                      )),<BR>                    'overlaywith'=&gt;'Hybrid',<BR>                    'merczoomlevel'=&gt;'5',<BR>    ),<BR>array('name'=&gt;'Lizardtech',<BR>
                    'url'=&gt;'http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS',<BR>
                    'format'=&gt;'image/jpeg',<BR>                    'minresolution'=&gt;'1',<BR>                    'maxresolution'=&gt;'17',<BR>                    'layers'=&gt;'DC',<BR>

                    'copyrights' =&gt; array(array(<BR>                      'minzoom'=&gt;'1',<BR>                      'bounds'=&gt;'-190,-90,180,90',<BR>                      'text'=&gt;'&amp;copy; lizardtech',<BR>

                      )),<BR>                    'overlaywith'=&gt;'Hybrid',<BR>                    'merczoomlevel'=&gt;'5',<BR>    ),<BR>array('name'=&gt;'NASA_JPL',<BR>                    'url'=&gt;'http://wms.jpl.nasa.gov/wms.cgi?service=WMS',<BR>

                    'format'=&gt;'image/jpeg',<BR>                    'minresolution'=&gt;'1',<BR>                    'maxresolution'=&gt;'17',<BR>                    'layers'=&gt;'global_mosaic',<BR>

                    'copyrights' =&gt; array(array(<BR>                      'minzoom'=&gt;'1',<BR>                      'bounds'=&gt;'-190,-90,180,90',<BR>                      'text'=&gt;'&amp;copy; NASA',<BR>

                      )),<BR>                    'overlaywith'=&gt;'Hybrid',<BR>                    'merczoomlevel'=&gt;'5',<BR>    ),<BR>);<BR><BR>$mymap=array('id' =&gt; 'map',<BR>

             'control' =&gt; 'Large',<BR>             'tcontrol' =&gt; 'on',<BR>             'zoom' =&gt; $zoom,<BR>             'center' =&gt; $north.','.$east,<BR>

             'width' =&gt; '100%',<BR>             'height' =&gt; '500px',<BR>             'type' =&gt; 'Satellite',<BR>             'wmss' =&gt; $mywmss,<BR>             );<BR>

<BR>echo gmap_draw_map($mymap);<BR>?&gt;<BR></PRE>Thank you very much for advance.<BR></BLOCKQUOTE></DIV>I found the sustitute of gmap_draw_map(), simply replace theme('gmap', array('#settings' =&gt; $mymap));<BR>Now, when I put that code I get the next message: Javascript is required to view this map.<BR>How can I solve this?<BR>Thanks<BR></DIV></DIV></div></body></html>