On 8 March 2012 11:08, km65 <[email protected]> wrote:
>
>
> <title>Google Maps JavaScript API v3 Example: Polyline Simple</title>

That indicates you want to use Version 3.

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

That loads Version 2.

>     var myLatLng = new google.maps.LatLng(52.544795,13.398596);
>     var myOptions = {
>       zoom: 14,
>       center: myLatLng,
>       mapTypeId: google.maps.MapTypeId.TERRAIN
>     };
>
>     var map = new google.maps.Map(document.getElementById("map_canvas"),
> myOptions);

That's Version 3 code.

It will probably work if you replace the Version 2 script call with
Version 3, filling in the key and sensor parameters:

<script type="text/javascript"
      
src="http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE";>

Can't see whether your existing code is using a (short) Console key or
a (long) API key. You need a Console key for Version 3. A long Version
2 key won't work.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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