Results 1 to 9 of 9

Thread: fitting yahoo maps Zimlet

  1. #1
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    5
    Rep Power
    8

    Default fitting yahoo maps Zimlet

    Dear Zimbra friends,
    using OSS edition 5.0 I'am tried to fit the yahoo Zimlet for Germany, but dont succeed.

    The origin code is
    "http://maps.yahoo.com/maps_result"
    with param "addr" and "csz" and dont work in Germany

    The Germany site is
    "http://de.routenplaner.yahoo.com/"
    and the request of the param addr also dont work.

    The result of the request "berlin" should be like this
    "http://de.routenplaner.yahoo.com/#mvt=m&q1=Berlin&trf=0&lon=13.377056&lat=52.516012 &mag=6"

    Now, please answer how i must modify the maps zimlet ...
    Thanks a lot !
    Greetings, rha

  2. #2
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    To get Berlin you like you want you just have to use the url :
    "http://de.routenplaner.yahoo.com/broadband?q1=berlin"
    By default the street and the US ZIP CODE are send as parameters.
    You can change the US ZIP CODE by an other parameter or add other parameters.

  3. #3
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    5
    Rep Power
    8

    Default

    Hi tdesorbaix,
    thanks for your answer, but replacing the site location in the zimlet dont work.

    How can i replace the code in the zimlet to get this result in the zimlet window?
    "http://de.routenplaner.yahoo.com/broadband?q1=berlin"

    If i replace the code with "http://de.routenplaner.yahoo.com" the result of moving a address in the webinterface from the addressbook to the zimlet is that zimbra opens a new browser window with the URL
    "http://de.routenplaner.yahoo.com/?addr="
    followed by the Street-Name from the Address. This URL fails.

    Any hints ?
    Greetings, rha

  4. #4
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    5
    Rep Power
    8

    Default

    Thanks,

    but if a set the URL in the Zimlet to "de.routenplaner.yahoo.com" the zimlet dont work because the param is translated to ...yahoo.com/?addr=... and this dont work.

    How should i set the URL in the Zimlet Code that the Zimlet translate this to
    "http://de.routenplaner.yahoo.com/#mvt=m&q1=Potsdamer+Allee+100&trf=0&lon=13.199215& lat=52.386942&mag=3" ?

    In this example I'm search for "Potsdamer Allee 100".

    Tanks a lot.
    Greetings, rha

  5. #5
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    Here is a modified version of the com_zimbra_ymaps.xml that you can try.
    It will work for all the functionalities , except for clicking on the zimlet icon and enter an address :
    this is handle in the ymaps.js file.

    <zimlet name="com_zimbra_ymaps" version="1.0" description="Yahoo Maps">
    <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="igm">\b\d+[A-Za-z]?[ ]+([ewns]\.?[ ]+)?[A-Za-z0-9]+([ ]+[A-Za-z0-9]+)*[\s,\.](\s*(\#|[A-Za-z]+[,\.]?)[ ]*\d+[\s,\.])?\s
    *[A-Za-z]+([ ]+[A-Za-z]+)*[ ,][ ]*[A-Za-z]{2}([A-Za-z]+([ ][A-Za-z]+)?)?[ ]+\d{5}(-\d{4})?\b</regex>
    </matchOn>
    <onClick>
    <canvas type="window" />
    <actionUrl target="http://de.routenplaner.yahoo.com/broadband">
    <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">
    <canvas type="window"/>
    <actionUrl target="http://de.routenplaner.yahoo.com/broadband">
    <param name="q1">${obj.workStreet}</param>
    <param name="csz">${obj.workPostalCode}</param>
    </actionUrl>
    </dragSource>
    <contextMenu>
    <menuItem label="Visit Yahoo Maps" id="MAPS.YAHOO.COM" icon="YMAPS-panelIcon">
    <canvas type="window"/>
    <actionUrl target="http://de.routenplaner.yahoo.com/">
    <param name="referrer">www.zimbra.com</param>
    </actionUrl>
    </menuItem>
    </contextMenu>
    </zimletPanelItem>
    </zimlet>

  6. #6
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    5
    Rep Power
    8

    Default

    Thanks a lot, i will try this.
    Greetings, rha

  7. #7
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    5
    Rep Power
    8

    Default

    It works very well, now I'am think I understand this a little bit better.

    <actionUrl target="http://de.routenplaner.yahoo.com/broadband">
    <param name="q1">${obj.workStreet}</param>
    <param name="csz">${obj.workPostalCode}</param>

    Finally the last question:
    Is there a descrition for the params and the objects anywhere?
    To make this perfect I need the param name and the Objekt-Description for the municipality.
    Greetings, rha

  8. #8
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    In the version i gave it only take the workstreet.
    I haven't tested it but you can try to put all the obj parameter in q1, like this :
    <param name="q1">${obj.workStreet},${obj.workPostalCode}, ${obj.workCity}</param>
    it is ${obj.workCity} to get the city parameters.
    One more thing : the version I gave open a new window but you can make the zimlet open in dialog window as before by changing those lines :
    <canvas type="window" />
    into
    <canvas type="dialog" />
    You can look at this whitepaper for more parameters :ZimletWhitepaper

  9. #9
    Join Date
    Nov 2007
    Location
    Brasil - São Paulo
    Posts
    25
    Rep Power
    8

    Default http://mapas.yahoo.maplink2.com.br/endereco.aspx

    Does someone have any idea how to fit this zimlet in maplink service of brazilian Yahoo ?

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Outlook 2007 Beta error
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 07-17-2008, 08:38 AM
  3. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  4. [SOLVED] Yahoo Maps Zimlet not installed
    By crankin in forum Zimlets
    Replies: 2
    Last Post: 04-17-2007, 11:46 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •