• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk MapGuide Developer

    Reply
    Contributor
    Posts: 14
    Registered: ‎06-25-2007

    Where to put onViewChange event

    59 Views, 1 Replies
    08-21-2008 02:01 PM
    I am using javascript to turn layers off when another is selected & vice versa.

    I believe I have figured everything else about the onViewChange event except which file to write it in. mapframe.php, mainframe.php, external aspx file, etc? Can anyone help me? Thanks!
    Please use plain text.
    New Member
    Posts: 1
    Registered: ‎09-06-2008

    Re: Where to put onViewChange event

    09-06-2008 10:42 PM in reply to: bjeffers
    在 viewerfiles/ajaxmappane.templ
    function OnMapRequested(reqResp, scale, centerX, centerY)
    {
    ....
    }
    Please use plain text.