<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> </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 <gmcabral@gmail.com><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><<A href="mailto:gmcabral@gmail.com" target=_blank rel=nofollow ymailto="mailto:gmcabral@gmail.com">gmcabral@gmail.com</A>></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><?php<BR><BR>$north = 38.897546;<BR>$east = -77.039394;<BR>$zoom = 16;<BR><BR>$mywmss=array(<BR>array('name'=>'Terraserver',<BR>
'url'=>'http://terraservice.net/ogcmap6.ashx?',<BR>
'format'=>'image/jpeg',<BR> 'minresolution'=>'1',<BR> 'maxresolution'=>'17',<BR> 'layers'=>'DOQ',<BR>
'copyrights' => array(array(<BR> 'minzoom'=>'1',<BR> 'bounds'=>'-190,-90,180,90',<BR> 'text'=>'&copy; terrasever',<BR>
)),<BR> 'overlaywith'=>'Hybrid',<BR> 'merczoomlevel'=>'5',<BR> ),<BR>array('name'=>'Lizardtech',<BR>
'url'=>'http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS',<BR>
'format'=>'image/jpeg',<BR> 'minresolution'=>'1',<BR> 'maxresolution'=>'17',<BR> 'layers'=>'DC',<BR>
'copyrights' => array(array(<BR> 'minzoom'=>'1',<BR> 'bounds'=>'-190,-90,180,90',<BR> 'text'=>'&copy; lizardtech',<BR>
)),<BR> 'overlaywith'=>'Hybrid',<BR> 'merczoomlevel'=>'5',<BR> ),<BR>array('name'=>'NASA_JPL',<BR> 'url'=>'http://wms.jpl.nasa.gov/wms.cgi?service=WMS',<BR>
'format'=>'image/jpeg',<BR> 'minresolution'=>'1',<BR> 'maxresolution'=>'17',<BR> 'layers'=>'global_mosaic',<BR>
'copyrights' => array(array(<BR> 'minzoom'=>'1',<BR> 'bounds'=>'-190,-90,180,90',<BR> 'text'=>'&copy; NASA',<BR>
)),<BR> 'overlaywith'=>'Hybrid',<BR> 'merczoomlevel'=>'5',<BR> ),<BR>);<BR><BR>$mymap=array('id' => 'map',<BR>
'control' => 'Large',<BR> 'tcontrol' => 'on',<BR> 'zoom' => $zoom,<BR> 'center' => $north.','.$east,<BR>
'width' => '100%',<BR> 'height' => '500px',<BR> 'type' => 'Satellite',<BR> 'wmss' => $mywmss,<BR> );<BR>
<BR>echo gmap_draw_map($mymap);<BR>?><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' => $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>