views:

486

answers:

0

I am using Google Maps on iPhone and adding GIF marker all markers are rotating on map. One min it will rotate but after that it will stop rotating.

Now the problem is that after some time marker will stop rotating.

My map is refreshing every 5 second and it will add or remove marker form the map.

GIF marker are gif image which is rotating infinite.

I am adding market using this function

-(void)AddMarker:(double)lat Long:(double)lan
{
    NSString *script = 
    [NSString stringWithFormat:
     @"var newCenter;"
     "newCenter = new GLatLng(%lf, %lf); "
     "map.setCenter(newCenter, 16);"
     "var myIcon = new GIcon(G_DEFAULT_ICON);"
     "myIcon.image = 'star.gif';"
     "myIcon.shadow = '';"
     "myIcon.iconSize = new GSize(30, 30);"
     "markerOptions = { icon:myIcon };"
     "var marker1 = new GMarker(newCenter,markerOptions);"
     "map.addOverlay(marker1);",
     lat, lan];
    [self evalJS:script];
}

So can any one suggest.......