Re: Multiple locations on a single map
On Jan 22, 5:44 pm, htmlmale <htmlm...@yahoo.com> wrote:
> We've been having some domain issues, so that's more than likely why
> you didn't see any map.
>
> Attached is the (very basic) code that I am currently using.
>
No, thanks!
You had done the right thing by posting a link. Just make sure it
works. :-)
Please read and follow the group's posting guidelines:
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical
--
Marcelo - http://maps.forum.nu
--
> Thanks,
>
> Mark
>
> <!--
> copyright (c) 2009 Google inc.
>
> You are free to copy and use this sample.
> License can be found here:http://code.google.com/apis/ajaxsearch/faq/#license
> -->
>
> <!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" xmlns:v="urn:schemas-
> microsoft-com:vml">
> <head>
> <meta http-equiv="content-type" content="text/html; charset=utf-8"/
>
> <title>Google Maps API Sample</title>
> <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");
> </style>
> <script src="http://maps.google.com/maps?
> file=api&v=2&key=ABQIAAAALW3zaDX0JB0XXSCmrZYjtxQSwdL6Otg-fTn2P-
> cS5Ncfv4iLwRQrANEP_EZMCZwf0Y_LT6uMIDJQCw"
> type="text/javascript"></script>
> <script src="http://www.google.com/uds/api?file=uds.js&v=1.0"
> type="text/javascript"></script>
>
> <script src="http://www.google.com/uds/solutions/localsearch/
> gmlocalsearch.js" type="text/javascript"></script>
> <script type="text/javascript">
>
> function initialize() {
> if (GBrowserIsCompatible()) {
>
> // Create and Center a Map
> var map = new GMap2(document.getElementById
> ("map_canvas"));
> map.setCenter(new GLatLng(27.702072, -97.167549), 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(), new
> GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10, 20)));
> var lsc = new google.maps.LocalSearch();
> map.addControl(lsc, new GControlPosition
> (G_ANCHOR_BOTTOM_RIGHT, new GSize(10, 20)));
> lsc.execute('1709 Padre Boulevard 78597');
> //map.addControl(lsc, new GControlPosition
> (G_ANCHOR_BOTTOM_RIGHT, new GSize(10, 20)));
> //lsc.execute('500 Padre Boulevard 78597');
>
> }
> }
> GSearch.setOnLoadCallback(initialize);
>
> </script>
> </head>
> <body onload="initialize()" onunload="GUnload()" style="font-family:
> Arial;border: 0 none;">
> <div id="map_canvas" style="width: 600px; height: 600px"></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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home