There is an idle time javascript (it here is resulted everything but
only for show that it does a piece) which is called each 60 seconds
and on demand of points from a database displays in a web a browser of
5 last points so waters memory занимаемя a browser all time grows,
tried GUnload to put in the script beginning does not help how to be,
I am sorry for my English.
if(form1.Checkbox1.checked==true)
{
id=window.setInterval('clock()', 60000)
}
else
{
window.clearInterval(id)
}
function clock()
{
if (GBrowserIsCompatible()){
var map = new
GMap2(document.getElementById('map_Google'));
var map_ctrl=new GLargeMapControl();
var map_type_ctrl=new GMapTypeControl();
var map_scale_ctrl=new GScaleControl();
map.addControl(map_ctrl);
map.addControl(map_type_ctrl);
map.addControl(map_scale_ctrl);
}
function createMarker(point, number) {
var marker = new GMarker(point);
GEvent.addListener(marker, 'click',
function() {
marker.openInfoWindowHtml(number +
'</b>');});
return marker; }
var point = new GLatLng(MyArray[i],MyArray[i+1]);
map.addOverlay(createMarker(point,MyArray[i+2]+"("+MyArray[i]
+","+MyArray[i+1]+") скорость = "+((MyArray[i
+3]*1.852).toFixed(1))));
if (i<MyArray.length)
{
i+=4;
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---