• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Developing a map mashup application

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    Originally posted by thunderlizard View Post
    Just an update for the interested: after failing to get beyond a grey rectangle with the Google one...
    What?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>GMaps Demo</title>
    <style type="text/css">
    #map {
        width: 800px;
        height: 600px;
        margin: auto;
    }
    </style>
    </head>
    <body>
        <div id="map"></div>
        <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=YourAPIKey"></script>
        <script type="text/javascript">
            window.onload = function() {
                if (GBrowserIsCompatible()) {
                    var map = new GMap2(document.getElementById("map"));
                    map.setCenter(new GLatLng(51.509744, -0.126299), 17);
                }
            };
        </script>
    </body>
    </html>
    is all it takes

    Comment


      #12
      Wow great information it's really very useful keep it up.



      Thanks
      MAG STUDIOS
      http://www.mag-corp.com

      Comment

      Working...
      X