[mapguide-users] Problem About load task pane before Map
Jackie Ng
jumpinjackie at gmail.com
Tue Dec 8 23:14:30 EST 2009
What's probably happening is that your task pane code is interacting with the
map before it has been fully initialized. What you need to do, is to listen
for map initialization in the map frame. This code sample shows how to do
this:
http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/AJAXViewerEventHooking
The difference here is that your code is executing from the task pane, so
you have to go parent.parent.mapFrame instead of what's in the code sample.
- Jackie
Synchro wrote:
>
>
> Hi,Plz can you tell me who resolve this problem: " the task pane is loaded
> before Map" (in the task pane i have some functions based on the Map)
> that why I have error in task Pane. But if I refraich My task Pane after
> loading Map it work fine.
>
>
>
>
> _________________________________________________________________
> Un avatar à votre image ? Créez votre mini-moi !
> http://www.ilovemessenger.fr/minimize-me/
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://n2.nabble.com/Problem-About-load-task-pane-before-Map-tp4133530p4137378.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list