try{ if (poi_image){} } catch(e){ poi_image = '../img/redball.gif'; } try{ if (poi_width){} } catch(e){ poi_width = 14; } try{ if (poi_height){} } catch(e){ poi_height = 14; } try{ if (poi_style){} } catch(e){ poi_style = 'background-color:white;font-weight: bold;color:black;font-family:Arial;'; } eventAfterMapRequest.register(function () { mod_permanentHighlight_draw(); }); var mod_permanentHighlight_x = false var mod_permanentHighlight_y = false; var mod_permanentHighlight_text = false; function mod_permanentHighlight_init() { /* no need to call this function anymore */ } function mod_permanentHighlight_hide(){ var mapObject = parent.getMapObjByName(mod_permanentHighlight_target); $("#" + mapObject.elementName + "_permanent").empty(); } function mod_permanentHighlight_draw(){ var mapObject = getMapObjByName(mod_permanentHighlight_target); var map_el = mapObject.getDomElement(); if (mod_permanentHighlight_x && mod_permanentHighlight_y){ var pointFromUrl = new Point(parseFloat(mod_permanentHighlight_x), parseFloat(mod_permanentHighlight_y)); var pos = mapObject.convertRealToPixel(pointFromUrl); var tagSource = ""; tagSource += "
"; tagSource += ""; if (mod_permanentHighlight_text != "") { tagSource += ""+mod_permanentHighlight_text+""; } tagSource += "
"; var map_el = mapObject.getDomElement(); if (!map_el.ownerDocument.getElementById(mapObject.elementName + "_permanent")) { //create Box Elements var $div = $("
"); $div.css({ position: "absolute", top: "0px", left: "0px", zIndex: 13 }); map_el.appendChild($div.get(0)); } $("#" + mapObject.elementName + "_permanent").html(tagSource); } }