Skip to search.
ydn-flash · Yahoo! Flash Developer Group

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
How to dynamically resize the Yahoo Map in Flex 2.0.1?   Message List  
Reply Message #497 of 2433 |
Hi there,

is there way to dynamically resize the Yahoo Map?
There result I hacked so far does not seam to work:

    <yahoo:YahooMapService
        id="myAS2Map"
        width="100%" height="100%"
        UUID="{UNIQUEID}" swfDomId="{SWFDOMID}" apiId="{YAHOOAPIKEY}" mapURL="{MAPSWF}"
        scaleContent="false"
        />
  
    <mx:HSlider
        id="widthSlider"
        right="15" bottom="25"
        minimum="1024" maximum="1600"
        liveDragging="true"
        change="{ myAS2Map.width = widthSlider.value}"
        />

    <mx:VSlider
        id="heightSlider"
        right="15" bottom="40"
        minimum="768" maximum="1200"
        liveDragging="true"
        change="{myAS2Map.height = heightSlider.value}"
        />

Thanks,
masu




Mon Nov 19, 2007 2:42 pm

lemasur
Offline Offline
Send Email Send Email

Message #497 of 2433 |
Expand Messages Author Sort by Date

Hi there, is there way to dynamically resize the Yahoo Map? There result I hacked so far does not seam to work: <yahoo:YahooMapService id="myAS2Map" ...
Sebastian Mohr
lemasur Offline Send Email
Nov 19, 2007
2:42 pm

Here is a technique from the Flex Cookbook that I used to make my map scale properly: ...
Jim Rutherford
rutherfj2006 Offline Send Email
Nov 19, 2007
7:30 pm

Thanks a lot Jim, I have tried the workaround you've recommended (see below) but the result I get is a map which can be shorten in size but cannot be enlarged....
Sebastian Mohr
lemasur Offline Send Email
Nov 20, 2007
1:01 am

I've had the same issue with the Astra connection kit as far as map scaling. I'm sure there is something that can be done through the DOM to resize it, or tell...
Abyss Knight
abyssknight Offline Send Email
Nov 20, 2007
2:11 pm

Thanks for your reply, Abyss, which SWF are you talking about? as2map.swf? If so, how can resize that SWF? I have no idea how to resize a SWF written in...
Sebastian Mohr
lemasur Offline Send Email
Nov 20, 2007
2:41 pm

Hey Sebastian, Sorry about that - I thought it was working but turned out it didn't. However I did come up with a solution that works very well. I have posted...
Jim Rutherford
rutherfj2006 Offline Send Email
Nov 25, 2007
4:33 pm

Thanks and sorry Jim that I couldn't find the time to answer much earlier. Your code, when running in an mx:Application-tag, runs properly. Thanks for that!...
Sebastian Mohr
lemasur Offline Send Email
Dec 7, 2007
2:17 am

I think it may not be working as the following function : yahooMapAPICall("setMapSize", {w:Application.application.width,h:Application.application.height}); is...
Jim Rutherford
rutherfj2006 Offline Send Email
Dec 7, 2007
4:51 am

Thank you, that solved the problem :) In addition I had to set the width and height of the canvas to 100%, just like: <mx:Canvas ...
Sebastian Mohr
lemasur Offline Send Email
Dec 7, 2007
12:35 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help