Hi, Iam having real problems posting my first API map on my drupal
website.

http://www.primal.c3church.org.nz/

this is the code iam using. can some one tell me why i am always
getting this error?


The Google Maps API server rejected your request.  This could be
because the API key used on this site was registered for a different
web site.  You can generate a new key for this web site at
http://code.google.com/apis/maps/


my code is;

      <script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAA6rfWsqxuMBGDCcOqKKXzdRTiUXNNlStdrUW3uOPOc-
kUvMwSYBQ5K31Yng5-nB50mFEiT_3vLNtXgQ&amp;sensor=false" type="text/
javascript"></script>

      <script type="text/javascript">
          google.load("maps");
          google.load("jquery", "1.3.1");
      </script>

      <div id="map"></div>
      <style media="screen" type="text/css">
          #map { width:500px; height:700px; }
      </style>

<script type="text/javascript">
$(document).ready(function(){
    var map = new GMap2(document.getElementById('map'));
        map.setCenter(new GLatLng(-41.663973,173.133301), 6);

<!-- Central -->
map.addOverlay(new GMarker(new GLatLng(-36.863697,174.759951)));
<!-- Mt Roskill -->
map.addOverlay(new GMarker(new GLatLng(-36.926189,174.737635)));
<!-- East Auckland -->
map.addOverlay(new GMarker(new GLatLng(-36.851145,174.811599)));
<!-- Mt Wellington -->
map.addOverlay(new GMarker(new GLatLng(-36.896881,174.865949)));
<!-- Manuakau -->
map.addOverlay(new GMarker(new GLatLng(-36.984877,174.87863)));
<!-- Coast -->
map.addOverlay(new GMarker(new GLatLng(-36.585463,174.692072)));
<!-- Bays -->
map.addOverlay(new GMarker(new GLatLng(-36.713379,174.749402)));
<!-- Howick -->
map.addOverlay(new GMarker(new GLatLng(-36.902033,174.905509)));
<!-- Cooks Beach -->
map.addOverlay(new GMarker(new GLatLng(-36.839161,175.744702)));
<!-- Ngaruawahia -->
map.addOverlay(new GMarker(new GLatLng(-37.66547,175.147702)));
<!-- Tauranga -->
map.addOverlay(new GMarker(new GLatLng(-37.687217,176.167016)));
<!-- Gisborne -->
map.addOverlay(new GMarker(new GLatLng(-38.663137,178.025588)));
<!-- Napier -->
map.addOverlay(new GMarker(new GLatLng(-39.498295,176.91031)));
<!-- Wellington -->
map.addOverlay(new GMarker(new GLatLng(-41.296052,174.782529)));
<!-- Christchurch -->
map.addOverlay(new GMarker(new GLatLng(-43.54033,172.645249)));
<!-- Dunedin -->
map.addOverlay(new GMarker(new GLatLng(-45.86569,170.510859)));
<!-- Invercargill -->
map.addOverlay(new GMarker(new GLatLng(-46.41218,168.356702)));
});
</script>




thx.
charlie





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to