无效值:<map>:[object Object]尝试将地图设置为绘图管理器</map>

时间:2013-06-06 22:40:48

标签: google-maps

有这个:

 <script type="text/javascript"
          src="https://maps.googleapis.com/maps/api/js?libraries=drawing&sensor=true">
 </script>
 <style type="text/css">
            #map-ubicacion {   width: 450px;
                        height: 400px;  }
 </style>

  <div class="map-ubicacion" id="map-ubicacion"></div>

 <script type="text/javascript">
     var map;
     var elevator;
     var myOptions = {
         zoom: 6,
         center: new google.maps.LatLng(-32.73, -56.),
         mapTypeId: 'terrain',
         streetViewControl: false,
         navigationControl: true,
         navigationControlOptions:
     {
         style: google.maps.NavigationControlStyle.ANDROID
     }
     };

     map = new google.maps.Map(document.getElementById('map-ubicacion'), myOptions);


     var draw= new google.maps.drawing.DrawingManager({
         drawingMode: google.maps.drawing.OverlayType.POLYGON,
         drawingControl: true,
         polygonOptions: {
             clickable: true,
             draggable: true,
             editable: true,
             fillColor: '#ffff00',
             fillOpacity: 0.8,
             strokeWeight: 5
         }
     });
     draw.setMap(map);
   </script>

当我加载它时: 错误:Valornoválidoparala propiedad:[object Object] ...... tf,a),this.b&amp;&amp; this.b(a))}; va(gg [H],function(a){var b = this.ta,c = Tf(a); b并[c]&安培;及(DELE ...

我无法找到任何搜索解决方案,任何想法?

0 个答案:

没有答案