Permalink
Browse files

new pin

  • Loading branch information...
1 parent 8fb2f6c commit 5436d29bc2ac0063e61efff675bcebfeacbaebdd @tsabat committed Sep 7, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 worldview.js
View
@@ -14,15 +14,15 @@ $(window).load(function() {
nextShowInterval = 0,
setupMarkersTime = 1,
// test with 10 seconds, real should be 180 (3 minutes?)
- clearMarkersTime = 10;
+ clearMarkersTime = 20;
// the time markers should be shown
// alextodo clear the nextShowInterval time on call back from server
function setUpMarkers() {
if (((ticks === 0) || (ticks === nextShowInterval)) && coordinates.length > 0) {
for( i = 0; i < numberOfCordinatesShownAtOneTime; i++ ) {
var coordinate = coordinates.pop(),
- image = "Bleep.gif?random=" + coordinate.lat() + coordinate.lng();
+ image = "pin.png";
// Only calling this once?
//console.log("Setting a marker");
@@ -32,6 +32,7 @@ $(window).load(function() {
optimized: false,
map: map
});
+ marker.setAnimation(google.maps.Animation.DROP);
marker.ticks = ticks;
marker.setVisible(true);
@@ -62,8 +63,8 @@ $(window).load(function() {
};
function getCoordinates() {
- $.getJSON('http://css-tricks.com/wufoo/dummydata/dummydata.json?callback=?', function(data) {
- //$.getJSON('http://pink.eye:8000?callback=?', function(data) {
+ //$.getJSON('http://css-tricks.com/wufoo/dummydata/dummydata.json?callback=?', function(data) {
+ $.getJSON('http://pink.eye:8000?callback=?', function(data) {
coordinates = new Array();
for(var index in data.coordinates) {

0 comments on commit 5436d29

Please sign in to comment.