<br><br><div class="gmail_quote">2010/8/2 Gustavo Cabral <span dir="ltr"><<a href="mailto:gmcabral@gmail.com">gmcabral@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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>
<a href="http://geoserver.org/display/GEOSDOC/Drupal" target="_blank">http://geoserver.org/display/GEOSDOC/Drupal</a><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">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'=>'<a href="http://terraservice.net/ogcmap6.ashx?" target="_blank">http://terraservice.net/ogcmap6.ashx?</a>',<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'=>'<a href="http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS" target="_blank">http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS</a>',<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'=>'<a href="http://wms.jpl.nasa.gov/wms.cgi?service=WMS" target="_blank">http://wms.jpl.nasa.gov/wms.cgi?service=WMS</a>',<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>