Hey,

I'd like a simple map using the Google Maps JavaScript API v3. I'm
using this jQuery code on my localhost for the map:
[code]
navigator.geolocation.getCurrentPosition(function (position) {
                var latlon = new google.maps.LatLng(position.coords.latitude,
position.coords.longitude);
                var map = new 
google.maps.Map(document.getElementById("map_canvas"),
{zoom: 8, center: latlon, mapTypeId: google.maps.MapTypeId.ROADMAP});
                });
[/code]
The header I have this script:
[code]<script type="text/javascript" src="http://maps.google.com/maps/
api/js?sensor=false"></script>[/code]
And here ofcourse the div:
[code]<div id="map_canvas"></div>[/code]

When I go to the page and confirm that it may use my location, it
doesn't show the map and in Chrome I get the following warning from
the console:
[quote]Resource interpreted as image but transferred with MIME type
text/html.[/quote]

I've searched for quite some time, but couldn't find anything useful.
I hoped that one of you could help me out.

Ragoune

-- 
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 [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-js-api-v3?hl=en.

Reply via email to