GMap Info windows

View this example full screen.

JavaScript of GMap Info windows

function initialize()
{
    var oHuKou = new google.maps.LatLng(24.8768105, 121.0555649);
    var oMapOptions = {
        coStrType: zhupiter.CoStr.CoStrType.GMAP,
        center: new google.maps.LatLng(24.880650, 121.065427),
        zoom: 12
    };
    var oCoStrMap = new zhupiter.CoStr.Map(document.getElementById('map_canvas'), oMapOptions);

    var oInfoWindow = new zhupiter.CoStr.InfoWindow({
        coStrMap: oCoStrMap,
        position: oHuKou,
        content: 'HuKou Old Street'
    });
}

zhupiter.CoStr.event.addDomListener(window, 'load', initialize);

JavaScript + HTML of GMap Info windows

<!DOCTYPE html>
<html>
    <head>
        <meta name='viewport' content='initial-scale=1.0, user-scalable=no'>
        <meta charset='utf-8'>
        <title>GMap Info windows</title>
        <style>
        html, body, #map_canvas {
        height: 100%;
        margin: 0px;
        padding: 0px
        }
        </style>
        <script src='https://maps.googleapis.com/maps/api/js'></script>
        <script src='http://costr.zhupiter.com/js/'></script>
        <script>
function initialize()
{
    var oHuKou = new google.maps.LatLng(24.8768105, 121.0555649);
    var oMapOptions = {
        coStrType: zhupiter.CoStr.CoStrType.GMAP,
        center: new google.maps.LatLng(24.880650, 121.065427),
        zoom: 12
    };
    var oCoStrMap = new zhupiter.CoStr.Map(document.getElementById('map_canvas'), oMapOptions);

    var oInfoWindow = new zhupiter.CoStr.InfoWindow({
        coStrMap: oCoStrMap,
        position: oHuKou,
        content: 'HuKou Old Street'
    });
}

zhupiter.CoStr.event.addDomListener(window, 'load', initialize);
        </script>
    </head>
    <body>
        <div id='map_canvas'></div>
    </body>
</html>

坐标物语 | 赞助比特币: 1LX5KC19tXCPK8y72Z6LVoZjoSaCp9P6K