mapxtreme2008v6.8 vs2008 (asp.net) Several modification projects

Source: Internet
Author: User

1, add ordinary buttons to achieve the full picture display, add dynamic layer, with Ajax to achieve local refresh

When you click the button, always prompt command.js Getmap () is incorrect, after the search code to make the following changes to succeed.

MapXtremeWebResources.Command.js Zhongyuan code for mapImage.style.clip = ' rect (' + 0 + ' + w + ' + H + ' + 0 + ') ';
When the operation often prompts incorrect parameters, then changed to MapImage.style.clip = ' rect (' + 0 + ' px, ' + w + ' px, ' + H + ' px, ' + 0 + ' px ') ';

Note: To be "px," format.

2, click the Mapxtreme with the Zoom Out tool after the Zoom box to enlarge the interaction.js old hint parameter error.

The following function as shown in the code can be modified, but the current pull box does not have a dotted range, to be modified.

function enablevml (Element)
{
Element.document.namespaces.add ("V", "urn:schemas-microsoft-com:vml")
if (Element.document.styleSheets.length < 1) {
var ostyleel = element.document.createElement ("style");
Element.document.body.appendChild (Ostyleel);
}


Element.doc.styleSheets.item (0). Add ("v//:*", "Behavior:url (#default #vml)");

Change the above code to the following style
Element.document.styleSheets.item (0). addrule ("V", "Behavior:url (#default #vml)");
}

In fact, the above two small problems in the IE6 test is no problem, in the IE8 will appear, such as changes in the IE8 will not be wrong.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.