You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

<?xml version="1.0" encoding="utf-8" ?>
<jsml xmlns="http://cutesoft.net/jsml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://cutesoft.net/jsml ../../core/jsml.xsd">
<execute>
dialog.set_title(editor.GetLangText("googlemap"));
</execute>
<panel jsml-class="googlemap_dialog" dock="fill" overflow="visible">
<htmlcontrol dock="fill" jsml-local="hc">
</htmlcontrol>
<attach name="attach_dom">
<![CDATA[
setTimeout(function()
{
if(self.iframe)return;
window.rtegooglemapeditor=editor;
window.rtegooglemapdialog=dialog;
window.rtegooglemapoption=option;
dialog.attach_event("closing",function()
{
window.rtegooglemapeditor=null;
window.rtegooglemapdialog=null;
window.rtegooglemapoption=null;
});
var iframe=document.createElement("IFRAME");
iframe.setAttribute("src","{folder}plugins/"+option.plugin.Name+"/googlemap.htm?{timems}");
iframe.setAttribute("frameBorder","0");
hc._content.appendChild(iframe);
self.iframe=iframe;
self.invoke_event("resize");
},10);
]]>
</attach>
<attach name="resize">
if(!self.iframe)return;
self.iframe.style.width=hc.get_client_width()+"px";
self.iframe.style.height=hc.get_client_height()+"px";
</attach>
</panel>
<panel jsml-base="googlemap_dialog" />
</jsml>