User Tools

Site Tools


guifi.net:desarrollo_web:nodos_seleccionables

This is an old revision of the document!


Table of Contents

Exemples

Modificado

Api V3

Si funciona

<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript">
 function initialize() {

//mapa
var myLatlng = new google.maps.LatLng(41.549, 2.452);

//nodo
var myLatlng2 = new google.maps.LatLng(41.549, 2.450);

var myOptions = {
  zoom: 18,
  center: myLatlng,
  mapTypeId: google.maps.MapTypeId.SATELLITE
};

var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

var contentString = '<div id="content">'+
    '<div id="siteNotice">'+
    '</div>'+
    '<h1 id="firstHeading" class="firstHeading">MatEscorxador</h1>'+
    '<div id="bodyContent">'+
    '<p><b>IP:</b> 10.139.56.129 </p>'+
'<p>Node: <a href="http://guifi.net/node/18084">'+
    'http://guifi.net/node/18084</a> Actiu</p>'+
    '</div>'+
    '</div>';

var infowindow = new google.maps.InfoWindow({
    content: contentString
});

var icono2tam = new google.maps.Size({
    width:10,
    height:10
})

var marker = new google.maps.Marker({
    position: myLatlng,
    map: map,
    title:"MatEscorxador"
});

google.maps.event.addListener(marker, 'click', function() {
  infowindow.open(map,marker);
 });

}
</script>
</head>
<body onload="initialize()">
 <div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>
guifi.net/desarrollo_web/nodos_seleccionables.1336329877.txt.gz · Last modified: 2015/04/13 20:19 (external edit)