Hi,
I am trying to embed a google map in my website and I want to add a search 
field. I read about 'enablegooglebar' but I am not a programmer.. I tried 
to get the code right but it is not working. What I have now is:

{source}
<!-- You can place html anywhere within the source tags -->
<iframe width="600" height="300" frameborder="0" scrolling="no" 
marginheight="0" marginwidth="0" 
src="https://maps.google.com/maps/ms?msa=0&amp;msid=209789382511956445406.0004c1f5084eb868abad9&amp;ie=UTF8&amp;t=h&amp;ll=8.407168,23.90625&amp;spn=143.564721,62.578125&amp;z=1&amp;output=embed";></iframe><br
 
/><small>View <a 
href="https://maps.google.com/maps/ms?msa=0&amp;msid=209789382511956445406.0004c1f5084eb868abad9&amp;ie=UTF8&amp;t=h&amp;ll=8.407168,23.90625&amp;spn=143.564721,62.578125&amp;z=1&amp;source=embed";
 
style="color:#0000FF;text-align:left">Where our active members are 
based</a> in a larger map</small>

<script language="javascript" type="text/javascript">
}

var map = new GMap2(document.getElementById("map"),{googleBarOptions:
{showOnLoad:true,
linkTarget:G_GOOGLEBAR_LINK_TARGET_BLANK, 
resultList:G_GOOGLEBAR_RESULT_LIST_SUPPRESS,
suppressInitialResultSelection:true,
suppressZoomToBounds:true,
onIdleCallback:doIdleCallback, 
onSearchCompleteCallback:doSearchCompleteCallback, 
onGenerateMarkerHtmlCallback:doGenerateMarkerHtmlCallback,
onMarkersSetCallback:doMarkersSetCallback}
})

map.setCenter(new GLatLng(43.907787,-79.359741),12);
map.addControl(new GMapTypeControl());
map.addControl(new GLargeMapControl());;

map.enableGoogleBar();

GEvent.addListener(map, "infowindowclose", function() {
if (hiddenElabel) {
hiddenElabel.show();
hiddenElabel = 0;
}

</script>
<?php
// You can place PHP like this

?>
{/source}

Does anybody know what I did wrong? The map is displayed but the search 
field isn't. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api/-/qGCACupfIl4J.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to