Using setInfoWindowStyle("MVInfoWindowStyle2",...) in Oracle Mapviewer, setInfoWindowTitle() is invalid.

There is an issue in oraclemaps.js of Oracle Fusion Middleware MapViewer Version 11g ps6 (11.1.1.7.1).
When the value of the parameter style is "MVInfoWindowStyle2" in the function MVThemeBasedFOI.setInfoWindowStyle(style, styleParameters), the function MVThemeBasedFOI.setInfoWindowTitle does not work.

So must re-write the part of oraclemaps.js, the codes are the following

MVThemeBasedFOI.prototype.setInfoWindowTitle = function (x90) {
    this._f320 = x90;
    MVInfoWindowStyle2.Title=x90;
}
MVInfoWindowStyle2.addContent = function (x5) {
    try{
    if(this.Title!=undefined){
     x5.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[0].childNodes[0].innerHTML=this.Title;
    }
    }catch(e){
      try{
      x5.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].innerHTML=this.Title;
      }catch(e){}
    }
    x5.style.left = MVUtil._f26(55);
    x5.style.top = MVUtil._f26(17);

    this._f389.appendChild(x5);
}

评论

此博客中的热门博文

XML, XSL, HTML

Java Base == & equals

Input in element.eleme.io