wtajemniczam się w Google Maps API. Wygenerowałem sobie kod na stronę:
<!-- <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=TUTAJKODWYGENEROWANY&sensor=false"></script> --> <script type="text/javascript"> function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); var center = new GLatLng(30.276067, 12.570212); map.setCenter(center, 15); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); var marker = new GMarker(center, {draggable: true}); GEvent.addListener(marker, "dragstart", function() { map.closeInfoWindow(); }); GEvent.addListener(marker, "dragend", function() { marker.openInfoWindowHtml("Just bouncing along..."); }); map.addOverlay(marker); } } </script>
Mam oczywiście wygenerowany kod API dla strony na wybrane domeny na tej stronie (dałem adresy z www i bez) oraz włączyłem w services z maps v3 i maps v2. Niestety mapa nie chce się włączyć, wyświetlają się okna dla kodu js:
Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v2 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: http://code.google.com/apis/maps/documenta...l#Obtaining_Key
W Google wyłączono możliwość korzystania z interfejsu API Map Google w przypadku tej aplikacji. Podany klucz nie jest prawidłowym kluczem interfejsu API Google lub nie ma autoryzacji dla interfejsu API Javascript Map Google w wersji 3 w tej witrynie. Jeśli jesteś właścicielem tej aplikacji, informacje na temat uzyskiwania prawidłowego klucza możesz znaleźć tutaj: https://developers.google.com/maps/document...utorial#api_key
Wie ktoś co jest źle? Miał ktoś styczność z takim problemem?