Skip to content

Commit

Permalink
Initial checkin of the V3 Earth wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
skarEE committed Mar 24, 2011
1 parent b04219d commit e2f7d33
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions markerclusterer/examples/simple_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

</style>

<script src="http://www.google.com/jsapi"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="../src/data.json"></script>
<script type="text/javascript">
var script = '<script type="text/javascript" src="../src/markerclusterer';
Expand All @@ -45,11 +45,6 @@
</script>

<script type="text/javascript">
google.load('maps', '3', {
other_params: 'sensor=false'
});
google.setOnLoadCallback(initialize);

function initialize() {
var center = new google.maps.LatLng(37.4419, -122.1419);

Expand All @@ -60,7 +55,8 @@
});

var markers = [];
for (var i = 0, dataPhoto; dataPhoto = data.photos[i]; i++) {
for (var i = 0; i < 100; i++) {
var dataPhoto = data.photos[i];
var latLng = new google.maps.LatLng(dataPhoto.latitude,
dataPhoto.longitude);
var marker = new google.maps.Marker({
Expand All @@ -70,6 +66,7 @@
}
var markerCluster = new MarkerClusterer(map, markers);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
Expand Down

0 comments on commit e2f7d33

Please sign in to comment.