Hi, I want to add a myMap to my web page and then add an embedded search tool
this is the MyMap http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=1049287416046... and I think these are the instructions for doing it through the API http://www.google.com/uds/solutions/localsearch/reference.html my only problem is that I can't see how to do this with a myMap. Perhaps it isn't possible? This is the code that I have at present <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/ > <title>Local Search Control for Google Maps - default.html</title> <script src="http://maps.google.com/maps? file=api&v=2&key=AARTsJrCmgkZ-E31jTo3NcCK91DwdR6S8g" msa=0 msid=104928741604613036597.0004497ee7f5f4be24482 type="text/ javascript"></script> <script src="http://www.google.com/uds/api? file=uds.js&v=1.0&key=AARTsJrCmgkZ-E31jTo3NcCK91DwdR6S8g" type="text/ javascript"></script> <script src="http://www.google.com/uds/solutions/localsearch/ gmlocalsearch.js" type="text/javascript"></script> <style type="text/css"> @import url("http://www.google.com/uds/css/gsearch.css"); @import url("http://www.google.com/uds/solutions/localsearch/ gmlocalsearch.css"); #map { border : 1px solid #979797; width : 50%; height : 600px; } </style> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { // Create and Center a Map var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(51.888571,-8.595772), 13); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); // bind a search control to the map, suppress result list map.addControl(new google.maps.LocalSearch()); } } GSearch.setOnLoadCallback(load); //]]> </script> </head> <body onunload="GUnload()"> <div id="map"></div> </body> </html> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
