<?xml version='1.0' encoding='UTF-8'?><uidget><metadata><name>Map</name><description>Show an address on a Map</description><help>
			To choose the address, put the name of the place in the address field.&lt;br&gt; You can adjust the place of the marker by dragging and dropping it.&lt;br&gt; You may add a message which will be displayed to visitors.&lt;br&gt; Adjust the zoom and the position of the map - it will be displayed as it is to your visitors.
</help><api_version>1.0</api_version><size height='400' width='400' /><blog en='36' fr='9' /></metadata><view><content></content><properties><hidden default='&apos;Liberty Island, New York&apos;' name='address' /><hidden default='&apos;&apos;' name='message' /><select default='&apos;large&apos;' display='None|Small|Large' help='Adjust the size of the map zoom controller.&lt;br&gt; If set to none, your visitors will not be able to change the zoom level.' name='zoomCtrl' title='Zoom' values='none|small|large' /><checkbox default='false' help='Your visitors can see a scale on bottom of the map' name='scaleCtrl' value='Scale' /><checkbox class='uic_prop_slider_anim' default='false' help='Map width will be adjusted to fit the visitor&apos;s browser. Note that this mode will disable the mouse scroll wheel on the map to allow visitor to scroll your website.' name='full_width' value='Full screen width' /><option default='&apos;mk&apos;' display='Road|Satellite|Hybrid|Physical' help='Select the map types you want to be available.' name='mapTypeCtrl' title='Map Type' values='m|k|h|p' /><trigger help='Stop edition of the map' img='/components/UI_Map/h.gif' name='h_btn' node='span' trigger='stopDrawing' /><trigger help='Add small markers on the map' img='/components/UI_Map/dis-m.gif' name='m_btn' node='span' trigger='placeMarker' /><trigger help='Draw lines on the map&lt;br&gt;To end drawing, click on the last node.&lt;br&gt;To add a node, move a transparent node.&lt;br&gt;To remove a node, click on an opaque node.' img='/components/UI_Map/dis-l.gif' name='l_btn' node='span' trigger='startLine' /><trigger help='Draw areas on the map&lt;br&gt;To end the area, click on the first node.&lt;br&gt;To add a node, move a transparent node.&lt;br&gt;To remove a node, click on an opaque node.&lt;br&gt;To delete the area, remove all its nodes.' img='/components/UI_Map/dis-s.gif' name='s_btn' node='span' trigger='startShape' /><kml_selector default='&apos;&apos;' help='Import a KML file' icon='ui_map' name='kmlFile' /><hidden default='4' name='zoomLevel' /></properties></view><script>UI_List.UI_Map={initialize:function(a){this.cpt=a;
this.map_created=false;
a.setOptions([&quot;locked&quot;])
},onDisplay:function(b){this.node=b;
var a=this;
sigCtl.connect(&quot;Theme.changed&quot;,function(){a.map_created=false
});
this._setFullWidth()
},onShow:function(){if(!this.map_created){this._createMap();
this.map_created=true
}},onSelect:function(){},onDeselect:function(){if(this.map){this.map.stopDrawing()
}},onResizeStart:function(){},onResize:function(){},onResizeStop:function(){this._setFullWidth()
},onMoveStart:function(){this.node.css(&quot;background&quot;,&quot; #fff url(/components/UI_Map/bg.jpg) repeat top left&quot;);
this.iframe.hide()
},onMoveStop:function(){this.iframe.show();
this._setFullWidth()
},onRotateStart:function(){this.node.css(&quot;background&quot;,&quot; #fff url(/components/UI_Map/bg.jpg) repeat top left&quot;);
this.iframe.hide()
},onRotateStop:function(){this.iframe.show();
this._setFullWidth()
},_init:function(){eval(&quot;this.map=ggmap&quot;+this.uniqueNb);
this.waitImg.hide();
this.iframe.css(&quot;left&quot;,0);
if(v.mode==&quot;editor&quot;){var self=this;
this.map.propertyChangedCallback(function(k,v){self.cpt.setData(k,v)
});
if(self.cpt.propertyNode){this.map.set_select(function(v){self.cpt.propertyNode.find(&quot;.btn_prop&quot;).enableImg(false);
self.cpt.propertyNode.find(&quot;.&quot;+v+&quot;_btn&quot;).enableImg()
})
}this.map.initParams(this.cpt.data)
}},_createMap:function(){this.uniqueNb=this.cpt.component_type.getCounter();
this.node.empty();
this.map=null;
var b=this;
var d=(v.mode==&quot;editor&quot;||(&quot;&quot;+window.location).match(/\/\/localhost/))?&quot;/&quot;:&quot;https://www.sitew.com/&quot;;
var c=this.cpt.statusLoading();
var a=this.cpt.W();
if(this.cpt.data.full_width){a=this.component.node.find(&quot;div:first&quot;).width()
}this.waitImg=$(&apos;&lt;img src=&quot;/assets/loadingAnimation.gif?infinite_cache&quot;/&gt;&apos;).appendTo(this.node.css(&quot;background&quot;,&quot; #fff url(/components/UI_Map/bg.jpg?infinite_cache) repeat top left&quot;));
this.iframe=$(&apos;&lt;iframe src=&quot;&apos;+d+&quot;api/googlemap?&amp;version_mode=&quot;+v.mode+&quot;&amp;cptid=&quot;+(this.cpt.id||&quot;&quot;)+&apos;&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; name=&quot;ggmap&apos;+this.uniqueNb+&apos;&quot;&gt;&lt;/iframe&gt;&apos;).width(&quot;100%&quot;).height(&quot;100%&quot;).css({position:&quot;absolute&quot;,left:this.cpt.W()}).one(&quot;load error abort&quot;,function(f){if(f.type==&quot;load&quot;){b._init()
}c.update(100)
}).appendTo(this.node)
},onPropertyChanged:function(a){if(this.map){if(a.include(&quot;zoomCtrl&quot;)){this.map.showZoomCtrl(this.cpt.data.zoomCtrl,true,this.cpt.data)
}if(a.include(&quot;mapTypeCtrl&quot;)){this.map.showMapTypeCtrl(this.cpt.data)
}if(a.include(&quot;scaleCtrl&quot;)){this.map.showScaleCtrl(this.cpt.data.scaleCtrl,true,this.cpt.data)
}if(a.include(&quot;stopDrawing&quot;)){this.map.stopDrawing()
}if(a.include(&quot;placeMarker&quot;)){this.map.placeMarker()
}else{if(a.include(&quot;startShape&quot;)){this.map.startShape()
}else{if(a.include(&quot;startLine&quot;)){this.map.startLine()
}}}if(a.include(&quot;kmlFile&quot;)){this.map.initKml(this.cpt.data)
}if(a.include(&quot;full_width&quot;)){this._setFullWidth();
this._createMap()
}}else{var b=this;
setTimeout(function(){b.onPropertyChanged(a)
},500)
}},_setFullWidth:function(){this.component.setFullWidth(this.component.data.full_width)
}};</script></uidget>