My favorites
▼
|
Sign in
lineadecodigo
Web Code Samples in spanish
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
lineadecodigo_web
/
WebContent
/
Google
/
GoogleMaps
/
control-de-trafico.html
‹r23
r478
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Control de trafico en Google Maps</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA1gybajGje1CxFHgzphPqhBTkhzudNWd_u13Cffh29fB-9TXQzxQVh6gduUCW9NeYlGOi-AFsvIHQpg"
type="text/javascript"></script>
<script type="text/javascript">
function load(){
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("mapa"));
map.setCenter(new GLatLng(47.645962,-122.236633), 10);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
//Solo añade el tráfico, no el boton para controlarlo
map.addOverlay(new GTrafficOverlay());
}
}
</script>
</head>
<body onload="load();" onunload="GUnload();">
<h1>Control de trafico en Google Maps</h1>
<div id="mapa" style="width: 400px;height: 300px;">
</div>
<hr>
Artículo disponible en: <a href="http://lineadecodigo.com/2009/01/18/anadir-control-de-trafico-con-google-maps/">http://lineadecodigo.com/2009/01/18/anadir-control-de-trafico-con-google-maps/</a><br/>
<a href="http://lineadecodigo.com" title="Linea de Codigo">lineadecodigo.com</a>
</body>
</html>
Show details
Hide details
Change log
r83
by vcuervo on Jan 17, 2009
Diff
Control de tráfico en Google Maps
Go to:
...ogleMaps/control-de-trafico.html
Project members,
sign in
to write a code review
Older revisions
r23
by vcuervo on Feb 8, 2008
Diff
Subida inicial
All revisions of this file
File info
Size: 1351 bytes, 40 lines
View raw file
Powered by
Google Project Hosting