[mapguide-users] Map Busy

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Tue Oct 21 08:36:50 EDT 2008


Hi Akram.

There exists a page where you can share such samples with others:
http://trac.osgeo.org/mapguide/wiki/CodeSamples

It would be great if you were to create a new page, and insert your example.

Regards, Kenneth Skovhede, GEOGRAF A/S



Akram skrev:
> Hi all;
>
> To put animated GIF related with your map busy if (False or True)
>
> you can use two methods 
>
> (For Map Only)
> 1.in your main page which contain Map iframe put Div with id = "divRefresh"
> as following
>
> <div id="divRefresh" name="divRefresh" class="cssRefresh" style="...YOUR
> STYLE...">
>   ....YOUR IMAGE.... 
>  </div>
>
> 2.in viewerfiles/ajaxmappane.templ edit the two functions (OnMapLoading) and
> (OnMapLoaded) by replace the folloing lines 
>
> var frmParent = parent.frames["tbFrame"];
> var objDivRefresh = frmParent.document.getElementById("divRefresh");
>
> To
>
> var objDivRefresh = parent.parent.document.getElementById("divRefresh");
>
> (For whole page loading)
> 2.use following script
>
> tryAgain();
>
> function tryAgain()
> {
> frame=document.getElementById("mapFrame");
>
> if(frame.document.readyState=="complete")
> {
>
> document.getElementById('myimg').style.visibility = 'hidden';
>
> }
> else
> {
> setTimeout("tryAgain()",100);
> }
> }
>
> I hope it is useful ..........
>
>
>
>
> -----
> http://gsg-eg.com 
> http://n2.nabble.com/file/u111068/head2.jpg 
> GeoService 
>   


More information about the mapguide-users mailing list