Hello,
Built-in search commands targeted to the task pane are not zooming to the feature in my Mapguide Enterprise 2011 maps....anyone else having this issue or know if it is a bug? If they are targeted to a new winodw, everything is fine. Please help
I find when using the Flexible Web Layouts (fusion) and you embed for map layout in an IFRAME or FRAME (which you have to if you want to hide that ugly URL from your users), you will have to tweak the FUSION widgets.
In the C:\Program Files\Autodesk\MapGuideEnterprise2011\WebServerExtensions\www\fusion\widgets\ folder
You will have to change the GetParent in some of the widget templ files:
for example, I always put my map layout in an iframe called "iFrameMap".
So in order to get the Search to work I had the change the GetParent() function in the SearchPrompt.templ file (and most of my widgets) I really wish that the Fusion library can find itself using "this" but alas it doesn't.
function GetParent() { if(popup) return opener; else if(top.top.iFrameMap) return top.top.iFrameMap; else return parent.parent; }
I had to do this in the SelectWithin, Measure, Print etc widgets. quite painful i know. Hopefully this omission can be corrected in the nest version of MapGuide - or at lease a global "GetParent" function we only have to change once to accommodate an iframe or frame (or any other kind of dhtml)