Reply
google map api help
Old 05-19-2008, 09:02 AM google map api help
rezzy's Avatar
Super Talker

Posts: 106
Location: in the interwebz
hello all,

I would like to make a map to a business. I would like a marker that will indicate the location of the business.

Currently, it will only display the area the marker should be. Here is the code I currently have.

Code:
<!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>Google Maps JavaScript API Example</title>

  <div id="mapsearch">
    <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">One Moment</span>
  </div>

  <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAEMZPF1wtJKXadYrrkUSIlhT_ZZT0e3q4ZpL9tag7In2ZlBB0UBQqx6WF3pYL-Hcl6auTtJbYesxrmw"
    type="text/javascript"></script>
  <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-msw&key=ABQIAAAAEMZPF1wtJKXadYrrkUSIlhT_ZZT0e3q4ZpL9tag7In2ZlBB0UBQqx6WF3pYL-Hcl6auTtJbYesxrmw"
    type="text/javascript"></script>
  <style type="text/css">
    @import url("http://www.google.com/uds/css/gsearch.css");
  </style>

  <!-- Map Search Control and Stylesheet -->
  <script type="text/javascript">
    window._uds_msw_donotrepair = true;
  </script>
  <script src="http://www.google.com/uds/solutions/mapsearch/gsmapsearch.js?mode=new"
    type="text/javascript"></script>
  <style type="text/css">
    @import url("http://www.google.com/uds/solutions/mapsearch/gsmapsearch.css");
  </style>

  <style type="text/css">
    .gsmsc-mapDiv {
      height : 300px;
    }

    .gsmsc-idleMapDiv {
      height : 300px;
    }

    #mapsearch {
      width : 400px;
      margin: 10px;
      padding: 4px;
    }
  </style>
  <script type="text/javascript">
    function LoadMapSearchControl() {

      var options = {
            zoomControl : GSmapSearchControl.ZOOM_CONTROL_ENABLE_ALL,
            title : "Unique Skin Care",
            url : "http://www.uniqueskincare.net",
            idleMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1,
            activeMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1
            }

      new GSmapSearchControl(
            document.getElementById("mapsearch"),
            "319 First Colonial Road Virginia Beach, Virginia 23454",
            options
            );

    }
    // arrange for this function to be called during body.onload
    // event processing
    GSearch.setOnLoadCallback(LoadMapSearchControl);
  </script>
<!-- ++End Map Search Control Wizard Generated Code++ -->
            
  </body>
</html>
__________________
Php Blog
Resnodesigns
rezzy is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-19-2008, 01:31 PM Re: google map api help
smarty's Avatar
Ultra Talker

Posts: 413
Name: Vinod Rawat
Location: india
hi,

if you carefully look at google map api documentation at google site. they explained it clearly and extremely well. So you can easily put marker,
Longitude and Latitude is what you need to see there

regards
smarty is offline
Reply With Quote
View Public Profile Visit smarty's homepage!
 
Reply     « Reply to google map api help
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.08805 seconds with 12 queries