本帖最后由 dshizhijun 于 2013-04-08 11:15:31 编辑

解决方案 »

  1.   

    那这个可以就是你,网页代码的问题了吧!!多看看google map API
      

  2.   

    这个er怎么有这种背景
    <!DOCTYPE html>
    <html>
      <head>
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <style type="text/css">
          html { height: 100% }
          body { height: 100%; margin: 0; padding: 0 }
          #map_canvas { height: 100% }
        </style>
        <script type="text/javascript"
          src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBiBjv9trj7kZaSJGHLvy7tgZNT-qtoQIY&sensor=true">
        </script>
        <script type="text/javascript">
          function initialize() {
            var mapOptions = {
              center: new google.maps.LatLng(36.07, 120.33),
              zoom: 8,
              mapTypeId: google.maps.MapTypeId.ROADMAP
            };
          map = new google.maps.Map(document.getElementById("map_canvas"),
                mapOptions);
          var image = 'img_er/green.png';
      var position = new google.maps.LatLng(36.07, 120.33);
          var er = new google.maps.Marker({
                position: position,
                map: map
              });
      er.setMap(map); 
    } function attachSecretMessage(er, inf) {
    var message = ['This', 'is', 'the', 'secret', '这里是青岛'];
    var infowindow = new google.maps.InfoWindow({
      content: inf
    }); google.maps.event.addListener(er, 'click', function() {
      infowindow.open(er.get('map'), er);
    });
      }
      function newplace(lat, lng, msg) {
        var image = 'img_er/yellow.png';
    var position = new google.maps.LatLng(lat, lng);
    map.panTo(position); 
            var er = new google.maps.Marker({
                position: position,
                map: map
              });
    er.setMap(map); 
    attachSecretMessage(er, msg);
      }
        </script>
      </head>
      <body onload="initialize()">
        <div id="map_canvas" style="width:100%; height:100%"></div>
      </body>
    </html>
    如果您有空的话  可以帮我瞅瞅  第一次接触  谢谢了