Note that there are some explanatory texts on larger screens.

plurals
  1. POTransit layer in embedded Google SearchControl map
    primarykey
    data
    text
    <p>How can I activate the Transit layer in a Google Map on a web page? The map is created using the search control. </p> <pre><code>&lt;!-- ++Begin Map Search Control Wizard Generated Code++ --&gt; &lt;!-- // Created with a Google AJAX Search Wizard // http://code.google.com/apis/ajaxsearch/wizards.html --&gt; &lt;!-- // The Following div element will end up holding the map search control. // You can place this anywhere on your page --&gt; &lt;div id="mapsearch"&gt; &lt;span style="color:#676767;font-size:11px;margin:1px;padding:0px;"&gt;Loading map ...&lt;/span&gt; &lt;/div&gt; &lt;!-- Maps Api, Ajax Search Api and Stylesheet // Note: If you are already using the Maps API then do not include it again // If you are already using the AJAX Search API, then do not include it // or its stylesheet again // // The Key Embedded in the following script tags is designed to work with // the following site: --&gt; &lt;script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAxMICTqJZCQhVvaG5Z6vcbBQsQZTeCW4bnSEJHaQGIFLLp_Ev4hQzmbQjyOZxyLLe8CmaFaW5G3RI8g" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0&amp;source=uds-msw&amp;key=ABQIAAAAxMICTqJZCQhVvaG5Z6vcbBQsQZTeCW4bnSEJHaQGIFLLp_Ev4hQzmbQjyOZxyLLe8CmaFaW5G3RI8g" type="text/javascript"&gt;&lt;/script&gt; &lt;style type="text/css"&gt; @import url("http://www.google.com/uds/css/gsearch.css"); &lt;/style&gt; &lt;!-- Map Search Control and Stylesheet --&gt; &lt;script type="text/javascript"&gt; window._uds_msw_donotrepair = true; &lt;/script&gt; &lt;script src="http://www.google.com/uds/solutions/mapsearch/gsmapsearch.js?mode=new" type="text/javascript"&gt;&lt;/script&gt; &lt;style type="text/css"&gt; @import url("http://www.google.com/uds/solutions/mapsearch/gsmapsearch.css"); &lt;/style&gt; &lt;style type="text/css"&gt; .gsmsc-mapDiv { height : 400px; } .gsmsc-idleMapDiv { height : 400px; } #mapsearch { width : 700px; margin: 1px; padding: 0px; } &lt;/style&gt; &lt;script type="text/javascript"&gt; function LoadMapSearchControl() { var options = { zoomControl : GSmapSearchControl.ZOOM_CONTROL_ENABLE_ALL, title : "&lt;?php echo $city. ','. $country; ?&gt;", url : "", idleMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1, activeMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1 } new GSmapSearchControl( document.getElementById("mapsearch"), "&lt;?php echo $city. ','. $country; ?&gt;", options ); } // arrange for this function to be called during body.onload // event processing GSearch.setOnLoadCallback(LoadMapSearchControl); &lt;/script&gt; &lt;!-- ++End Map Search Control Wizard Generated Code++ --&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload