[mapguide-users] Re: pupup window for map activity
Nick
nickcx at gmail.com
Wed Oct 6 01:15:46 EDT 2010
we can't change template file since we are hosting many maps.
we put map in a iframe (say name='map')
var orgOnMapLoading, orgOnMapLoaded;
map.onload = function(){
var mapFame = map.GetMapFrame();
orgOnMapLoading = mapFrame.orgMapLoading;
mapFrame.onMapLoading = myOnMapLoading;
orgOnMapLoaded = mapFrame.orgMapLoaded;
mapFrame.onMapLoaded = myOnMapLoaded;
}
function myOnMapLoading(){
orgOnMapLoading();
//code here to display div with 'waiting..' image
}
function myOnMapLoaded(){
orgOnMapLoaded();
//code here to hide div
}
If you can change templ then you can add display inside OnMapLoading
function and hide inside OnMapLoaded function directly.
also, you need add a div to the ajaxappne.templ to make it same width and
height as map and style='display:none'
On Tue, Oct 5, 2010 at 9:34 PM, Tony <techswami at hotmail.com> wrote:
>
> can you please share a code with me
> it will be really helpful
>
> tony
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/pupup-window-for-map-activity-tp5605551p5605759.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
--
Nick Xu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20101005/d04ee99a/attachment.html
More information about the mapguide-users
mailing list