Zimlet Examplel xml Maps

com_zimbra_ymaps.xml


<zimlet name="com_zimbra_ymaps" version="1.0" description="Yahoo Maps">

      <include>
             http://api.maps.yahoo.com/ajaxymap?v=2.0&appid=ZimbraMail
      </include>
      <include>ymaps.js</include>
      <includeCSS>ymaps.css</includeCSS>

      <resource>blank_pixel.gif</resource>
      <resource>ymaps.gif</resource>

      <handlerObject>Com_Zimbra_YMaps</handlerObject>

      <contentObject type="address">
             <matchOn>
                    <regex attrs="ig">
                             [\w]{3,}([A-Za-z]\.)?([ \w]*\#\d+)?(\r\n|
)[\w]{3,}\x20[A-Za-z]{2}\x20\d{5}(-\d{4})?\b
</regex>
             </matchOn>
             <onClick>
                    <canvas type="window" />
                    <actionUrl target="http://maps.yahoo.com/beta/index.php"
                                 paramStart="#">
                          <param name="maxp">search</param>
                          <param name="q1">${src.objectContent}</param>
                    </actionUrl>
             </onClick>
      </contentObject>

      <zimletPanelItem label="Maps" icon="YMAPS-panelIcon">
             <toolTipText>
                    Drag'n'drop a contact to display a Yahoo Map
             </toolTipText>

             <dragSource type="ZmContact" />

             <contextMenu>
                    <menuItem label="Visit Yahoo Maps"
                             id="MAPS.YAHOO.COM"
                             icon="YMAPS-panelIcon">
                         <canvas type="window" width="800"
                             height="600" />
                         <actionUrl target="http://maps.yahoo.com">
                             <param name="referrer">
                                     www.zimbra.com
                             </param>
                         </actionUrl>
                    </menuItem>
             </contextMenu>
      </zimletPanelItem>
</zimlet>
Verified Against: Date Created: 7/28/2009
Article ID: https://wiki.zimbra.com/index.php?title=Zimlet_Examplel_xml_Maps Date Modified: 2015-03-24



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search