Thank you, everything is fine, everything works! ==============================================
<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 JavaScript API Example: Simple Icon; And some Errors :-( </title> <script type="text/javascript" src="http://maps.google.com/maps/api/js? sensor=false"></script> <script type="text/javascript"> function initialize() { var myLatlng = new google.maps.LatLng(45.259399414, 34.545501709); var myOptions = { zoom: 4, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, position: google.maps.ControlPosition.BOTTOM_RIGHT }, navigationControl: true, navigationControlOptions: { style: google.maps.NavigationControlStyle.ZOOM_PAN, position: google.maps.ControlPosition.LEFT }, scaleControl: true, scaleControlOptions: { position: google.maps.ControlPosition.BOTTOM_LEFT } } globMap = new google.maps.Map(document.getElementById("bg_map"), myOptions); // Create our "tiny" marker icon // var bounds = globMap.getBounds(); - not work !!!!!!! var center = globMap.getCenter(); var southWest = new google.maps.LatLng (center.lat() - 10, center.lng() - 10); var northEast = new google.maps.LatLng (center.lat() + 10, center.lng() + 10); var lngSpan = 20; // northEast.lng() - southWest.lng(); var latSpan = 20; // northEast.lat() - southWest.lat(); var markers = Array(); for (var i = 0; i < 5; i++) { var strContent = 'InfoWindow(Marker) number = ' + i + ';'; var point = new google.maps.LatLng(southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random()); markers[i] = new google.maps.Marker({map: globMap, position: point, title: ''+ i }); var infowindow = new google.maps.InfoWindow(); infowindow.setContent(strContent); infowindow.open(globMap, markers[i]); attachMarkerHtml(markers[i], infowindow, strContent); } } function attachMarkerHtml(marker, stepDisplay, html){ google.maps.event.addListener(marker, 'click', function() { stepDisplay.setContent(html); stepDisplay.open(globMap, marker); }); } </script> </head> <body onload="initialize();"> all excellent, all work <br> all the best,<br> Alexander<br> <div id="bg_map" style="width: 600px; height: 600px"></div> </body> </html> -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.