<br><br><div class="gmail_quote">2010/8/2 Gustavo Cabral <span dir="ltr">&lt;<a href="mailto:gmcabral@gmail.com">gmcabral@gmail.com</a>&gt;</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&#39;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&#39;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(&#39;name&#39;=&gt;&#39;Terraserver&#39;,<br>                    &#39;url&#39;=&gt;&#39;<a href="http://terraservice.net/ogcmap6.ashx?" target="_blank">http://terraservice.net/ogcmap6.ashx?</a>&#39;,<br>

                    &#39;format&#39;=&gt;&#39;image/jpeg&#39;,<br>                    &#39;minresolution&#39;=&gt;&#39;1&#39;,<br>                    &#39;maxresolution&#39;=&gt;&#39;17&#39;,<br>                    &#39;layers&#39;=&gt;&#39;DOQ&#39;,<br>

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

                      )),<br>                    &#39;overlaywith&#39;=&gt;&#39;Hybrid&#39;,<br>                    &#39;merczoomlevel&#39;=&gt;&#39;5&#39;,<br>    ),<br>array(&#39;name&#39;=&gt;&#39;Lizardtech&#39;,<br>
                    &#39;url&#39;=&gt;&#39;<a href="http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS" target="_blank">http://wms.lizardtech.com/lizardtech/iserv/ows?service=WMS</a>&#39;,<br>
                    &#39;format&#39;=&gt;&#39;image/jpeg&#39;,<br>                    &#39;minresolution&#39;=&gt;&#39;1&#39;,<br>                    &#39;maxresolution&#39;=&gt;&#39;17&#39;,<br>                    &#39;layers&#39;=&gt;&#39;DC&#39;,<br>

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

                      )),<br>                    &#39;overlaywith&#39;=&gt;&#39;Hybrid&#39;,<br>                    &#39;merczoomlevel&#39;=&gt;&#39;5&#39;,<br>    ),<br>array(&#39;name&#39;=&gt;&#39;NASA_JPL&#39;,<br>                    &#39;url&#39;=&gt;&#39;<a href="http://wms.jpl.nasa.gov/wms.cgi?service=WMS" target="_blank">http://wms.jpl.nasa.gov/wms.cgi?service=WMS</a>&#39;,<br>

                    &#39;format&#39;=&gt;&#39;image/jpeg&#39;,<br>                    &#39;minresolution&#39;=&gt;&#39;1&#39;,<br>                    &#39;maxresolution&#39;=&gt;&#39;17&#39;,<br>                    &#39;layers&#39;=&gt;&#39;global_mosaic&#39;,<br>

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

                      )),<br>                    &#39;overlaywith&#39;=&gt;&#39;Hybrid&#39;,<br>                    &#39;merczoomlevel&#39;=&gt;&#39;5&#39;,<br>    ),<br>);<br><br>$mymap=array(&#39;id&#39; =&gt; &#39;map&#39;,<br>

             &#39;control&#39; =&gt; &#39;Large&#39;,<br>             &#39;tcontrol&#39; =&gt; &#39;on&#39;,<br>             &#39;zoom&#39; =&gt; $zoom,<br>             &#39;center&#39; =&gt; $north.&#39;,&#39;.$east,<br>

             &#39;width&#39; =&gt; &#39;100%&#39;,<br>             &#39;height&#39; =&gt; &#39;500px&#39;,<br>             &#39;type&#39; =&gt; &#39;Satellite&#39;,<br>             &#39;wmss&#39; =&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(&#39;gmap&#39;, array(&#39;#settings&#39; =&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>