How to add mini map

867 views
Skip to first unread message

carfermar

unread,
Jun 1, 2010, 8:59:18 AM6/1/10
to Google Maps JavaScript API v3
Hi,

I have a problem to create a mini map in my html file. I try unique
example founded in Internet: http://koti.mbnet.fi/ojalesa/v3/overview_v3.htm
but it doesn´t work.

<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
sensor=true&language=es"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
v=3.1&sensor=true"></script>
<script type="text/javascript" src="http://code.google.com/apis/gears/
gears_init.js"></script>
<script type="text/javascript">

var spain = new google.maps.LatLng(39.30, -0.31);
var map;

function initialize() {
var myOptions = {
zoom: 6,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("map"),
myOptions);
map.setCenter(spain);

}

</script>
</head>
<body style="margin:0px; padding:0px;" onload="initialize()">
<div id="map" style="width:100%; height:100%"></div>
</body>
</html>

Ralph Ames

unread,
Jun 1, 2010, 10:26:17 AM6/1/10
to google-map...@googlegroups.com
>I have a problem to create a mini map in my html file. I try unique
>example founded in Internet:
http://koti.mbnet.fi/ojalesa/v3/overview_v3.htm
>but it doesn´t work.

Can see any attempt to create a mini map in the posted code?


Ralph
-
www.easypagez.com/maps/map_index.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-map...@googlegroups.com.
To unsubscribe from this group, send email to
google-maps-js-a...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Rossko

unread,
Jun 1, 2010, 10:34:10 AM6/1/10
to Google Maps JavaScript API v3
> I have a problem to create a mini map in my html file. I try unique
> example founded in Internet:http://koti.mbnet.fi/ojalesa/v3/overview_v3.htm
> but it doesn´t work.

The example does work.

The code dump of your own page doesn't seem to include any of the
example code at all.
Reply all
Reply to author
Forward
0 new messages